Skip to content

Commit

Permalink
pam/integration-tests: Do not use utf-8 ellipses in broker messages
Browse files Browse the repository at this point in the history
These are not supported by some SSH clients, so better to be reliable
and support characters that are visible the same ways in all the
known cases
  • Loading branch information
3v1n0 committed Oct 22, 2024
1 parent 98864fe commit ce95ffa
Show file tree
Hide file tree
Showing 40 changed files with 1,514 additions and 1,292 deletions.
2 changes: 1 addition & 1 deletion pam/integration-tests/gdm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var testFidoDeviceUILayout = authd.UILayout{

var testPhoneAckUILayout = authd.UILayout{
Type: "form",
Label: ptrValue("Unlock your phone +33 or accept request on web interface:"),
Label: ptrValue("Unlock your phone +33... or accept request on web interface:"),
Content: ptrValue(""),
Wait: ptrValue("true"),
Button: ptrValue(""),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Gimme your password
> 1. Password authentication
2. Send URL to [email protected]
3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand All @@ -35,8 +35,8 @@ Click on the link received at [email protected] or enter th
1. Password authentication
> 2. Send URL to [email protected]
3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand All @@ -49,8 +49,8 @@ Plug your fido device and press with your thumb
1. Password authentication
2. Send URL to [email protected]
> 3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Gimme your password
> 1. Password authentication
2. Send URL to [email protected]
3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Gimme your password
> 1. Password authentication
2. Send URL to [email protected]
3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Gimme your password
> 1. Password authentication
2. Send URL to [email protected]
3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand All @@ -36,23 +36,23 @@ Plug your fido device and press with your thumb
Select your authentication method

> 1. Use your fido device foo
2. Use your phone +33
2. Use your phone +33...
3. Authentication code
────────────────────────────────────────────────────────────────────────────────
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Plug your fido device and press with your thumb
────────────────────────────────────────────────────────────────────────────────
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Unlock your phone +33 or accept request on web interface:
Unlock your phone +33... or accept request on web interface:
────────────────────────────────────────────────────────────────────────────────
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Select your authentication method

> 1. Use your phone +33
> 1. Use your phone +33...
2. Authentication code
────────────────────────────────────────────────────────────────────────────────
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Unlock your phone +33 or accept request on web interface:
Unlock your phone +33... or accept request on web interface:
────────────────────────────────────────────────────────────────────────────────
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
PAM Authenticate() for user "user-mfa" exited with success
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Gimme your password
> 1. Password authentication
2. Send URL to [email protected]
3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Gimme your password
> 1. Password authentication
2. Send URL to [email protected]
3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Gimme your password
> 1. Password authentication
2. Send URL to [email protected]
3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Gimme your password
> 1. Password authentication
2. Send URL to [email protected]
3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Gimme your password
> 1. Password authentication
2. Send URL to [email protected]
3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Gimme your password
> 1. Password authentication
2. Send URL to [email protected]
3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Username: user-integration-remember-mode
> 1. Password authentication
2. Send URL to [email protected]
3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Gimme your password
> 1. Password authentication
2. Send URL to [email protected]
3. Use your fido device foo
4. Use your phone +33
5. Use your phone +1
4. Use your phone +33...
5. Use your phone +1...
6. Use a QR code
7. Authentication code
────────────────────────────────────────────────────────────────────────────────
Expand All @@ -36,23 +36,23 @@ Plug your fido device and press with your thumb
Select your authentication method

> 1. Use your fido device foo
2. Use your phone +33
2. Use your phone +33...
3. Authentication code
────────────────────────────────────────────────────────────────────────────────
> ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK}
Plug your fido device and press with your thumb
────────────────────────────────────────────────────────────────────────────────
> ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK}
Unlock your phone +33 or accept request on web interface:
Unlock your phone +33... or accept request on web interface:
────────────────────────────────────────────────────────────────────────────────
> ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK}
Select your authentication method

> 1. Use your phone +33
> 1. Use your phone +33...
2. Authentication code
────────────────────────────────────────────────────────────────────────────────
> ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK}
Unlock your phone +33 or accept request on web interface:
Unlock your phone +33... or accept request on web interface:
────────────────────────────────────────────────────────────────────────────────
> ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK}
Enter your new password
Expand Down
Loading

0 comments on commit ce95ffa

Please sign in to comment.