summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_command
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/nxos_command')
-rw-r--r--test/integration/targets/nxos_command/tests/common/bad_operator.yaml1
-rw-r--r--test/integration/targets/nxos_command/tests/common/contains.yaml1
-rw-r--r--test/integration/targets/nxos_command/tests/common/equal.yaml2
-rw-r--r--test/integration/targets/nxos_command/tests/common/greaterthan.yaml2
-rw-r--r--test/integration/targets/nxos_command/tests/common/greaterthanorequal.yaml2
-rw-r--r--test/integration/targets/nxos_command/tests/common/invalid.yaml2
-rw-r--r--test/integration/targets/nxos_command/tests/common/lessthan.yaml2
-rw-r--r--test/integration/targets/nxos_command/tests/common/lessthanorequal.yaml2
-rw-r--r--test/integration/targets/nxos_command/tests/common/notequal.yaml2
-rw-r--r--test/integration/targets/nxos_command/tests/common/output.yaml2
-rw-r--r--test/integration/targets/nxos_command/tests/common/timeout.yaml1
-rw-r--r--test/integration/targets/nxos_command/tests/nxapi/sanity.yaml4
12 files changed, 23 insertions, 0 deletions
diff --git a/test/integration/targets/nxos_command/tests/common/bad_operator.yaml b/test/integration/targets/nxos_command/tests/common/bad_operator.yaml
index 6a3659093f..b8220df352 100644
--- a/test/integration/targets/nxos_command/tests/common/bad_operator.yaml
+++ b/test/integration/targets/nxos_command/tests/common/bad_operator.yaml
@@ -8,6 +8,7 @@
- show interface mgmt0 | json
wait_for:
- "result[1].TABLE_interface.ROW_interface.state foo up"
+ provider: "{{ connection }}"
register: result
ignore_errors: yes
diff --git a/test/integration/targets/nxos_command/tests/common/contains.yaml b/test/integration/targets/nxos_command/tests/common/contains.yaml
index bb6868af30..d524010e22 100644
--- a/test/integration/targets/nxos_command/tests/common/contains.yaml
+++ b/test/integration/targets/nxos_command/tests/common/contains.yaml
@@ -9,6 +9,7 @@
wait_for:
- "result[0] contains NX-OS"
- "result[1].TABLE_interface.ROW_interface.interface contains mgmt"
+ provider: "{{ connection }}"
register: result
- assert:
diff --git a/test/integration/targets/nxos_command/tests/common/equal.yaml b/test/integration/targets/nxos_command/tests/common/equal.yaml
index a81eb3c5c7..cc0ea6b082 100644
--- a/test/integration/targets/nxos_command/tests/common/equal.yaml
+++ b/test/integration/targets/nxos_command/tests/common/equal.yaml
@@ -8,6 +8,7 @@
- show interface mgmt0 | json
wait_for:
- "result[1].TABLE_interface.ROW_interface.state eq up"
+ provider: "{{ connection }}"
register: result
- assert:
@@ -21,6 +22,7 @@
- show interface mgmt0 | json
wait_for:
- "result[1].TABLE_interface.ROW_interface.state == up"
+ provider: "{{ connection }}"
register: result
- assert:
diff --git a/test/integration/targets/nxos_command/tests/common/greaterthan.yaml b/test/integration/targets/nxos_command/tests/common/greaterthan.yaml
index 0b8db6a90b..9bf5d809cf 100644
--- a/test/integration/targets/nxos_command/tests/common/greaterthan.yaml
+++ b/test/integration/targets/nxos_command/tests/common/greaterthan.yaml
@@ -8,6 +8,7 @@
- show interface mgmt0 | json
wait_for:
- "result[1].TABLE_interface.ROW_interface.eth_ip_mask gt 0"
+ provider: "{{ connection }}"
register: result
- assert:
@@ -21,6 +22,7 @@
- show interface mgmt0 | json
wait_for:
- "result[1].TABLE_interface.ROW_interface.eth_ip_mask > 0"
+ provider: "{{ connection }}"
register: result
- assert:
diff --git a/test/integration/targets/nxos_command/tests/common/greaterthanorequal.yaml b/test/integration/targets/nxos_command/tests/common/greaterthanorequal.yaml
index 3e0c27ca73..394af88dee 100644
--- a/test/integration/targets/nxos_command/tests/common/greaterthanorequal.yaml
+++ b/test/integration/targets/nxos_command/tests/common/greaterthanorequal.yaml
@@ -8,6 +8,7 @@
- show interface mgmt0 | json
wait_for:
- "result[1].TABLE_interface.ROW_interface.eth_ip_mask ge 0"
+ provider: "{{ connection }}"
register: result
- assert:
@@ -21,6 +22,7 @@
- show interface mgmt0 | json
wait_for:
- "result[1].TABLE_interface.ROW_interface.eth_ip_mask >= 0"
+ provider: "{{ connection }}"
register: result
- assert:
diff --git a/test/integration/targets/nxos_command/tests/common/invalid.yaml b/test/integration/targets/nxos_command/tests/common/invalid.yaml
index 6532a5eae0..6f7aa6b98e 100644
--- a/test/integration/targets/nxos_command/tests/common/invalid.yaml
+++ b/test/integration/targets/nxos_command/tests/common/invalid.yaml
@@ -4,6 +4,7 @@
- name: run invalid command
nxos_command:
commands: ['show foo']
+ provider: "{{ connection }}"
register: result
ignore_errors: yes
@@ -16,6 +17,7 @@
commands:
- show version
- show foo
+ provider: "{{ connection }}"
register: result
ignore_errors: yes
diff --git a/test/integration/targets/nxos_command/tests/common/lessthan.yaml b/test/integration/targets/nxos_command/tests/common/lessthan.yaml
index 7d9509b649..b60bbce323 100644
--- a/test/integration/targets/nxos_command/tests/common/lessthan.yaml
+++ b/test/integration/targets/nxos_command/tests/common/lessthan.yaml
@@ -8,6 +8,7 @@
- show interface mgmt0 | json
wait_for:
- "result[1].TABLE_interface.ROW_interface.eth_ip_mask lt 33"
+ provider: "{{ connection }}"
register: result
- assert:
@@ -21,6 +22,7 @@
- show interface mgmt0 | json
wait_for:
- "result[1].TABLE_interface.ROW_interface.eth_ip_mask lt 33"
+ provider: "{{ connection }}"
register: result
- assert:
diff --git a/test/integration/targets/nxos_command/tests/common/lessthanorequal.yaml b/test/integration/targets/nxos_command/tests/common/lessthanorequal.yaml
index 70d0f63662..9104d5446f 100644
--- a/test/integration/targets/nxos_command/tests/common/lessthanorequal.yaml
+++ b/test/integration/targets/nxos_command/tests/common/lessthanorequal.yaml
@@ -8,6 +8,7 @@
- show interface mgmt0 | json
wait_for:
- "result[1].TABLE_interface.ROW_interface.eth_ip_mask le 32"
+ provider: "{{ connection }}"
register: result
- assert:
@@ -21,6 +22,7 @@
- show interface mgmt0 | json
wait_for:
- "result[1].TABLE_interface.ROW_interface.eth_ip_mask <= 32"
+ provider: "{{ connection }}"
register: result
- assert:
diff --git a/test/integration/targets/nxos_command/tests/common/notequal.yaml b/test/integration/targets/nxos_command/tests/common/notequal.yaml
index 14f38431b2..95f4f15760 100644
--- a/test/integration/targets/nxos_command/tests/common/notequal.yaml
+++ b/test/integration/targets/nxos_command/tests/common/notequal.yaml
@@ -8,6 +8,7 @@
- show interface mgmt0 | json
wait_for:
- "result[1].TABLE_interface.ROW_interface.state neq down"
+ provider: "{{ connection }}"
register: result
- assert:
@@ -22,6 +23,7 @@
- show interface mgmt0 | json
wait_for:
- "result[1].TABLE_interface.ROW_interface.state != down"
+ provider: "{{ connection }}"
register: result
- assert:
diff --git a/test/integration/targets/nxos_command/tests/common/output.yaml b/test/integration/targets/nxos_command/tests/common/output.yaml
index e8ee7ed9bb..6cdeb36524 100644
--- a/test/integration/targets/nxos_command/tests/common/output.yaml
+++ b/test/integration/targets/nxos_command/tests/common/output.yaml
@@ -4,6 +4,7 @@
- name: get output for single command
nxos_command:
commands: ['show version']
+ provider: "{{ connection }}"
register: result
- assert:
@@ -15,6 +16,7 @@
commands:
- show version
- show interface
+ provider: "{{ connection }}"
register: result
- assert:
diff --git a/test/integration/targets/nxos_command/tests/common/timeout.yaml b/test/integration/targets/nxos_command/tests/common/timeout.yaml
index a190b27be2..34d9135619 100644
--- a/test/integration/targets/nxos_command/tests/common/timeout.yaml
+++ b/test/integration/targets/nxos_command/tests/common/timeout.yaml
@@ -7,6 +7,7 @@
- show version
wait_for:
- "result[0] contains bad_value_string"
+ provider: "{{ connection }}"
register: result
ignore_errors: yes
diff --git a/test/integration/targets/nxos_command/tests/nxapi/sanity.yaml b/test/integration/targets/nxos_command/tests/nxapi/sanity.yaml
index bff006a4c1..16ef1837eb 100644
--- a/test/integration/targets/nxos_command/tests/nxapi/sanity.yaml
+++ b/test/integration/targets/nxos_command/tests/nxapi/sanity.yaml
@@ -4,6 +4,7 @@
- name: "Disable feature BGP"
nxos_feature:
feature: bgp
+ provider: "{{ connection }}"
state: disabled
- block:
@@ -21,12 +22,14 @@
- name: "Enable feature BGP"
nxos_feature:
feature: bgp
+ provider: "{{ connection }}"
state: enabled
- name: "Configure BGP defaults"
nxos_bgp: &configure_default
asn: 65535
router_id: 192.0.2.1
+ provider: "{{ connection }}"
state: present
register: result
@@ -61,6 +64,7 @@
- name: "Disable feature bgp"
nxos_feature:
feature: bgp
+ provider: "{{ connection }}"
state: disabled
- debug: msg="END nxapi/sanity.yaml on connection={{ ansible_connection }}"