Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions e2e-tests/resources/utils.resource
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,39 @@ ${YARF_IMAGE_DIR} ${SUITE_OUTPUT_DIR}/screenshots
Log In
Set OCR Confidence Threshold 0.94
Set OCR Coincidence Threshold 92
Log In With Password ubuntu


Log In With Password
[Arguments] ${password}
Match Text Not listed 300
Wait Until User Selected
Hid.Type String ${password}
Hid.Keys Combo Return
Wait Until Desktop Ready


Log In And Set Password
[Arguments] ${new_password}
Match Text Not listed 300
Wait Until User Selected
Hid.Type String ubuntu
Hid.Keys Combo Return

Match Text You are required to change your password immediately 30
Match Text Changing password 30
Sleep 2
Hid.Type String ubuntu
Hid.Keys Combo Return

Match Text New password 30
Hid.Type String ${new_password}
Hid.Keys Combo Return

Match Text Retype new password 30
Hid.Type String ${new_password}
Hid.Keys Combo Return

Wait Until Desktop Ready


Expand Down Expand Up @@ -206,6 +235,12 @@ Try machinectl login Prompt
END


Force Password Change
Hid.Type String passwd -e ubuntu
Hid.Keys Combo Return
Match Text passwd: password changed. 30


### Setup ###

Restore Snapshot
Expand Down
31 changes: 31 additions & 0 deletions e2e-tests/tests/local_user_passwd_change.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
*** Settings ***
Resource resources/utils.resource
Resource resources/authd.resource

Resource resources/broker.resource

# Test Tags robot:exit-on-failure

Test Setup utils.Test Setup snapshot=%{BROKER}-installed
Test Teardown utils.Test Teardown


*** Variables ***
${new_password} Passwd1234


*** Test Cases ***
Test changing local password of local user
[Documentation] This test verifies that a local user can still change their local password with authd installed.

# Log in with local user
Log In

# Change password for local user
Open Terminal In Sudo Mode
Force Password Change
Close Terminal In Sudo Mode
Log Out

# Log in with new password
Log In And Set Password ${new_password}
Loading