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
path: root/test
diff options
context:
space:
mode:
authorVladimir Shushlin <vshushlin@gitlab.com>2021-12-14 16:32:18 +0300
committerVladimir Shushlin <vshushlin@gitlab.com>2021-12-14 16:32:18 +0300
commitcc23d6ef34be2fd5e6dff719dd1eb62a51b7a82f (patch)
tree74683f358842025dd9a46554841fa43cc2db784d /test
parent6ffb25027003be3acd832ba21ce8099ad8c05b5a (diff)
parentdafbc536c1ff53345dc6fedccf4071d87365b107 (diff)
Merge branch 'remove/ff-enable-redirects' into 'master'
refactor: remove FF_ENABLE_REDIRECTS feature flag Closes #618 See merge request gitlab-org/gitlab-pages!582
Diffstat (limited to 'test')
-rw-r--r--test/acceptance/redirects_test.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/test/acceptance/redirects_test.go b/test/acceptance/redirects_test.go
index 1ce7a0be..0cadea16 100644
--- a/test/acceptance/redirects_test.go
+++ b/test/acceptance/redirects_test.go
@@ -11,27 +11,6 @@ import (
redirects "gitlab.com/gitlab-org/gitlab-pages/internal/redirects"
)
-func TestDisabledRedirects(t *testing.T) {
- RunPagesProcess(t,
- withListeners([]ListenSpec{httpListener}),
- withEnv([]string{"FF_ENABLE_REDIRECTS=false", redirects.FFEnablePlaceholders + "=true"}),
- )
-
- // Test that redirects status page is forbidden
- rsp, err := GetPageFromListener(t, httpListener, "group.redirects.gitlab-example.com", "/project-redirects/_redirects")
- require.NoError(t, err)
- defer rsp.Body.Close()
-
- require.Equal(t, http.StatusForbidden, rsp.StatusCode)
-
- // Test that redirects are disabled
- rsp, err = GetRedirectPage(t, httpListener, "group.redirects.gitlab-example.com", "/project-redirects/redirect-portal.html")
- require.NoError(t, err)
- defer rsp.Body.Close()
-
- require.Equal(t, http.StatusNotFound, rsp.StatusCode)
-}
-
func TestRedirectStatusPage(t *testing.T) {
RunPagesProcess(t,
withListeners([]ListenSpec{httpListener}),