-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: improve rdns integration using the testing framework (#372)
##### SUMMARY Use the new testing framework for the rdns integration tests.
- Loading branch information
Showing
6 changed files
with
146 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
--- | ||
- name: Cleanup test_ssh_key | ||
hetzner.hcloud.hcloud_ssh_key: | ||
name: "{{ hcloud_ssh_key_name }}" | ||
- name: Cleanup test_server | ||
hetzner.hcloud.hcloud_server: | ||
name: "{{ hcloud_server_name }}" | ||
state: absent | ||
|
||
- name: Cleanup test_primary_ip | ||
hetzner.hcloud.hcloud_primary_ip: | ||
name: "{{ hcloud_primary_ip_name }}" | ||
state: absent | ||
|
||
- name: Cleanup test_floating_ip | ||
hetzner.hcloud.hcloud_floating_ip: | ||
name: "{{ hcloud_floating_ip_name }}" | ||
state: absent | ||
|
||
- name: Cleanup test_load_balancer | ||
hetzner.hcloud.hcloud_load_balancer: | ||
name: "{{ hcloud_load_balancer_name }}" | ||
state: absent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,32 @@ | ||
--- | ||
- name: Create test_ssh_key | ||
hetzner.hcloud.hcloud_ssh_key: | ||
name: "{{ hcloud_ssh_key_name }}" | ||
public_key: "{{ test_ssh_keypair.public_key }}" | ||
register: test_ssh_key | ||
- name: Create test_server | ||
hetzner.hcloud.hcloud_server: | ||
name: "{{ hcloud_server_name }}" | ||
server_type: cx11 | ||
image: ubuntu-22.04 | ||
state: present | ||
register: test_server | ||
|
||
- name: Create test_primary_ip | ||
hetzner.hcloud.hcloud_primary_ip: | ||
name: "{{ hcloud_primary_ip_name }}" | ||
type: ipv4 | ||
datacenter: fsn1-dc14 | ||
state: present | ||
register: test_primary_ip | ||
|
||
- name: Create test_floating_ip | ||
hetzner.hcloud.hcloud_floating_ip: | ||
name: "{{ hcloud_floating_ip_name }}" | ||
type: ipv4 | ||
home_location: fsn1 | ||
state: present | ||
register: test_floating_ip | ||
|
||
- name: Create test_load_balancer | ||
hetzner.hcloud.hcloud_load_balancer: | ||
name: "{{ hcloud_load_balancer_name }}" | ||
load_balancer_type: lb11 | ||
network_zone: eu-central | ||
state: present | ||
register: test_load_balancer |
Oops, something went wrong.