mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user