Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: some files not created by nm implementation #164

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions tests/tests_simple_bind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,25 @@
- name: Use nbde_client role
include_role:
name: linux-system-roles.nbde_client
public: true

- name: Check ansible_managed, fingerprint in generated files
include_tasks: tasks/check_header.yml
loop:
- /etc/dracut.conf.d/nbde_client.conf
- /usr/bin/nbde_client-network-flush
- /etc/systemd/system/nbde_client-network-flush.service
- /usr/lib/dracut/modules.d/60nbde_client/module-setup.sh
- /usr/lib/dracut/modules.d/60nbde_client/nbde_client-hook.sh
loop: "{{
(__nbde_client_clear_initrd_netcfg_strategy == 'dracut_module') |
ternary(__dracut_files, __nm_files) | list }}"
loop_control:
loop_var: __file
vars:
__fingerprint: "system_role:nbde_client"
__dracut_files: # files created by the dracut implementation
- /etc/dracut.conf.d/nbde_client.conf
- /usr/bin/nbde_client-network-flush
- /etc/systemd/system/nbde_client-network-flush.service
- /usr/lib/dracut/modules.d/60nbde_client/module-setup.sh
- /usr/lib/dracut/modules.d/60nbde_client/nbde_client-hook.sh
__nm_files: # files created by the NM implementation
- /etc/dracut.conf.d/nbde_client.conf

- name: Attempt to unlock device
include_tasks: tasks/verify_unlock_device.yml
Expand Down
Loading