Skip to content

Commit

Permalink
test: add server cleanup timeout workaround (ansible-collections#539)
Browse files Browse the repository at this point in the history
##### SUMMARY

Prevent a timeout error when cleaning up server right after the firewall
got deleted.
  • Loading branch information
jooola authored Aug 1, 2024
1 parent 563e2bd commit ee09398
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/integration/targets/firewall/tasks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
state: absent
force: true

- name: Workaround to prevent a timeout during the server deletion
ansible.builtin.pause:
seconds: 2

- name: Cleanup test_server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
Expand Down
4 changes: 4 additions & 0 deletions tests/integration/targets/firewall_info/tasks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
state: absent
force: true

- name: Workaround to prevent a timeout during the server deletion
ansible.builtin.pause:
seconds: 2

- name: Cleanup test_server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
Expand Down
4 changes: 4 additions & 0 deletions tests/integration/targets/firewall_resource/tasks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
state: absent
force: true

- name: Workaround to prevent a timeout during the server deletion
ansible.builtin.pause:
seconds: 2

- name: Cleanup test_server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
Expand Down

0 comments on commit ee09398

Please sign in to comment.