summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_user
diff options
context:
space:
mode:
authorTrishna Guha <trishnaguha17@gmail.com>2018-01-15 13:16:41 +0530
committerGitHub <noreply@github.com>2018-01-15 13:16:41 +0530
commit48ecbb8fb90080b4d1056bbb1dc2bfaddcf2c847 (patch)
treef6e24adffeebea432747295f3cf779da256a8b41 /test/integration/targets/nxos_user
parentc04cd8642d0589c3ffc0395a24bd2843a066b196 (diff)
downloadansible-48ecbb8fb90080b4d1056bbb1dc2bfaddcf2c847.tar.gz
fix connection gets overridden by network_cli for transport nxapi,eapi net_* modules (#34778)
* fix connection gets overridden by network_cli for transport nxapi,eapi net_* modules Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * Define functions in individual action plugins to avoid code duplication Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * Add net_* eos tests for eapi Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * update plugin code
Diffstat (limited to 'test/integration/targets/nxos_user')
-rw-r--r--test/integration/targets/nxos_user/tests/common/basic.yaml6
-rw-r--r--test/integration/targets/nxos_user/tests/common/net_user.yaml12
2 files changed, 13 insertions, 5 deletions
diff --git a/test/integration/targets/nxos_user/tests/common/basic.yaml b/test/integration/targets/nxos_user/tests/common/basic.yaml
index 8767788956..5901786317 100644
--- a/test/integration/targets/nxos_user/tests/common/basic.yaml
+++ b/test/integration/targets/nxos_user/tests/common/basic.yaml
@@ -1,4 +1,8 @@
---
+- debug: msg="START connection={{ ansible_connection }} nxos_user basic test"
+- debug: msg="Using provider={{ connection.transport }}"
+ when: ansible_connection == "local"
+
- name: Remove old entries of user
nxos_user:
aggregate:
@@ -51,3 +55,5 @@
that:
- 'result.changed == true'
- '"no username" in result.commands[0]'
+
+- debug: msg="END connection={{ ansible_connection }} nxos_user basic test"
diff --git a/test/integration/targets/nxos_user/tests/common/net_user.yaml b/test/integration/targets/nxos_user/tests/common/net_user.yaml
index f46005dbdf..1952d35e14 100644
--- a/test/integration/targets/nxos_user/tests/common/net_user.yaml
+++ b/test/integration/targets/nxos_user/tests/common/net_user.yaml
@@ -1,12 +1,14 @@
---
-- debug: msg="START nxos common/net_user.yaml on connection={{ ansible_connection }}"
+- debug: msg="START connection={{ ansible_connection }} nxos common/net_user.yaml"
+- debug: msg="Using provider={{ connection.transport }}"
+ when: ansible_connection == "local"
# Add minimal testcase to check args are passed correctly to
# implementation module and module run is successful.
-- name: Remove old entries of user - setup
+- name: "Remove old entries of user - setup"
net_user:
- - name: ansibletest1
+ name: ansibletest1
state: absent
provider: "{{ connection }}"
@@ -27,8 +29,8 @@
- name: teardown
net_user:
- - name: ansibletest1
+ name: ansibletest1
state: absent
provider: "{{ connection }}"
-- debug: msg="END nxos common/net_user.yaml on connection={{ ansible_connection }}"
+- debug: msg="END connection={{ ansible_connection }} nxos common/net_user.yaml"