Skip to content

Commit 18104bd

Browse files
tests: improve layout of login prompt with proper labels and alignment
1 parent 7649e21 commit 18104bd

15 files changed

+933
-622
lines changed

pam/integration-tests/testdata/golden/TestCLIAuthenticate/Authenticate_user_with_qr_code

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ Scan the qrcode or enter the code in the login page
4343
████▄▄▄▄▄▄▄█▄█▄█▄█▄████▄▄▄▄▄▄████
4444
█████████████████████████████████
4545
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
46-
https://ubuntu.com
47-
1337
46+
47+
URL: https://ubuntu.com
48+
Code: 1337
4849

4950
[ Regenerate code ]
5051

@@ -70,8 +71,9 @@ Scan the qrcode or enter the code in the login page
7071
████▄▄▄▄▄▄▄█▄███▄█▄████▄▄▄▄▄▄████
7172
█████████████████████████████████
7273
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
73-
https://ubuntu.fr/
74-
1338
74+
75+
URL: https://ubuntu.fr/
76+
Code: 1338
7577

7678
[ Regenerate code ]
7779

@@ -99,8 +101,9 @@ Scan the qrcode or enter the code in the login page
99101
████▄▄▄▄▄▄▄█▄▄█▄▄█▄▄▄▄█▄▄▄▄██▄█▄█████
100102
█████████████████████████████████████
101103
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
102-
https://ubuntuforum-br.org/
103-
1339
104+
105+
URL: https://ubuntuforum-br.org/
106+
Code: 1339
104107

105108
[ Regenerate code ]
106109

@@ -126,8 +129,9 @@ Scan the qrcode or enter the code in the login page
126129
████▄▄▄▄▄▄▄█▄▄███▄█▄▄██▄███▄▄████
127130
█████████████████████████████████
128131
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
129-
https://www.ubuntu-it.org/
130-
1340
132+
133+
URL: https://www.ubuntu-it.org/
134+
Code: 1340
131135

132136
[ Regenerate code ]
133137

@@ -153,8 +157,9 @@ Scan the qrcode or enter the code in the login page
153157
████▄▄▄▄▄▄▄█▄█▄█▄█▄████▄▄▄▄▄▄████
154158
█████████████████████████████████
155159
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
156-
https://ubuntu.com
157-
1341
160+
161+
URL: https://ubuntu.com
162+
Code: 1341
158163

159164
[ Regenerate code ]
160165

pam/integration-tests/testdata/golden/TestCLIAuthenticate/Authenticate_user_with_qr_code_after_many_regenerations

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ Scan the qrcode or enter the code in the login page
5151
████▄▄▄▄▄▄▄█▄█▄█▄█▄████▄▄▄▄▄▄████
5252
█████████████████████████████████
5353
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
54-
https://ubuntu.com
55-
1337
54+
55+
URL: https://ubuntu.com
56+
Code: 1337
5657

5758
[ Regenerate code ]
5859

pam/integration-tests/testdata/golden/TestCLIAuthenticate/Authenticate_user_with_qr_code_in_a_TTY

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ Scan the qrcode or enter the code in the login page
5959
██████████████████████████████████████████████████████████████████
6060
██████████████████████████████████████████████████████████████████
6161
██████████████████████████████████████████████████████████████████
62-
https://ubuntu.com
63-
1337
62+
63+
URL: https://ubuntu.com
64+
Code: 1337
6465

6566
[ Regenerate code ]
6667

@@ -102,8 +103,9 @@ Scan the qrcode or enter the code in the login page
102103
██████████████████████████████████████████████████████████████████
103104
██████████████████████████████████████████████████████████████████
104105
██████████████████████████████████████████████████████████████████
105-
https://ubuntu.fr/
106-
1338
106+
107+
URL: https://ubuntu.fr/
108+
Code: 1338
107109

108110
[ Regenerate code ]
109111

@@ -149,8 +151,9 @@ Scan the qrcode or enter the code in the login page
149151
██████████████████████████████████████████████████████████████████████████
150152
██████████████████████████████████████████████████████████████████████████
151153
██████████████████████████████████████████████████████████████████████████
152-
https://ubuntuforum-br.org/
153-
1339
154+
155+
URL: https://ubuntuforum-br.org/
156+
Code: 1339
154157

155158
[ Regenerate code ]
156159

@@ -192,8 +195,9 @@ Scan the qrcode or enter the code in the login page
192195
██████████████████████████████████████████████████████████████████
193196
██████████████████████████████████████████████████████████████████
194197
██████████████████████████████████████████████████████████████████
195-
https://www.ubuntu-it.org/
196-
1340
198+
199+
URL: https://www.ubuntu-it.org/
200+
Code: 1340
197201

198202
[ Regenerate code ]
199203

@@ -235,8 +239,9 @@ Scan the qrcode or enter the code in the login page
235239
██████████████████████████████████████████████████████████████████
236240
██████████████████████████████████████████████████████████████████
237241
██████████████████████████████████████████████████████████████████
238-
https://ubuntu.com
239-
1341
242+
243+
URL: https://ubuntu.com
244+
Code: 1341
240245

241246
[ Regenerate code ]
242247

pam/integration-tests/testdata/golden/TestCLIAuthenticate/Authenticate_user_with_qr_code_in_a_TTY_session

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ Scan the qrcode or enter the code in the login page
5959
██████████████████████████████████████████████████████████████████
6060
██████████████████████████████████████████████████████████████████
6161
██████████████████████████████████████████████████████████████████
62-
https://ubuntu.com
63-
1337
62+
63+
URL: https://ubuntu.com
64+
Code: 1337
6465

6566
[ Regenerate code ]
6667

@@ -102,8 +103,9 @@ Scan the qrcode or enter the code in the login page
102103
██████████████████████████████████████████████████████████████████
103104
██████████████████████████████████████████████████████████████████
104105
██████████████████████████████████████████████████████████████████
105-
https://ubuntu.fr/
106-
1338
106+
107+
URL: https://ubuntu.fr/
108+
Code: 1338
107109

108110
[ Regenerate code ]
109111

@@ -149,8 +151,9 @@ Scan the qrcode or enter the code in the login page
149151
██████████████████████████████████████████████████████████████████████████
150152
██████████████████████████████████████████████████████████████████████████
151153
██████████████████████████████████████████████████████████████████████████
152-
https://ubuntuforum-br.org/
153-
1339
154+
155+
URL: https://ubuntuforum-br.org/
156+
Code: 1339
154157

155158
[ Regenerate code ]
156159

@@ -192,8 +195,9 @@ Scan the qrcode or enter the code in the login page
192195
██████████████████████████████████████████████████████████████████
193196
██████████████████████████████████████████████████████████████████
194197
██████████████████████████████████████████████████████████████████
195-
https://www.ubuntu-it.org/
196-
1340
198+
199+
URL: https://www.ubuntu-it.org/
200+
Code: 1340
197201

198202
[ Regenerate code ]
199203

@@ -235,8 +239,9 @@ Scan the qrcode or enter the code in the login page
235239
██████████████████████████████████████████████████████████████████
236240
██████████████████████████████████████████████████████████████████
237241
██████████████████████████████████████████████████████████████████
238-
https://ubuntu.com
239-
1341
242+
243+
URL: https://ubuntu.com
244+
Code: 1341
240245

241246
[ Regenerate code ]
242247

pam/integration-tests/testdata/golden/TestCLIAuthenticate/Authenticate_user_with_qr_code_in_screen

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ Scan the qrcode or enter the code in the login page
5959
██████████████████████████████████████████████████████████████████
6060
██████████████████████████████████████████████████████████████████
6161
██████████████████████████████████████████████████████████████████
62-
https://ubuntu.com
63-
1337
62+
63+
URL: https://ubuntu.com
64+
Code: 1337
6465

6566
[ Regenerate code ]
6667

@@ -102,8 +103,9 @@ Scan the qrcode or enter the code in the login page
102103
██████████████████████████████████████████████████████████████████
103104
██████████████████████████████████████████████████████████████████
104105
██████████████████████████████████████████████████████████████████
105-
https://ubuntu.fr/
106-
1338
106+
107+
URL: https://ubuntu.fr/
108+
Code: 1338
107109

108110
[ Regenerate code ]
109111

@@ -149,8 +151,9 @@ Scan the qrcode or enter the code in the login page
149151
██████████████████████████████████████████████████████████████████████████
150152
██████████████████████████████████████████████████████████████████████████
151153
██████████████████████████████████████████████████████████████████████████
152-
https://ubuntuforum-br.org/
153-
1339
154+
155+
URL: https://ubuntuforum-br.org/
156+
Code: 1339
154157

155158
[ Regenerate code ]
156159

@@ -192,8 +195,9 @@ Scan the qrcode or enter the code in the login page
192195
██████████████████████████████████████████████████████████████████
193196
██████████████████████████████████████████████████████████████████
194197
██████████████████████████████████████████████████████████████████
195-
https://www.ubuntu-it.org/
196-
1340
198+
199+
URL: https://www.ubuntu-it.org/
200+
Code: 1340
197201

198202
[ Regenerate code ]
199203

@@ -235,8 +239,9 @@ Scan the qrcode or enter the code in the login page
235239
██████████████████████████████████████████████████████████████████
236240
██████████████████████████████████████████████████████████████████
237241
██████████████████████████████████████████████████████████████████
238-
https://ubuntu.com
239-
1341
242+
243+
URL: https://ubuntu.com
244+
Code: 1341
240245

241246
[ Regenerate code ]
242247

0 commit comments

Comments
 (0)