Skip to content

Commit ec7a7a0

Browse files
committed
Fix tests
1 parent 7937b0e commit ec7a7a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/coderdtest/coderdtest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ func RequestExternalAuthCallback(t *testing.T, providerID string, client *coders
906906
return http.ErrUseLastResponse
907907
}
908908
state := "somestate"
909-
oauthURL, err := client.URL.Parse(fmt.Sprintf("/externalauth/%s/callback?code=asd&state=%s", providerID, state))
909+
oauthURL, err := client.URL.Parse(fmt.Sprintf("/external-auth/%s/callback?code=asd&state=%s", providerID, state))
910910
require.NoError(t, err)
911911
req, err := http.NewRequestWithContext(context.Background(), "GET", oauthURL.String(), nil)
912912
require.NoError(t, err)

coderd/externalauth/externalauth_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func TestConvertYAML(t *testing.T) {
343343
Scopes: []string{"read"},
344344
}}, &url.URL{})
345345
require.NoError(t, err)
346-
require.Equal(t, "https://auth.com?client_id=id&redirect_uri=%2Fexternalauth%2Fgitlab%2Fcallback&response_type=code&scope=read", config[0].AuthCodeURL(""))
346+
require.Equal(t, "https://auth.com?client_id=id&redirect_uri=%2Fexternal-auth%2Fgitlab%2Fcallback&response_type=code&scope=read", config[0].AuthCodeURL(""))
347347
})
348348
}
349349

0 commit comments

Comments
 (0)