From 029a7c686b6d5193b9b7ff3d17a86672e88be415 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Wed, 12 Jun 2024 10:57:12 +0200 Subject: [PATCH] test: update server type to cax11 (#518) Ensure we are consistent across our tests, and updates some server types that were missing from the previous PR updating this: https://github.com/ansible-collections/hetzner.hcloud/pull/510 --- tests/integration/targets/placement_group/tasks/test.yml | 2 +- tests/integration/targets/server/tasks/test_basic.yml | 4 ++-- tests/integration/targets/server/tasks/test_firewalls.yml | 8 ++++---- .../integration/targets/server/tasks/test_primary_ips.yml | 4 ++-- .../targets/server/tasks/test_private_network_only.yml | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/integration/targets/placement_group/tasks/test.yml b/tests/integration/targets/placement_group/tasks/test.yml index d988275..4008f2e 100644 --- a/tests/integration/targets/placement_group/tasks/test.yml +++ b/tests/integration/targets/placement_group/tasks/test.yml @@ -64,7 +64,7 @@ - name: test create server with placement group hetzner.hcloud.server: name: "{{ hcloud_server_name }}" - server_type: cpx11 + server_type: cax11 placement_group: "{{ hcloud_placement_group_name }}" image: "ubuntu-22.04" ssh_keys: diff --git a/tests/integration/targets/server/tasks/test_basic.yml b/tests/integration/targets/server/tasks/test_basic.yml index 972ba48..e2657da 100644 --- a/tests/integration/targets/server/tasks/test_basic.yml +++ b/tests/integration/targets/server/tasks/test_basic.yml @@ -535,7 +535,7 @@ - name: test create server with enabled backups hetzner.hcloud.server: name: "{{ hcloud_server_name }}" - server_type: cpx11 + server_type: cax11 backups: true image: "ubuntu-22.04" ssh_keys: @@ -563,7 +563,7 @@ name: "{{ hcloud_server_name }}" delete_protection: true rebuild_protection: true - server_type: cpx11 + server_type: cax11 image: "ubuntu-22.04" ssh_keys: - "{{ hcloud_ssh_key_name }}" diff --git a/tests/integration/targets/server/tasks/test_firewalls.yml b/tests/integration/targets/server/tasks/test_firewalls.yml index 230df46..e824d16 100644 --- a/tests/integration/targets/server/tasks/test_firewalls.yml +++ b/tests/integration/targets/server/tasks/test_firewalls.yml @@ -32,7 +32,7 @@ - name: test create server with firewalls hetzner.hcloud.server: name: "{{ hcloud_server_name }}" - server_type: cpx11 + server_type: cax11 firewalls: - "{{ hcloud_firewall_name }}" image: "ubuntu-22.04" @@ -48,7 +48,7 @@ - name: test create server with firewalls idempotence hetzner.hcloud.server: name: "{{ hcloud_server_name }}" - server_type: cpx11 + server_type: cax11 firewalls: - "{{ hcloud_firewall_name }}" image: "ubuntu-22.04" @@ -64,7 +64,7 @@ - name: test update server with firewalls hetzner.hcloud.server: name: "{{ hcloud_server_name }}" - server_type: cpx11 + server_type: cax11 firewalls: - "{{ hcloud_firewall_name }}2" image: "ubuntu-22.04" @@ -80,7 +80,7 @@ - name: test update server with firewalls idempotence hetzner.hcloud.server: name: "{{ hcloud_server_name }}" - server_type: cpx11 + server_type: cax11 firewalls: - "{{ hcloud_firewall_name }}2" image: "ubuntu-22.04" diff --git a/tests/integration/targets/server/tasks/test_primary_ips.yml b/tests/integration/targets/server/tasks/test_primary_ips.yml index 034da9f..352f0ce 100644 --- a/tests/integration/targets/server/tasks/test_primary_ips.yml +++ b/tests/integration/targets/server/tasks/test_primary_ips.yml @@ -25,7 +25,7 @@ - name: test create server with primary ips hetzner.hcloud.server: name: "{{ hcloud_server_name }}" - server_type: cpx11 + server_type: cax11 datacenter: "fsn1-dc14" image: "ubuntu-22.04" ipv4: "{{primaryIPv4.hcloud_primary_ip.id}}" @@ -42,7 +42,7 @@ - name: test update server with primary ips hetzner.hcloud.server: name: "{{ hcloud_server_name }}" - server_type: cpx11 + server_type: cax11 datacenter: "fsn1-dc14" image: "ubuntu-22.04" ipv4: "{{secondPrimaryIPv4.hcloud_primary_ip.id}}" diff --git a/tests/integration/targets/server/tasks/test_private_network_only.yml b/tests/integration/targets/server/tasks/test_private_network_only.yml index a4219a0..52ad0ef 100644 --- a/tests/integration/targets/server/tasks/test_private_network_only.yml +++ b/tests/integration/targets/server/tasks/test_private_network_only.yml @@ -63,7 +63,7 @@ - name: test create server with primary network and no internet hetzner.hcloud.server: name: "{{ hcloud_server_name }}" - server_type: cpx11 + server_type: cax11 datacenter: "fsn1-dc14" image: "ubuntu-22.04" enable_ipv4: false @@ -82,7 +82,7 @@ - name: test update server by adding secondary network hetzner.hcloud.server: name: "{{ hcloud_server_name }}" - server_type: cpx11 + server_type: cax11 datacenter: "fsn1-dc14" image: "ubuntu-22.04" enable_ipv4: false @@ -102,7 +102,7 @@ - name: test update server idem hetzner.hcloud.server: name: "{{ hcloud_server_name }}" - server_type: cpx11 + server_type: cax11 datacenter: "fsn1-dc14" image: "ubuntu-22.04" enable_ipv4: false