1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Minor updates to nxos_nxapi tests (#35750)

* Minor updates to nxos_nxapi tests

* Fixed duplicate yaml key issue

* Make rubocop happy
This commit is contained in:
Mike Wiebe 2018-02-06 02:22:42 -05:00 committed by Trishna Guha
parent 6bd4803c80
commit 358e63232f
2 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,6 @@
---
- name: Assert configuration changes
assert:
that:
- result.stdout[0].http_port is not defined
- result.stdout[0].https_port|string is search("9443")

View file

@ -27,8 +27,11 @@
- include: targets/nxos_nxapi/tasks/platform/n7k/assert_changes.yaml - include: targets/nxos_nxapi/tasks/platform/n7k/assert_changes.yaml
when: platform is match('N7K') when: platform is match('N7K')
- include: targets/nxos_nxapi/tasks/platform/n5k/assert_changes.yaml
when: platform is match('N5K')
- include: targets/nxos_nxapi/tasks/platform/default/assert_changes.yaml - include: targets/nxos_nxapi/tasks/platform/default/assert_changes.yaml
when: not ( platform is search('N7K')) when: not ( platform is search('N7K')) and not (platform is search('N5K')) and not (platform is search('N35'))
- name: Configure NXAPI again - name: Configure NXAPI again
nxos_nxapi: nxos_nxapi: