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:
rahushen 2017-09-13 09:31:47 -04:00 committed by John R Barker
commit caafc8e591
7 changed files with 30 additions and 21 deletions

View file

@ -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: