Skip to content

Commit

Permalink
add expected DNS failure test
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Sjögren <[email protected]>
  • Loading branch information
konstruktoid committed Oct 6, 2023
1 parent d4c0ec3 commit 60cfe28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@
changed_when: false
failed_when: 'not "Query time: 0 msec" in dig_cache.stdout'

- name: Verify DNS failure

Check failure on line 72 in molecule/default/verify.yml

View workflow job for this annotation

GitHub Actions / build

command-instead-of-module

curl used in place of get_url or uri module
ansible.builtin.command: curl -sSLv adservice.google.eu
register: dns_fail
changed_when: false
failed_when: 'not "connect to 0.0.0.0 port 80 failed: Connection refused" in dns_fail.stderr'

- name: Stat /etc/cron.daily/generate_hosts
ansible.builtin.stat:
path: /etc/cron.daily/generate_hosts
Expand Down

0 comments on commit 60cfe28

Please sign in to comment.