aci_encap_pool: Fix vxlan integration tests (#36418)
Missing cleanup would cause subsequent runs to fail when interrupted.
This commit is contained in:
parent
6534e6a450
commit
cac6c19a63
1 changed files with 12 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: ensure vxlan pool does not exist for tests to kick off
|
- name: ensure vxlan pool anstest does not exist for tests to kick off
|
||||||
aci_encap_pool: &aci_vxlan_absent
|
aci_encap_pool: &aci_vxlan_absent
|
||||||
host: "{{ aci_hostname }}"
|
host: "{{ aci_hostname }}"
|
||||||
username: "{{ aci_username }}"
|
username: "{{ aci_username }}"
|
||||||
|
@ -12,6 +12,16 @@
|
||||||
pool: anstest
|
pool: anstest
|
||||||
pool_type: vxlan
|
pool_type: vxlan
|
||||||
|
|
||||||
|
- name: ensure vxlan pool anstest_2 does not exist for tests to kick off
|
||||||
|
aci_encap_pool:
|
||||||
|
<<: *aci_vxlan_absent
|
||||||
|
pool: anstest_2
|
||||||
|
|
||||||
|
- name: ensure vxlan pool anstest_3 does not exist for tests to kick off
|
||||||
|
aci_encap_pool:
|
||||||
|
<<: *aci_vxlan_absent
|
||||||
|
pool: anstest_3
|
||||||
|
|
||||||
- name: create vxlan pool - check mode works
|
- name: create vxlan pool - check mode works
|
||||||
aci_encap_pool: &aci_vxlan_present
|
aci_encap_pool: &aci_vxlan_present
|
||||||
<<: *aci_vxlan_absent
|
<<: *aci_vxlan_absent
|
||||||
|
@ -85,7 +95,7 @@
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- create_vxlan_alloc_mode.failed == true
|
- create_vxlan_alloc_mode.failed == true
|
||||||
- 'create_vxlan_alloc_mode.msg == "vxlan pools do not support setting the pool_allocation_mode; please remove this parameter from the task"'
|
- "create_vxlan_alloc_mode.msg == 'vxlan pools do not support setting the \\'pool_allocation_mode\\'; please remove this parameter from the task'"
|
||||||
|
|
||||||
- name: get vxlan pool - get object works
|
- name: get vxlan pool - get object works
|
||||||
aci_encap_pool: &aci_vxlan_query
|
aci_encap_pool: &aci_vxlan_query
|
||||||
|
|
Loading…
Reference in a new issue