|
|
@ -5,7 +5,6 @@
|
|
|
|
name: auth_user
|
|
|
|
name: auth_user
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
configured_password: pass123
|
|
|
|
configured_password: pass123
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: test login
|
|
|
|
- name: test login
|
|
|
|
expect:
|
|
|
|
expect:
|
|
|
@ -31,7 +30,6 @@
|
|
|
|
name: auth_user
|
|
|
|
name: auth_user
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
public_key_contents: "{{ lookup('file', \"{{ role_path }}/files/public.pub\") }}"
|
|
|
|
public_key_contents: "{{ lookup('file', \"{{ role_path }}/files/public.pub\") }}"
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: test login with private key
|
|
|
|
- name: test login with private key
|
|
|
|
expect:
|
|
|
|
expect:
|
|
|
@ -43,7 +41,6 @@
|
|
|
|
iosxr_user:
|
|
|
|
iosxr_user:
|
|
|
|
name: auth_user
|
|
|
|
name: auth_user
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: test login with private key (should fail, no user)
|
|
|
|
- name: test login with private key (should fail, no user)
|
|
|
|
expect:
|
|
|
|
expect:
|
|
|
@ -58,7 +55,6 @@
|
|
|
|
name: auth_user
|
|
|
|
name: auth_user
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
public_key: "{{ role_path }}/files/public.pub"
|
|
|
|
public_key: "{{ role_path }}/files/public.pub"
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: test login with private key
|
|
|
|
- name: test login with private key
|
|
|
|
expect:
|
|
|
|
expect:
|
|
|
@ -72,7 +68,6 @@
|
|
|
|
name: auth_user
|
|
|
|
name: auth_user
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
public_key_contents: "{{ lookup('file', \"{{ role_path }}/files/public2.pub\") }}"
|
|
|
|
public_key_contents: "{{ lookup('file', \"{{ role_path }}/files/public2.pub\") }}"
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# FIXME: pexpect fails with OSError: [Errno 5] Input/output error
|
|
|
|
# FIXME: pexpect fails with OSError: [Errno 5] Input/output error
|
|
|
|
- name: test login with invalid private key (should fail)
|
|
|
|
- name: test login with invalid private key (should fail)
|
|
|
@ -93,5 +88,4 @@
|
|
|
|
iosxr_user:
|
|
|
|
iosxr_user:
|
|
|
|
name: auth_user
|
|
|
|
name: auth_user
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|