summaryrefslogtreecommitdiff
path: root/test/integration/targets/eos_user
diff options
context:
space:
mode:
authorRicardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com>2017-08-17 22:10:05 +0200
committerGitHub <noreply@github.com>2017-08-17 22:10:05 +0200
commitd3ecf3efb7022fccd1cdca4f2947731a42dfaa18 (patch)
tree1d631b6ba2d507274001204e34efaee9986c9811 /test/integration/targets/eos_user
parent8e18a2d6eefd6dff68f27f40e11e7ccce57bac2e (diff)
downloadansible-d3ecf3efb7022fccd1cdca4f2947731a42dfaa18.tar.gz
Remove user auth tests (#28364)
They are breaking CI, as they are SSHing with a non IP address. Removing for now, we can think of other strategies for this later.
Diffstat (limited to 'test/integration/targets/eos_user')
-rw-r--r--test/integration/targets/eos_user/tests/cli/auth.yaml39
1 files changed, 0 insertions, 39 deletions
diff --git a/test/integration/targets/eos_user/tests/cli/auth.yaml b/test/integration/targets/eos_user/tests/cli/auth.yaml
deleted file mode 100644
index 5d1eef108a..0000000000
--- a/test/integration/targets/eos_user/tests/cli/auth.yaml
+++ /dev/null
@@ -1,39 +0,0 @@
----
-- block:
- - name: Create user with password
- eos_user:
- name: auth_user
- privilege: 15
- role: network-operator
- state: present
- authorize: yes
- provider: "{{ cli }}"
- configured_password: pass123
-
- - name: test login
- expect:
- command: "ssh auth_user@{{ inventory_hostname }} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no show version"
- responses:
- (?i)password: "pass123"
-
- - name: test login with invalid password (should fail)
- expect:
- command: "ssh auth_user@{{ inventory_hostname }} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no show version"
- responses:
- (?i)password: "badpass"
- ignore_errors: yes
- register: results
-
- - name: check that attempt failed
- assert:
- that:
- - results.failed
-
- always:
- - name: delete user
- eos_user:
- name: auth_user
- state: absent
- provider: "{{ cli }}"
- authorize: yes
- register: result