mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
ACI: Avoid using 'previous' with query operations (#36181)
When ACI modules are being used for querying MOs, we should not return the previous state, as there is no previous state, there's only the current state. This impacts a lot of tests that were used to testing the current state as 'previous'.
This commit is contained in:
parent
0cf70a8970
commit
dba561efa7
22 changed files with 142 additions and 140 deletions
|
@ -114,7 +114,7 @@
|
|||
assert:
|
||||
that:
|
||||
- binding_query.changed == false
|
||||
- binding_query.previous | length >= 1
|
||||
- binding_query.current | length >= 1
|
||||
- '"/api/mo/uni/infra/funcprof/accbundle-policygroupname.json" in binding_query.url'
|
||||
|
||||
- name: Remove interface policy leaf policy group (PC) - check mode
|
||||
|
@ -233,7 +233,7 @@
|
|||
assert:
|
||||
that:
|
||||
- binding_query.changed == false
|
||||
- binding_query.previous | length >= 1
|
||||
- binding_query.current | length >= 1
|
||||
- '"/api/mo/uni/infra/funcprof/accbundle-policygroupname.json" in binding_query.url'
|
||||
|
||||
- name: Remove interface policy leaf policy group (VPC) - check mode
|
||||
|
@ -360,7 +360,7 @@
|
|||
assert:
|
||||
that:
|
||||
- binding_query.changed == false
|
||||
- binding_query.previous | length >= 1
|
||||
- binding_query.current | length >= 1
|
||||
- '"/api/mo/uni/infra/funcprof/accportgrp-policygroupname.json" in binding_query.url'
|
||||
|
||||
- name: Remove interface policy leaf policy group (Leaf Access Port) - check mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue