summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/nxos_feature
diff options
context:
space:
mode:
authorNathaniel Case <this.is@nathanielca.se>2018-07-02 15:43:51 +0200
committerGitHub <noreply@github.com>2018-07-02 15:43:51 +0200
commita1971259540ccc1be3df811252f5b832e7af2d87 (patch)
treedeac7c985fecc5fd1567f604308d211df68e7db2 /test/integration/targets/nxos_feature
parentFix eos integration test failure (#42188) (diff)
downloadansible-a1971259540ccc1be3df811252f5b832e7af2d87.tar.xz
ansible-a1971259540ccc1be3df811252f5b832e7af2d87.zip
Nxos restore provider to nxapi tests (#41818)
* Quick and dirty sed to add provider * Manually verify the rest of the cases * Add missing provider
Diffstat (limited to 'test/integration/targets/nxos_feature')
-rw-r--r--test/integration/targets/nxos_feature/tests/common/configure.yaml6
-rw-r--r--test/integration/targets/nxos_feature/tests/common/invalid.yaml1
2 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/targets/nxos_feature/tests/common/configure.yaml b/test/integration/targets/nxos_feature/tests/common/configure.yaml
index 2c02bea4c8..220def42d1 100644
--- a/test/integration/targets/nxos_feature/tests/common/configure.yaml
+++ b/test/integration/targets/nxos_feature/tests/common/configure.yaml
@@ -5,10 +5,12 @@
nxos_config:
lines: no feature bgp
match: none
+ provider: "{{ connection }}"
- name: enable bgp
nxos_feature:
feature: bgp
+ provider: "{{ connection }}"
state: enabled
register: result
@@ -19,6 +21,7 @@
- name: verify bgp
nxos_feature:
feature: bgp
+ provider: "{{ connection }}"
state: enabled
register: result
@@ -29,6 +32,7 @@
- name: disable bgp
nxos_feature:
feature: bgp
+ provider: "{{ connection }}"
state: disabled
register: result
@@ -39,6 +43,7 @@
- name: verify bgp
nxos_feature:
feature: bgp
+ provider: "{{ connection }}"
state: disabled
register: result
@@ -50,5 +55,6 @@
nxos_config:
lines: no feature bgp
match: none
+ provider: "{{ connection }}"
- debug: msg="END connection={{ ansible_connection }}/configure.yaml"
diff --git a/test/integration/targets/nxos_feature/tests/common/invalid.yaml b/test/integration/targets/nxos_feature/tests/common/invalid.yaml
index 477eaf6416..8d0baf6b2c 100644
--- a/test/integration/targets/nxos_feature/tests/common/invalid.yaml
+++ b/test/integration/targets/nxos_feature/tests/common/invalid.yaml
@@ -4,6 +4,7 @@
- name: configure invalid feature name
nxos_feature:
feature: invalid
+ provider: "{{ connection }}"
register: result
ignore_errors: yes