diff options
author | Nick Thomas <nick@gitlab.com> | 2017-05-23 20:44:48 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-05-23 20:44:48 +0300 |
commit | 383f445167f225863f5a2de18228b25031fe44c6 (patch) | |
tree | 6251f5df2f83773f8dfe7b874751539018fbae27 | |
parent | bd57f8b3a1dc5299dd699be44b2aade37b16409b (diff) |
Add a test for the host-with-port case
-rw-r--r-- | acceptance_test.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/acceptance_test.go b/acceptance_test.go index 24c0104c..d08bce12 100644 --- a/acceptance_test.go +++ b/acceptance_test.go @@ -69,6 +69,21 @@ func TestKnownHostReturns200(t *testing.T) { } } +func TestKnownHostWithPortReturns200(t *testing.T) { + skipUnlessEnabled(t) + teardown := RunPagesProcess(t, *pagesBinary, listeners, "") + defer teardown() + + for _, spec := range listeners { + rsp, err := GetPageFromListener(t, spec, "group.gitlab-example.com:"+spec.Port, "project/") + + assert.NoError(t, err) + rsp.Body.Close() + assert.Equal(t, http.StatusOK, rsp.StatusCode) + } + +} + func TestHttpToHttpsRedirectDisabled(t *testing.T) { skipUnlessEnabled(t) teardown := RunPagesProcess(t, *pagesBinary, listeners, "", "-redirect-http=false") |