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:
authorNick Thomas <nick@gitlab.com>2017-05-23 20:44:48 +0300
committerNick Thomas <nick@gitlab.com>2017-05-23 20:44:48 +0300
commit383f445167f225863f5a2de18228b25031fe44c6 (patch)
tree6251f5df2f83773f8dfe7b874751539018fbae27
parentbd57f8b3a1dc5299dd699be44b2aade37b16409b (diff)
Add a test for the host-with-port case
-rw-r--r--acceptance_test.go15
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")