chore: improve fake IDP script (#11602)

* chore: testIDP using static defaults for easier reuse
This commit is contained in:
Steven Masley
2024-01-15 10:01:41 -06:00
committed by GitHub
parent f915bdf26c
commit 5087f7b5f6
5 changed files with 204 additions and 80 deletions
+1 -1
View File
@@ -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()
}),
},