Skip to content
Open
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
14 changes: 9 additions & 5 deletions e2e-tests/resources/broker.resource
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,23 @@ Log In With Remote User Through CLI: Local Password
Match Text ${username}@ubuntu:~$ 120


Try Changing Username In sudo su Log In
Hid.Type String sudo su
Check That su To Local User Goes To Local Broker
Hid.Type String su ubuntu
Hid.Keys Combo Return
Try Navigating Back to User Selection
Cancel Operation
Match Text Password: 120
Hid.Type String ubuntu # The password for the local user is the same as the username in our test setup
Hid.Keys Combo Return
Match Text ubuntu@ubuntu:~$ 120


Try Changing Username In su Log In
Check That Username Cannot Be Changed When Using su
[Arguments] ${username}
Hid.Type String su ${username}
Hid.Keys Combo Return
Try Navigating Back to User Selection
Cancel Operation
Match Text su: Critical error - immediate abort 120


Try Navigating Back to User Selection
# First screen is the autoselected local password mode
Expand Down
7 changes: 6 additions & 1 deletion e2e-tests/resources/utils.resource
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ Close Terminal In Sudo Mode
Close Focused Window


Clear Terminal
Hid.Type String clear
Hid.Keys Combo Return


Log Out From Terminal Session
Match Text @ubuntu 120
# We are in a machinectl session, so we need to ^] thrice to exit properly
Expand Down Expand Up @@ -176,7 +181,7 @@ Launch App


Cancel Operation
Hid.Keys Combo Control_L C
Hid.Keys Combo Control_L c
Match Text @ubuntu 15


Expand Down
10 changes: 10 additions & 0 deletions e2e-tests/tests/login.robot
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ Test login with CLI
# Log in with remote user with local password
Open Terminal In Sudo Mode
Log In With Remote User Through CLI: Local Password ${username} ${local_password}
Log Out From Terminal Session
Close Terminal In Sudo Mode

# Try to change username during su login, it should not be possible
Open Terminal
Check That Username Cannot Be Changed When Using su ${username}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, this is weird. It's like the CTRL_L C from "Cancel Operation" never happened

Clear Terminal

# Check that `su` to a local user goes to the local broker, not authd.
Check That su To Local User Goes To Local Broker
40 changes: 0 additions & 40 deletions e2e-tests/tests/su_login.robot

This file was deleted.

Loading