mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Refactor/fix nxos_nxapi to use show run (#28675)
* Refactor/fix nxos_nxapi to use show run * Fix unit tests * Python 3 compatibility
This commit is contained in:
parent
af9396841e
commit
3d46258cff
11 changed files with 45 additions and 24 deletions
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Assert configuration changes
|
||||
assert:
|
||||
that:
|
||||
- result.stdout[0]['TABLE_listen_on_port']['ROW_listen_on_port'].l_port
|
||||
- result.stdout[0]['TABLE_listen_on_port']['ROW_listen_on_port'].l_port | string | search("9443")
|
||||
- result.stdout[0]['operation_status'].o_status == 'nxapi enabled'
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Assert configuration changes
|
||||
assert:
|
||||
that:
|
||||
- result.stdout[0].http_port is not defined
|
||||
- result.stdout[0].https_port | string | search("9443")
|
||||
- result.stdout[0].sandbox_status == 'Enabled'
|
Loading…
Add table
Add a link
Reference in a new issue