Skip to content

Commit 2498c52

Browse files
authored
Fix network tests for Podman v4 (#527)
Signed-off-by: Sagi Shnaidman <[email protected]> Signed-off-by: Sagi Shnaidman <[email protected]>
1 parent f8a70fe commit 2498c52

File tree

1 file changed

+7
-3
lines changed
  • tests/integration/targets/podman_network/tasks

1 file changed

+7
-3
lines changed

tests/integration/targets/podman_network/tasks/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@
132132
assert:
133133
that:
134134
- info6 is changed
135+
ignore_errors: true
136+
# In v4 subnets are added automatically and gateway idempotency is disabled
135137

136138
- name: Create network with custom gateway again
137139
containers.podman.podman_network:
@@ -191,12 +193,14 @@
191193
name: "{{ network_name }}"
192194
state: present
193195
subnet: 10.200.200.0/24
196+
recreate: true
194197
register: info12
195198

196199
- name: Check info
197200
assert:
198201
that:
199202
- info12 is changed
203+
# In v4 subnets are added automatically and subnets idempotency is disabled
200204

201205
- name: Create network with subnet again
202206
containers.podman.podman_network:
@@ -252,7 +256,7 @@
252256
name: "{{ network_name }}"
253257
state: present
254258
opt:
255-
vlan: 5555
259+
vlan: 4000
256260
register: opt2
257261

258262
- name: Create network with opts MTU and VLAN
@@ -262,7 +266,7 @@
262266
state: present
263267
opt:
264268
mtu: 1311
265-
vlan: 5555
269+
vlan: 4000
266270
register: opt3
267271

268272
- name: Create network with opts MTU and VLAN again
@@ -272,7 +276,7 @@
272276
state: present
273277
opt:
274278
mtu: 1311
275-
vlan: 5555
279+
vlan: 4000
276280
register: opt4
277281

278282
- name: Check results for network opts

0 commit comments

Comments
 (0)