mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: improve fake IDP script (#11602)
* chore: testIDP using static defaults for easier reuse
This commit is contained in:
@@ -126,7 +126,7 @@ func TestExternalAuthByID(t *testing.T) {
|
||||
client := coderdtest.New(t, &coderdtest.Options{
|
||||
ExternalAuthConfigs: []*externalauth.Config{
|
||||
fake.ExternalAuthConfig(t, providerID, routes, func(cfg *externalauth.Config) {
|
||||
cfg.AppInstallationsURL = cfg.ValidateURL + "/installs"
|
||||
cfg.AppInstallationsURL = strings.TrimSuffix(cfg.ValidateURL, "/") + "/installs"
|
||||
cfg.Type = codersdk.EnhancedExternalAuthProviderGitHub.String()
|
||||
}),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user