diff --git a/tests/oidc_authentication_test.go b/tests/oidc_authentication_test.go index 3a0a147..80f0359 100644 --- a/tests/oidc_authentication_test.go +++ b/tests/oidc_authentication_test.go @@ -15,7 +15,7 @@ func TestShouldAuthenticateSuccessfully(t *testing.T) { assert.NoError(t, WithWebdriver(func(wd ExtendedWebDriver) error { // In case the cookie is set, we logout the user before running the test. - wd.Get(fmt.Sprintf("%s/oauth2/logout", App2URL)) + wd.Get(fmt.Sprintf("%soauth2/logout", App2URL)) wd.Get(App2URL) wd.WaitUntilAuthenticatedWithOIDC(ctx, t, "john", "password") @@ -31,13 +31,13 @@ func TestShouldVerifyUserRedirectedToInitialURL(t *testing.T) { assert.NoError(t, WithWebdriver(func(wd ExtendedWebDriver) error { // In case the cookie is set, we logout the user before running the test. - wd.Get(fmt.Sprintf("%s/oauth2/logout", App2URL)) + wd.Get(fmt.Sprintf("%soauth2/logout", App2URL)) wd.Get(App2URL) wd.WaitUntilAuthenticatedWithOIDC(ctx, t, "john", "password") wd.WaitUntilURLIs(ctx, t, App2URL) wd.WaitUntilBodyContains(ctx, t, "PROTECTED!") - url := fmt.Sprintf("%s/secret.html", App2URL) + url := fmt.Sprintf("%ssecret.html", App2URL) wd.Get(url) wd.WaitUntilURLIs(ctx, t, url) wd.WaitUntilBodyContains(ctx, t, "SECRET!") @@ -51,7 +51,7 @@ func TestShouldKeepUseLoggedIn(t *testing.T) { assert.NoError(t, WithWebdriver(func(wd ExtendedWebDriver) error { // In case the cookie is set, we logout the user before running the test. - wd.Get(fmt.Sprintf("%s/oauth2/logout", App2URL)) + wd.Get(fmt.Sprintf("%soauth2/logout", App2URL)) wd.Get(App2URL) wd.WaitUntilAuthenticatedWithOIDC(ctx, t, "john", "password") @@ -74,7 +74,7 @@ func TestShouldFailAuthentication(t *testing.T) { assert.NoError(t, WithWebdriver(func(wd ExtendedWebDriver) error { // In case the cookie is set, we logout the user before running the test. - wd.Get(fmt.Sprintf("%s/oauth2/logout", App2URL)) + wd.Get(fmt.Sprintf("%soauth2/logout", App2URL)) wd.Get(App2URL) wd.WaitUntilRedirectedToDexLogin(ctx, t)