Skip to content

Commit

Permalink
test: Purge DNS config at the end of tests_network_state.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Wen Liang <[email protected]>
  • Loading branch information
liangwen12year committed Feb 13, 2024
1 parent 550040f commit 76b3ba0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/playbooks/tests_network_state.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@
msg: the file `/run/NetworkManager/no-stub-resolv.conf` does not
contain the specified DNS configuration

- name: Purge the DNS
import_role:
name: linux-system-roles.network
vars:
network_state:
dns-resolver:
config: {}

- name: Include the task 'delete_interface.yml'
include_tasks: tasks/delete_interface.yml
- name: Include the task 'assert_device_absent.yml'
Expand Down

0 comments on commit 76b3ba0

Please sign in to comment.