Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaaf54d5

Browse files
committed
fix some test urls
1 parentaba07a5 commitaaf54d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎coderd/coderdtest/oidctest/idp.go‎

Lines changed: 1 addition & 1 deletion
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:=rangeopts {
10481048
opt(cfg)

‎coderd/externalauth_test.go‎

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp