Skip to content

Commit 51952cd

Browse files
committed
fix some test urls
1 parent 41ae6cd commit 51952cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/coderdtest/oidctest/idp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ func (f *FakeIDP) ExternalAuthConfig(t testing.TB, id string, custom *ExternalAu
10421042
DisplayIcon: f.WellknownConfig().UserInfoURL,
10431043
// Omit the /user for the validate so we can easily append to it when modifying
10441044
// the cfg for advanced tests.
1045-
ValidateURL: f.issuerURL.ResolveReference(&url.URL{Path: "/external-auth-validate/user"}).String(),
1045+
ValidateURL: f.issuerURL.ResolveReference(&url.URL{Path: "/external-auth-validate/"}).String(),
10461046
}
10471047
for _, opt := range opts {
10481048
opt(cfg)

coderd/externalauth_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func TestExternalAuthByID(t *testing.T) {
126126
client := coderdtest.New(t, &coderdtest.Options{
127127
ExternalAuthConfigs: []*externalauth.Config{
128128
fake.ExternalAuthConfig(t, providerID, routes, func(cfg *externalauth.Config) {
129-
cfg.AppInstallationsURL = cfg.ValidateURL + "/installs"
129+
cfg.AppInstallationsURL = strings.TrimSuffix(cfg.ValidateURL, "/") + "/installs"
130130
cfg.Type = codersdk.EnhancedExternalAuthProviderGitHub.String()
131131
}),
132132
},

0 commit comments

Comments
 (0)