Skip to content

Commit

Permalink
test: Verify DNS and ping still work
Browse files Browse the repository at this point in the history
Signed-off-by: Wen Liang <[email protected]>
  • Loading branch information
liangwen12year committed Feb 2, 2024
1 parent 2123ffc commit 9289f31
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/playbooks/tests_bond.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,16 @@
when:
- network_provider == "initscripts"
changed_when: false
- name: Verify DNS and ping still work
shell: |
set -euxo pipefail
for host in mirrors.fedoraproject.org mirrors.centos.org; do
if ! getent hosts "$host"; then
exit 1
fi
if ! ping "$host"; then
exit 1
fi
done
when: ansible_facts["distribution"] == "CentOS"
changed_when: false

0 comments on commit 9289f31

Please sign in to comment.