mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -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
|
@ -103,11 +103,11 @@
|
|||
assert:
|
||||
that:
|
||||
- epg_query.changed == false
|
||||
- epg_query.previous | length == 1
|
||||
- 'epg_query.previous.0.fvAEPg.attributes.name == "anstest"'
|
||||
- epg_query.current | length == 1
|
||||
- 'epg_query.current.0.fvAEPg.attributes.name == "anstest"'
|
||||
- '"tn-anstest/ap-anstest/epg-anstest.json" in epg_query.url'
|
||||
- epg_query_all.changed == false
|
||||
- epg_query_all.previous | length > 1
|
||||
- epg_query_all.current | length > 1
|
||||
- '"rsp-subtree-class=fvRsBd" in epg_query_all.filter_string'
|
||||
- '"class/fvAEPg.json" in epg_query_all.url'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue