Skip to content

Commit

Permalink
first network ip must also be dfferent
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Oct 13, 2023
1 parent b03fce4 commit ee815a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/targets/hcloud_subnetwork/tasks/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
- name: test vswitch subnetwork
hetzner.hcloud.hcloud_subnetwork:
network: "{{ hcloud_network_name }}"
ip_range: "10.0.0.0/24"
ip_range: "10.0.1.0/24"
type: "vswitch"
network_zone: "eu-central"
vswitch_id: "{{ hetzner_vswitch_id }}"
Expand All @@ -95,15 +95,15 @@
that:
- subnet is changed
- subnet.hcloud_subnetwork.network == "{{ hcloud_network_name }}"
- subnet.hcloud_subnetwork.ip_range == "10.0.0.0/24"
- subnet.hcloud_subnetwork.ip_range == "10.0.1.0/24"
- subnet.hcloud_subnetwork.type == "vswitch"
- subnet.hcloud_subnetwork.network_zone == "eu-central"
- subnet.hcloud_subnetwork.vswitch_id == hetzner_vswitch_id

- name: test absent subnetwork
hetzner.hcloud.hcloud_subnetwork:
network: "{{ hcloud_network_name }}"
ip_range: "10.0.0.0/24"
ip_range: "10.0.1.0/24"
type: "vswitch"
network_zone: "eu-central"
vswitch_id: "{{ hetzner_vswitch_id }}"
Expand Down

0 comments on commit ee815a1

Please sign in to comment.