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:
Dag Wieers
2018-02-14 23:07:07 +01:00
committed by GitHub
parent 0cf70a8970
commit dba561efa7
22 changed files with 142 additions and 140 deletions

View File

@@ -107,22 +107,22 @@
assert:
that:
- query_all.changed == false
- query_all.previous | length > 1
- query_all.previous.0.fvCtx is defined
- query_all.current | length > 1
- query_all.current.0.fvCtx is defined
- '"class/fvCtx.json" in query_all.url'
- query_tenant.changed == false
- query_tenant.previous | length == 1
- query_tenant.previous.0.fvTenant.children | length == 2
- 'query_tenant.previous.0.fvTenant.attributes.name == "anstest"'
- query_tenant.current | length == 1
- query_tenant.current.0.fvTenant.children | length == 2
- 'query_tenant.current.0.fvTenant.attributes.name == "anstest"'
- '"rsp-subtree-class=fvCtx" in query_tenant.filter_string'
- '"tn-anstest.json" in query_tenant.url'
- query_vrf_vrf.changed == false
- query_vrf_vrf.previous != []
- 'query_vrf_vrf.previous.0.fvCtx.attributes.name == "anstest"'
- query_vrf_vrf.current != []
- 'query_vrf_vrf.current.0.fvCtx.attributes.name == "anstest"'
- '"query-target-filter=eq(fvCtx.name, \"anstest\")" in query_vrf_vrf.filter_string'
- '"class/fvCtx.json" in query_vrf_vrf.url'
- query_vrf.changed == false
- query_vrf.previous | length == 1
- query_vrf.current | length == 1
- '"tn-anstest/ctx-anstest.json" in query_vrf.url'
- name: delete vrf - check mode works