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:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-08-19 08:34:56 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-08-19 08:34:56 +0300
commit99bc678dfe8fc6f41a415c19ed5bfc64e162adc7 (patch)
treea470b4c7c4389fa9e14d1e07f8d315d2d3185472 /internal/handlers/handlers_test.go
parent0036c260968d083e56e7336259e5464facb1dc73 (diff)
docs: add related issue to TODO comment
Diffstat (limited to 'internal/handlers/handlers_test.go')
-rw-r--r--internal/handlers/handlers_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/handlers/handlers_test.go b/internal/handlers/handlers_test.go
index 3c14de35..710a167c 100644
--- a/internal/handlers/handlers_test.go
+++ b/internal/handlers/handlers_test.go
@@ -79,7 +79,7 @@ func TestNotFoundWithTokenIsNotHandled(t *testing.T) {
reqURL, _ := url.Parse("/")
r := &http.Request{URL: reqURL}
response := &http.Response{StatusCode: http.StatusNotFound}
- // nolint:bodyclose // FIXME
+ // nolint:bodyclose // TODO investigate https://gitlab.com/gitlab-org/gitlab-pages/-/issues/606
handled := handlers.checkIfLoginRequiredOrInvalidToken(w, r, "token")(response)
require.False(t, handled)
@@ -98,7 +98,7 @@ func TestNotFoundWithoutTokenIsNotHandledWhenNotAuthSupport(t *testing.T) {
reqURL, _ := url.Parse("/")
r := &http.Request{URL: reqURL}
response := &http.Response{StatusCode: http.StatusNotFound}
- // nolint:bodyclose // FIXME
+ // nolint:bodyclose // TODO investigate https://gitlab.com/gitlab-org/gitlab-pages/-/issues/606
handled := handlers.checkIfLoginRequiredOrInvalidToken(w, r, "")(response)
require.False(t, handled)
@@ -117,7 +117,7 @@ func TestNotFoundWithoutTokenIsHandled(t *testing.T) {
reqURL, _ := url.Parse("/")
r := &http.Request{URL: reqURL}
response := &http.Response{StatusCode: http.StatusNotFound}
- // nolint:bodyclose // FIXME
+ // nolint:bodyclose // TODO investigate https://gitlab.com/gitlab-org/gitlab-pages/-/issues/606
handled := handlers.checkIfLoginRequiredOrInvalidToken(w, r, "")(response)
require.True(t, handled)
@@ -136,7 +136,7 @@ func TestInvalidTokenResponseIsHandled(t *testing.T) {
reqURL, _ := url.Parse("/")
r := &http.Request{URL: reqURL}
response := &http.Response{StatusCode: http.StatusUnauthorized}
- // nolint:bodyclose // FIXME
+ // nolint:bodyclose // TODO investigate https://gitlab.com/gitlab-org/gitlab-pages/-/issues/606
handled := handlers.checkIfLoginRequiredOrInvalidToken(w, r, "token")(response)
require.True(t, handled)