summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/aci_switch_leaf_selector
diff options
context:
space:
mode:
authorDag Wieers <dag@wieers.com>2018-02-14 23:07:07 +0100
committerGitHub <noreply@github.com>2018-02-14 23:07:07 +0100
commitdba561efa77d9fa38bf1374438603382a41a44dc (patch)
tree74482ba06e7b0929ca075ae0588ccfbfaa8927fd /test/integration/targets/aci_switch_leaf_selector
parentnever tags docs and test (#35964) (diff)
downloadansible-dba561efa77d9fa38bf1374438603382a41a44dc.tar.xz
ansible-dba561efa77d9fa38bf1374438603382a41a44dc.zip
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'.
Diffstat (limited to 'test/integration/targets/aci_switch_leaf_selector')
-rw-r--r--test/integration/targets/aci_switch_leaf_selector/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/targets/aci_switch_leaf_selector/tasks/main.yml b/test/integration/targets/aci_switch_leaf_selector/tasks/main.yml
index 0fd5596bc8..5ab82ecb03 100644
--- a/test/integration/targets/aci_switch_leaf_selector/tasks/main.yml
+++ b/test/integration/targets/aci_switch_leaf_selector/tasks/main.yml
@@ -84,7 +84,7 @@
assert:
that:
- binding_query.changed == false
- - binding_query.previous | length >= 1
+ - binding_query.current | length >= 1
- '"api/mo/uni/infra/nprof-sw_name_test/leaves-leaf_selector_name-typ-range.json" in binding_query.url'
- name: Remove binding of interface access port selector and Interface Policy Leaf Profile - check mode