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:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-09-16 03:29:44 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-09-16 03:29:44 +0300
commitdafbc536c1ff53345dc6fedccf4071d87365b107 (patch)
tree615633d6752494732fad7456abd9786d810e485d /test
parente4c92b429ec27d8ce711224ae834da638c7de674 (diff)
refactor: remove FF_ENABLE_REDIRECTS feature flag
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}),