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
Without purging the DNS testing config at the end
`tests_network_state.yml`, the managed hosts can not properly resolve
certain hosts (e.g. mirrors.fedoraproject.org, mirrors.centos.org )
in the package installation task of other tests.

Signed-off-by: Wen Liang <[email protected]>
  • Loading branch information
liangwen12year authored and richm committed Feb 15, 2024
1 parent b4f51e2 commit c6be8df
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 c6be8df

Please sign in to comment.