summaryrefslogtreecommitdiff
path: root/test/integration/targets/cnos_user
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/cnos_user')
-rw-r--r--test/integration/targets/cnos_user/aliases2
-rw-r--r--test/integration/targets/cnos_user/cnos_user_sample_hosts14
-rw-r--r--test/integration/targets/cnos_user/defaults/main.yaml2
-rw-r--r--test/integration/targets/cnos_user/tasks/cli.yaml27
-rw-r--r--test/integration/targets/cnos_user/tasks/main.yaml2
-rw-r--r--test/integration/targets/cnos_user/tests/common/basic.yaml58
-rw-r--r--test/integration/targets/cnos_user/tests/common/sanity.yaml84
7 files changed, 0 insertions, 189 deletions
diff --git a/test/integration/targets/cnos_user/aliases b/test/integration/targets/cnos_user/aliases
deleted file mode 100644
index cdb5033353..0000000000
--- a/test/integration/targets/cnos_user/aliases
+++ /dev/null
@@ -1,2 +0,0 @@
-# No Lenovo Switch simulator yet, so not enabled
-unsupported \ No newline at end of file
diff --git a/test/integration/targets/cnos_user/cnos_user_sample_hosts b/test/integration/targets/cnos_user/cnos_user_sample_hosts
deleted file mode 100644
index 0d18ec3063..0000000000
--- a/test/integration/targets/cnos_user/cnos_user_sample_hosts
+++ /dev/null
@@ -1,14 +0,0 @@
-# You have to paste this dummy information in /etc/ansible/hosts
-# Notes:
-# - Comments begin with the '#' character
-# - Blank lines are ignored
-# - Groups of hosts are delimited by [header] elements
-# - You can enter hostnames or ip Addresses
-# - A hostname/ip can be a member of multiple groups
-#
-# In the /etc/ansible/hosts file u have to enter [cnos_user_sample] tag
-# Following you should specify IP Addresses details
-# Please change <username> and <password> with appropriate value for your switch.
-
-[cnos_user_sample]
-10.241.107.39 ansible_network_os=cnos ansible_ssh_user=admin ansible_ssh_pass=admin
diff --git a/test/integration/targets/cnos_user/defaults/main.yaml b/test/integration/targets/cnos_user/defaults/main.yaml
deleted file mode 100644
index 5f709c5aac..0000000000
--- a/test/integration/targets/cnos_user/defaults/main.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-testcase: "*"
diff --git a/test/integration/targets/cnos_user/tasks/cli.yaml b/test/integration/targets/cnos_user/tasks/cli.yaml
deleted file mode 100644
index 9b62eaba65..0000000000
--- a/test/integration/targets/cnos_user/tasks/cli.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
----
-- name: collect common test cases
- find:
- paths: "{{ role_path }}/tests/common"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: test_cases
-
-- name: collect cli test cases
- find:
- paths: "{{ role_path }}/tests/cli"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: cli_cases
-
-- set_fact:
- test_cases:
- files: "{{ test_cases.files }} + {{ cli_cases.files }}"
-
-- name: set test_items
- 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={{ cli }}"
- with_items: "{{ test_items }}"
- loop_control:
- loop_var: test_case_to_run
diff --git a/test/integration/targets/cnos_user/tasks/main.yaml b/test/integration/targets/cnos_user/tasks/main.yaml
deleted file mode 100644
index 415c99d8b1..0000000000
--- a/test/integration/targets/cnos_user/tasks/main.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-- { include: cli.yaml, tags: ['cli'] }
diff --git a/test/integration/targets/cnos_user/tests/common/basic.yaml b/test/integration/targets/cnos_user/tests/common/basic.yaml
deleted file mode 100644
index 601e888141..0000000000
--- a/test/integration/targets/cnos_user/tests/common/basic.yaml
+++ /dev/null
@@ -1,58 +0,0 @@
----
-- debug: msg="START connection={{ ansible_connection }} cnos_user basic test"
-
-- name: Remove old entries of user
- cnos_user:
- aggregate:
- - { name: ansibletest1 }
- - { name: ansibletest2 }
- - { name: ansibletest3 }
-# provider: "{{ connection }}"
- configured_password: admin
- state: absent
-
-# Start tests
-- name: Create user
- cnos_user:
- name: ansibletest1
- roles: network-operator
-# provider: "{{ connection }}"
- state: present
- register: result
-
-- assert:
- that:
- - 'result.changed == true'
- - '"username" in result.commands[0]'
- - '"role network-operator" in result.commands[1]'
-
-- name: Collection of users
- cnos_user:
- aggregate:
- - { name: ansibletest2 }
- - { name: ansibletest3 }
-# provider: "{{ connection }}"
- state: present
- roles: network-admin
- register: result
-
-- assert:
- that:
- - 'result.changed == true'
-
-- name: tearDown
- cnos_user:
- aggregate:
- - { name: ansibletest1 }
- - { name: ansibletest2 }
- - { name: ansibletest3 }
-# provider: "{{ connection }}"
- state: absent
- register: result
-
-- assert:
- that:
- - 'result.changed == true'
- - '"no username" in result.commands[0]'
-
-- debug: msg="END connection={{ ansible_connection }} cnos_user basic test"
diff --git a/test/integration/targets/cnos_user/tests/common/sanity.yaml b/test/integration/targets/cnos_user/tests/common/sanity.yaml
deleted file mode 100644
index 7e86e4faa7..0000000000
--- a/test/integration/targets/cnos_user/tests/common/sanity.yaml
+++ /dev/null
@@ -1,84 +0,0 @@
----
-- debug: msg="START connection={{ ansible_connection }} cnos_user parameter test"
-
-
-- block:
- - name: Create user
- cnos_user: &configure
- name: netend
- configured_password: Hello!234
- update_password: on_create
- roles: network-operator
- state: present
- register: result
-
- - assert: &true
- that:
- - 'result.changed == true'
-
- - block:
- - name: conf idempotency
- cnos_user: *configure
- register: result
-
- - assert: &false
- that:
- - 'result.changed == false'
-
- - name: Remove user
- cnos_user: &remove
- name: netend
- state: absent
- register: result
-
- - assert: *true
-
- - name: remove idempotency
- cnos_user: *remove
- register: result
-
- - assert: *false
-
- - name: Collection of users
- cnos_user: &coll
- users:
- - name: test1
- - name: test2
- configured_password: Hello!234
- update_password: on_create
- state: present
- roles:
- - network-admin
- - network-operator
- register: result
-
- - assert: *true
-
- - block:
- - name: users idempotency
- cnos_user: *coll
- register: result
-
- - assert: *true
-
- - name: tearDown
- cnos_user: &tear
- name: ansible
- purge: yes
- register: result
-
- - assert: *true
-
- - name: teardown idempotency
- cnos_user: *tear
- register: result
-
- - assert: *false
-
- always:
- - name: tearDown
- cnos_user: *tear
- register: result
- ignore_errors: yes
-
-- debug: msg="END connection={{ ansible_connection }} cnos_user parameter test"