diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-08-19 08:34:56 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-08-19 08:34:56 +0300 |
commit | 99bc678dfe8fc6f41a415c19ed5bfc64e162adc7 (patch) | |
tree | a470b4c7c4389fa9e14d1e07f8d315d2d3185472 /internal/handlers/handlers_test.go | |
parent | 0036c260968d083e56e7336259e5464facb1dc73 (diff) |
docs: add related issue to TODO comment
Diffstat (limited to 'internal/handlers/handlers_test.go')
-rw-r--r-- | internal/handlers/handlers_test.go | 8 |
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) |