summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_smoke
diff options
context:
space:
mode:
authorNathaniel Case <this.is@nathanielca.se>2018-05-15 11:55:47 -0400
committerGitHub <noreply@github.com>2018-05-15 11:55:47 -0400
commitf04c876ecd2f840b50f1075c141f933c630b659e (patch)
tree2e606942a20e0e164596dcc4f6f4d2e37c25bfd0 /test/integration/targets/nxos_smoke
parentcaddf863df3acac5adadba35507cc5d99ac056fe (diff)
downloadansible-f04c876ecd2f840b50f1075c141f933c630b659e.tar.gz
Nxos fixes (#40117)
* Alter nxos_nxapi tests to test the right thing * Defend #40027
Diffstat (limited to 'test/integration/targets/nxos_smoke')
-rw-r--r--test/integration/targets/nxos_smoke/tasks/cli.yaml2
-rw-r--r--test/integration/targets/nxos_smoke/tests/common/misc_tests.yaml6
2 files changed, 7 insertions, 1 deletions
diff --git a/test/integration/targets/nxos_smoke/tasks/cli.yaml b/test/integration/targets/nxos_smoke/tasks/cli.yaml
index edbff7dfaf..f53eac3a47 100644
--- a/test/integration/targets/nxos_smoke/tasks/cli.yaml
+++ b/test/integration/targets/nxos_smoke/tasks/cli.yaml
@@ -21,7 +21,7 @@
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
- name: run test cases (connection=network_cli)
- include: "{{ test_case_to_run }} ansible_connection=network_cli connection={}"
+ include: "{{ test_case_to_run }} ansible_connection=network_cli connection={{ cli }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
diff --git a/test/integration/targets/nxos_smoke/tests/common/misc_tests.yaml b/test/integration/targets/nxos_smoke/tests/common/misc_tests.yaml
index 27fc07a7cb..6ae0b003ea 100644
--- a/test/integration/targets/nxos_smoke/tests/common/misc_tests.yaml
+++ b/test/integration/targets/nxos_smoke/tests/common/misc_tests.yaml
@@ -22,3 +22,9 @@
- assert:
that:
- result.stdout|length == 10
+
+- name: combine with provider
+ nxos_command:
+ commands:
+ - show hostname
+ provider: "{{ connection | combine({'timeout': 500}) }}"