From ee09398b8595c93ab39d3b7ce74439795c311b27 Mon Sep 17 00:00:00 2001 From: "Jonas L." Date: Thu, 1 Aug 2024 16:08:33 +0200 Subject: [PATCH] test: add server cleanup timeout workaround (#539) ##### SUMMARY Prevent a timeout error when cleaning up server right after the firewall got deleted. --- tests/integration/targets/firewall/tasks/cleanup.yml | 4 ++++ tests/integration/targets/firewall_info/tasks/cleanup.yml | 4 ++++ tests/integration/targets/firewall_resource/tasks/cleanup.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/tests/integration/targets/firewall/tasks/cleanup.yml b/tests/integration/targets/firewall/tasks/cleanup.yml index fd69ed5..5cace70 100644 --- a/tests/integration/targets/firewall/tasks/cleanup.yml +++ b/tests/integration/targets/firewall/tasks/cleanup.yml @@ -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 }}" diff --git a/tests/integration/targets/firewall_info/tasks/cleanup.yml b/tests/integration/targets/firewall_info/tasks/cleanup.yml index fd69ed5..5cace70 100644 --- a/tests/integration/targets/firewall_info/tasks/cleanup.yml +++ b/tests/integration/targets/firewall_info/tasks/cleanup.yml @@ -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 }}" diff --git a/tests/integration/targets/firewall_resource/tasks/cleanup.yml b/tests/integration/targets/firewall_resource/tasks/cleanup.yml index fd69ed5..5cace70 100644 --- a/tests/integration/targets/firewall_resource/tasks/cleanup.yml +++ b/tests/integration/targets/firewall_resource/tasks/cleanup.yml @@ -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 }}"