Skip to content

Commit

Permalink
Added test to verify reachability
Browse files Browse the repository at this point in the history
  • Loading branch information
sananguliyev committed Nov 11, 2020
1 parent 98415db commit 8a319f9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,16 @@
that:
- "'listening' in service_status.stdout"
- "'{{ wireguard_port }}' in service_status.stdout"

- name: Verify reachability
hosts: client
tasks:
- name: Ping destination
command: ping -c 1 10.9.0.3
register: ping_status
changed_when: no
- name: Verify packet received
assert:
that:
- "'1 received' in ping_status.stdout"
- "'0% packet loss' in ping_status.stdout"

0 comments on commit 8a319f9

Please sign in to comment.