mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
nxos integration fix part 1 (#27069)
* Assorted Python 3 fixes * Fix `testcase` definition in integration tests * Fix nxos_acl_interface * clean up nxapi after nxos_nxapi
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- debug: msg="START cli/lesstahnorequal.yaml"
|
||||
- debug: msg="START cli/lessthanorequal.yaml"
|
||||
|
||||
- name: test le operator
|
||||
nxos_command:
|
||||
@@ -29,4 +29,4 @@
|
||||
that:
|
||||
- "result.changed == false"
|
||||
|
||||
- debug: msg="END cli/lesstahnorequal.yaml"
|
||||
- debug: msg="END cli/lessthanorequal.yaml"
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
testcase: "*"
|
||||
2
test/integration/targets/nxos_feature/defaults/main.yaml
Normal file
2
test/integration/targets/nxos_feature/defaults/main.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
testcase: "*"
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
testcase: "*"
|
||||
2
test/integration/targets/nxos_mtu/defaults/main.yaml
Normal file
2
test/integration/targets/nxos_mtu/defaults/main.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
testcase: "*"
|
||||
@@ -13,3 +13,9 @@
|
||||
with_items: "{{ test_items }}"
|
||||
loop_control:
|
||||
loop_var: test_case_to_run
|
||||
|
||||
- name: disable nxapi
|
||||
nxos_config:
|
||||
lines:
|
||||
- no feature nxapi
|
||||
provider: "{{ cli }}"
|
||||
|
||||
2
test/integration/targets/nxos_system/defaults/main.yaml
Normal file
2
test/integration/targets/nxos_system/defaults/main.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
testcase: "*"
|
||||
@@ -48,8 +48,7 @@ class TestNxosAclInterfaceModule(TestNxosModule):
|
||||
|
||||
for item in commands:
|
||||
try:
|
||||
obj = json.loads(item)
|
||||
command = obj['command']
|
||||
command = item['command']
|
||||
except ValueError:
|
||||
command = item
|
||||
filename = '%s.txt' % str(command).split(' | ')[0].replace(' ', '_')
|
||||
|
||||
Reference in New Issue
Block a user