@@ -54,8 +54,8 @@ func TestLogin(t *testing.T) {
54
54
"first user?" , "yes" ,
55
55
"username" , "testuser" ,
56
56
57
- "password" , "password " ,
58
- "password" , "password " , // Confirm.
57
+ "password" , "SomeSecurePassword! " ,
58
+ "password" , "SomeSecurePassword! " , // Confirm.
59
59
"trial" , "yes" ,
60
60
}
61
61
for i := 0 ; i < len (matches ); i += 2 {
@@ -89,8 +89,8 @@ func TestLogin(t *testing.T) {
89
89
"first user?" , "yes" ,
90
90
"username" , "testuser" ,
91
91
92
- "password" , "password " ,
93
- "password" , "password " , // Confirm.
92
+ "password" , "SomeSecurePassword! " ,
93
+ "password" , "SomeSecurePassword! " , // Confirm.
94
94
"trial" , "yes" ,
95
95
}
96
96
for i := 0 ; i < len (matches ); i += 2 {
@@ -107,7 +107,7 @@ func TestLogin(t *testing.T) {
107
107
t .Parallel ()
108
108
client := coderdtest .New (t , nil )
109
109
doneChan := make (chan struct {})
110
- root ,
_ := clitest .
New (
t ,
"login" ,
client .
URL .
String (),
"--first-user-username" ,
"testuser" ,
"--first-user-email" ,
"[email protected] " ,
"--first-user-password" ,
"password " ,
"--first-user-trial" )
110
+ root ,
_ := clitest .
New (
t ,
"login" ,
client .
URL .
String (),
"--first-user-username" ,
"testuser" ,
"--first-user-email" ,
"[email protected] " ,
"--first-user-password" ,
"SomeSecurePassword! " ,
"--first-user-trial" )
111
111
pty := ptytest .New (t )
112
112
root .SetIn (pty .Input ())
113
113
root .SetOut (pty .Output ())
@@ -143,8 +143,8 @@ func TestLogin(t *testing.T) {
143
143
"first user?" , "yes" ,
144
144
"username" , "testuser" ,
145
145
146
- "password" , "mypass " ,
147
- "password" , "wrongpass " , // Confirm.
146
+ "password" , "MyFirstSecurePassword! " ,
147
+ "password" , "MyNonMatchingSecurePassword! " , // Confirm.
148
148
}
149
149
for i := 0 ; i < len (matches ); i += 2 {
150
150
match := matches [i ]
@@ -157,9 +157,9 @@ func TestLogin(t *testing.T) {
157
157
pty .ExpectMatch ("Passwords do not match" )
158
158
pty .ExpectMatch ("Enter a " + cliui .Styles .Field .Render ("password" ))
159
159
160
- pty .WriteLine ("pass " )
160
+ pty .WriteLine ("SomeSecurePassword! " )
161
161
pty .ExpectMatch ("Confirm" )
162
- pty .WriteLine ("pass " )
162
+ pty .WriteLine ("SomeSecurePassword! " )
163
163
pty .ExpectMatch ("trial" )
164
164
pty .WriteLine ("yes" )
165
165
pty .ExpectMatch ("Welcome to Coder" )
0 commit comments