summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_aaa_server_host
diff options
context:
space:
mode:
authorNathaniel Case <this.is@nathanielca.se>2018-05-17 18:47:15 -0400
committerGitHub <noreply@github.com>2018-05-17 18:47:15 -0400
commite9d7fa04181e91effad9fbfa2026e3994d695776 (patch)
tree7806f47c4042be67f2148fed61dc0a30ef0b5229 /test/integration/targets/nxos_aaa_server_host
parentcc61c860492d3165a68b4c3361bac900d29613d2 (diff)
downloadansible-e9d7fa04181e91effad9fbfa2026e3994d695776.tar.gz
HTTP(S) API connection plugin (#39224)
* HTTPAPI connection * Punt run_commands to cliconf or httpapi * Fake enable_mode on eapi * Pull changes to nxos * Move load_config to edit_config for future-preparedness * Don't fail on lldp disabled * Re-enable check_rc on nxos' run_commands * Reorganize nxos httpapi plugin for compatibility * draft docs for connection: httpapi * restores docs for connection:local for eapi * Add _remote_is_local to httpapi
Diffstat (limited to 'test/integration/targets/nxos_aaa_server_host')
-rw-r--r--test/integration/targets/nxos_aaa_server_host/tasks/nxapi.yaml6
-rw-r--r--test/integration/targets/nxos_aaa_server_host/tests/common/radius.yaml8
-rw-r--r--test/integration/targets/nxos_aaa_server_host/tests/common/tacacs.yaml10
3 files changed, 3 insertions, 21 deletions
diff --git a/test/integration/targets/nxos_aaa_server_host/tasks/nxapi.yaml b/test/integration/targets/nxos_aaa_server_host/tasks/nxapi.yaml
index 68e96a2942..653bcfefe9 100644
--- a/test/integration/targets/nxos_aaa_server_host/tasks/nxapi.yaml
+++ b/test/integration/targets/nxos_aaa_server_host/tasks/nxapi.yaml
@@ -1,5 +1,5 @@
---
-- name: collect common nxapi test cases
+- name: collect common test cases
find:
paths: "{{ role_path }}/tests/common"
patterns: "{{ testcase }}.yaml"
@@ -20,8 +20,8 @@
- name: set test_items
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
-- name: run test cases (connection=local)
- include: "{{ test_case_to_run }} ansible_connection=local connection={{ nxapi }}"
+- name: run test cases (connection=httpapi)
+ include: "{{ test_case_to_run }} ansible_connection=httpapi"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
diff --git a/test/integration/targets/nxos_aaa_server_host/tests/common/radius.yaml b/test/integration/targets/nxos_aaa_server_host/tests/common/radius.yaml
index cf9a65556b..b588429fbf 100644
--- a/test/integration/targets/nxos_aaa_server_host/tests/common/radius.yaml
+++ b/test/integration/targets/nxos_aaa_server_host/tests/common/radius.yaml
@@ -8,7 +8,6 @@
server_type: radius
address: 8.8.8.8
state: absent
- provider: "{{ connection }}"
ignore_errors: yes
- block:
@@ -17,7 +16,6 @@
server_type: radius
address: 8.8.8.8
state: present
- provider: "{{ connection }}"
register: result
- assert: &true
@@ -52,7 +50,6 @@
auth_port: 2083
acct_port: 2084
state: present
- provider: "{{ connection }}"
register: result
- assert: *true
@@ -71,7 +68,6 @@
auth_port: 1000
acct_port: default
state: present
- provider: "{{ connection }}"
register: result
- assert: *true
@@ -92,7 +88,6 @@
encrypt_type: 0
key: hello
state: present
- provider: "{{ connection }}"
register: result
- assert: *true
@@ -119,7 +114,6 @@
encrypt_type: 7
key: hello
state: present
- provider: "{{ connection }}"
register: result
- assert: *true
@@ -140,7 +134,6 @@
encrypt_type: 7
key: default
state: present
- provider: "{{ connection }}"
register: result
- assert: *true
@@ -160,7 +153,6 @@
acct_port: default
key: default
state: present
- provider: "{{ connection }}"
register: result
- assert: *true
diff --git a/test/integration/targets/nxos_aaa_server_host/tests/common/tacacs.yaml b/test/integration/targets/nxos_aaa_server_host/tests/common/tacacs.yaml
index 6307316734..8fc21ea6c1 100644
--- a/test/integration/targets/nxos_aaa_server_host/tests/common/tacacs.yaml
+++ b/test/integration/targets/nxos_aaa_server_host/tests/common/tacacs.yaml
@@ -7,14 +7,12 @@
nxos_feature:
feature: tacacs+
state: enabled
- provider: "{{ connection }}"
- name: "Setup"
nxos_aaa_server_host: &remove
server_type: tacacs
address: 8.8.8.8
state: absent
- provider: "{{ connection }}"
ignore_errors: yes
- block:
@@ -24,7 +22,6 @@
server_type: tacacs
address: 8.8.8.8
state: present
- provider: "{{ connection }}"
register: result
- assert: &true
@@ -58,7 +55,6 @@
host_timeout: 25
tacacs_port: 89
state: present
- provider: "{{ connection }}"
register: result
- assert: *true
@@ -76,7 +72,6 @@
host_timeout: default
tacacs_port: 100
state: present
- provider: "{{ connection }}"
register: result
- assert: *true
@@ -96,7 +91,6 @@
encrypt_type: 0
key: hello
state: present
- provider: "{{ connection }}"
register: result
- assert: *true
@@ -122,7 +116,6 @@
encrypt_type: 7
key: hello
state: present
- provider: "{{ connection }}"
register: result
- assert: *true
@@ -142,7 +135,6 @@
encrypt_type: 7
key: default
state: present
- provider: "{{ connection }}"
register: result
- assert: *true
@@ -161,7 +153,6 @@
tacacs_port: default
key: default
state: present
- provider: "{{ connection }}"
register: result
- assert: *true
@@ -186,6 +177,5 @@
nxos_feature:
feature: tacacs+
state: disabled
- provider: "{{ connection }}"
- debug: msg="END connection={{ ansible_connection }} nxos_aaa_server_host tacacs.yaml sanity test"