mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-11-10 06:34:13 +00:00
test: flaky test for hcloud_server private_network_only (#205)
The server that was being handled could still exist from previous tests running in the same suite. This can be fixed by making sure that the server does not exist at the start of this test suite.
This commit is contained in:
parent
25bce7eabd
commit
9700099097
1 changed files with 15 additions and 0 deletions
|
@ -1,6 +1,21 @@
|
|||
# Copyright: (c) 2022, Hetzner Cloud GmbH <info@hetzner-cloud.de>
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
---
|
||||
- name: setup network 1 to be absent
|
||||
hcloud_network:
|
||||
name: "{{ hcloud_network_name }}-1"
|
||||
state: absent
|
||||
|
||||
- name: setup network 2 to be absent
|
||||
hcloud_network:
|
||||
name: "{{ hcloud_network_name }}-2"
|
||||
state: absent
|
||||
|
||||
- name: setup server to be absent
|
||||
hcloud_server:
|
||||
name: "{{ hcloud_server_name }}"
|
||||
state: absent
|
||||
|
||||
- name: setup create network
|
||||
hcloud_network:
|
||||
name: "{{ hcloud_network_name }}-1"
|
||||
|
|
Loading…
Reference in a new issue