Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/acceptance')
-rw-r--r--test/acceptance/auth_test.go3
-rw-r--r--test/acceptance/helpers_test.go4
2 files changed, 5 insertions, 2 deletions
diff --git a/test/acceptance/auth_test.go b/test/acceptance/auth_test.go
index fa2d768d..1e2ec481 100644
--- a/test/acceptance/auth_test.go
+++ b/test/acceptance/auth_test.go
@@ -54,7 +54,8 @@ func TestWhenAuthIsEnabledPrivateWillRedirectToAuthorize(t *testing.T) {
require.Equal(t, "/oauth/authorize", url.Path)
require.Equal(t, "clientID", url.Query().Get("client_id"))
require.Equal(t, "https://projects.gitlab-example.com/auth", url.Query().Get("redirect_uri"))
- require.NotEqual(t, "", url.Query().Get("state"))
+ require.NotEmpty(t, url.Query().Get("scope"))
+ require.NotEmpty(t, url.Query().Get("state"))
}
func TestWhenAuthDeniedWillCauseUnauthorized(t *testing.T) {
diff --git a/test/acceptance/helpers_test.go b/test/acceptance/helpers_test.go
index 5c380938..d3b4f7b9 100644
--- a/test/acceptance/helpers_test.go
+++ b/test/acceptance/helpers_test.go
@@ -628,7 +628,9 @@ func defaultConfigFileWith(t *testing.T, configs ...string) (string, func()) {
configs = append(configs, "auth-client-id=clientID",
"auth-client-secret=clientSecret",
- "auth-secret=authSecret")
+ "auth-secret=authSecret",
+ "auth-scope=authScope",
+ )
name := newConfigFile(t, configs...)