mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
ACI: Fixes to domain parameters dependencies (#36158)
We identified an incompleteness to parameter dependencies that affects querying all domain-related objects. This PR also includes: - Improvements to integration tests - Add missing vm_provider types - Fix examples This relates to #36131
This commit is contained in:
parent
ef9dac548f
commit
da5cf72236
11 changed files with 213 additions and 110 deletions
|
@ -65,6 +65,15 @@
|
|||
aci_aep_to_domain: *binding_present
|
||||
register: nm_add_binding
|
||||
|
||||
- name: Verify add_binding
|
||||
assert:
|
||||
that:
|
||||
- cm_add_binding.changed == nm_add_binding.changed == true
|
||||
- 'cm_add_binding.sent == nm_add_binding.sent == {"infraRsDomP": {"attributes": {"tDn": "uni/phys-phys_dom"}}}'
|
||||
- 'cm_add_binding.proposed == nm_add_binding.proposed == {"infraRsDomP": {"attributes": {"tDn": "uni/phys-phys_dom"}}}'
|
||||
- cm_add_binding.current == cm_add_binding.previous == nm_add_binding.previous == []
|
||||
- 'nm_add_binding.current == [{"infraRsDomP": {"attributes": {"dn": "uni/infra/attentp-test_aep/rsdomP-[uni/phys-phys_dom]", "tDn": "uni/phys-phys_dom"}}}]'
|
||||
|
||||
- name: Add AEP to domain binding again (check_mode)
|
||||
aci_aep_to_domain: *binding_present
|
||||
check_mode: yes
|
||||
|
@ -74,15 +83,10 @@
|
|||
aci_aep_to_domain: *binding_present
|
||||
register: nm_add_binding_again
|
||||
|
||||
- name: Verify add_binding
|
||||
- name: Verify add_binding_again
|
||||
assert:
|
||||
that:
|
||||
- cm_add_binding.changed == nm_add_binding.changed == true
|
||||
- cm_add_binding_again.changed == nm_add_binding_again.changed == false
|
||||
- 'cm_add_binding.sent == nm_add_binding.sent == {"infraRsDomP": {"attributes": {"tDn": "uni/phys-phys_dom"}}}'
|
||||
- 'cm_add_binding.proposed == nm_add_binding.proposed == {"infraRsDomP": {"attributes": {"tDn": "uni/phys-phys_dom"}}}'
|
||||
- cm_add_binding.current == cm_add_binding.previous == nm_add_binding.previous == []
|
||||
- 'nm_add_binding.current == [{"infraRsDomP": {"attributes": {"dn": "uni/infra/attentp-test_aep/rsdomP-[uni/phys-phys_dom]", "tDn": "uni/phys-phys_dom"}}}]'
|
||||
|
||||
|
||||
# QUERY ALL BINDINGS
|
||||
|
@ -148,6 +152,13 @@
|
|||
aci_aep_to_domain: *binding_absent
|
||||
register: nm_remove_binding
|
||||
|
||||
- name: Verify remove_binding
|
||||
assert:
|
||||
that:
|
||||
- cm_remove_binding.changed == nm_remove_binding.changed == true
|
||||
- 'cm_remove_binding.current == cm_remove_binding.previous == nm_remove_binding.previous == [{"infraRsDomP": {"attributes": {"dn": "uni/infra/attentp-test_aep/rsdomP-[uni/phys-phys_dom]", "tDn": "uni/phys-phys_dom"}}}]'
|
||||
- nm_remove_binding.current == []
|
||||
|
||||
- name: Remove AEP to domain binding again (check_mode)
|
||||
aci_aep_to_domain: *binding_absent
|
||||
check_mode: yes
|
||||
|
@ -157,13 +168,10 @@
|
|||
aci_aep_to_domain: *binding_absent
|
||||
register: nm_remove_binding_again
|
||||
|
||||
- name: Verify remove_binding
|
||||
- name: Verify remove_binding_again
|
||||
assert:
|
||||
that:
|
||||
- cm_remove_binding.changed == nm_remove_binding.changed == true
|
||||
- cm_remove_binding_again.changed == nm_remove_binding_again.changed == false
|
||||
- 'cm_remove_binding.current == cm_remove_binding.previous == nm_remove_binding.previous == [{"infraRsDomP": {"attributes": {"dn": "uni/infra/attentp-test_aep/rsdomP-[uni/phys-phys_dom]", "tDn": "uni/phys-phys_dom"}}}]'
|
||||
- nm_remove_binding.current == []
|
||||
|
||||
|
||||
# QUERY NON-EXISTING BINDING
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue