mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
NXOS Commit Integration tests to Ansible (part 1) (#28935)
* cleanup nxos_bgp_neighbor_af tests * add timeout and to_json to nxapi testing for nxos_command * maintain folder naming consistency with other tests
This commit is contained in:
parent
5537218c94
commit
caafc8e591
7 changed files with 30 additions and 21 deletions
|
@ -45,12 +45,13 @@
|
|||
- command: sh running-config bgp
|
||||
output: text
|
||||
provider: "{{ nxapi }}"
|
||||
timeout: 120
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.failed == false"
|
||||
- "'65535' in result.stdout[0]"
|
||||
- "'65535' in result.stdout[0]|to_json"
|
||||
|
||||
- name: "Run an invalid command - should fail"
|
||||
nxos_command:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue