Skip to content

Commit

Permalink
test: some files not created by nm implementation
Browse files Browse the repository at this point in the history
The files
- /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

Are not created when using the NetworkManager implementation

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
  • Loading branch information
richm committed Jun 14, 2024
1 parent 6a2b951 commit fd629e1
Showing 1 changed file with 12 additions and 6 deletions.
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

0 comments on commit fd629e1

Please sign in to comment.