Skip to content

Commit cc2861a

Browse files
codingllamagithub-actions
authored and
github-actions
committed
Rename tests to TestPasswordlessProhibitedForSSO
1 parent 18089f7 commit cc2861a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/auth/auth_login_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1079,9 +1079,9 @@ func TestServer_Authenticate_passwordless(t *testing.T) {
10791079
}
10801080
}
10811081

1082-
// TestServer_Authenticate_passwordlessSSO tests a scenario where an SSO user
1083-
// bypasses SSO by using a passwordless login.
1084-
func TestServer_Authenticate_passwordlessSSO(t *testing.T) {
1082+
// TestPasswordlessProhibitedForSSO tests a scenario where an SSO user bypasses
1083+
// SSO by using a passwordless login.
1084+
func TestPasswordlessProhibitedForSSO(t *testing.T) {
10851085
t.Parallel()
10861086

10871087
testServer := newTestTLSServer(t)

lib/web/apiserver_login_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,10 @@ func TestAuthenticate_passwordless(t *testing.T) {
314314
})
315315
}
316316

317-
// TestAuthenticate_passwordlessSSO is rather similar to
318-
// TestServer_Authenticate_passwordlessSSO, but here our main concern is that
317+
// TestPasswordlessProhibitedForSSO is rather similar to
318+
// lib/auth.TestPasswordlessProhibitedForSSO, but here our main concern is that
319319
// error messages aren't obfuscated along the way.
320-
func TestAuthenticate_passwordlessSSO(t *testing.T) {
320+
func TestPasswordlessProhibitedForSSO(t *testing.T) {
321321
env := newWebPack(t, 1)
322322

323323
testServer := env.server

0 commit comments

Comments
 (0)