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:
authorVladimir Shushlin <vshushlin@gitlab.com>2021-07-15 12:27:25 +0300
committerVladimir Shushlin <vshushlin@gitlab.com>2021-07-15 12:27:25 +0300
commitb66a6ec4d64ddabf71b99e82ceab9049b18099db (patch)
tree92340c0a07b3b539b9e7728cd65be280168a3f56 /test/acceptance/helpers_test.go
parentf2d82a471b1bfd083a3f7eedc5be9fb95ebcc761 (diff)
parentec465142275e62f2251bc6e27c500714d92e7ec2 (diff)
Merge branch '571-refactoring-acceptnace-part-3' into 'master'
Remove skipUnlessEnabled(t) from tests See merge request gitlab-org/gitlab-pages!521
Diffstat (limited to 'test/acceptance/helpers_test.go')
-rw-r--r--test/acceptance/helpers_test.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/acceptance/helpers_test.go b/test/acceptance/helpers_test.go
index 472f42d1..ebb498d0 100644
--- a/test/acceptance/helpers_test.go
+++ b/test/acceptance/helpers_test.go
@@ -221,10 +221,6 @@ func RunPagesProcessWithEnvs(t *testing.T, wait bool, pagesBinary string, listen
return cleanup
}
-func RunPagesProcessWithOutput(t *testing.T, pagesBinary string, listeners []ListenSpec, promPort string, extraArgs ...string) (out *LogCaptureBuffer, teardown func()) {
- return runPagesProcess(t, true, pagesBinary, listeners, promPort, nil, extraArgs...)
-}
-
func RunPagesProcessWithStubGitLabServer(t *testing.T, opts ...processOption) *LogCaptureBuffer {
chdir := false
chdirCleanup := testhelpers.ChdirInPath(t, "../../shared/pages", &chdir)
@@ -359,13 +355,12 @@ func runPagesProcess(t *testing.T, wait bool, pagesBinary string, listeners []Li
func getPagesArgs(t *testing.T, listeners []ListenSpec, promPort string, extraArgs []string) (args, tempfiles []string) {
var hasHTTPS bool
-
args = append(args, "-log-verbose=true")
for _, spec := range listeners {
args = append(args, "-listen-"+spec.Type, spec.JoinHostPort())
- if spec.Type == request.SchemeHTTPS {
+ if strings.Contains(spec.Type, request.SchemeHTTPS) {
hasHTTPS = true
}
}