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
path: root/test
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2021-08-16 10:13:08 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-08-16 10:25:25 +0300
commita54a0b6a1c5f9dfe39a00e01aaacc4f0ddf9754a (patch)
tree664f0e0c51993d076acb28bf020801d65558c9eb /test
parentd4f76c30c37307de77041cc72cc5d45036e3ad7a (diff)
chore: remove unnecessary func
and fields added by mistake
Diffstat (limited to 'test')
-rw-r--r--test/acceptance/acceptance_test.go17
-rw-r--r--test/acceptance/helpers_test.go2
-rw-r--r--test/acceptance/stub_test.go1
3 files changed, 0 insertions, 20 deletions
diff --git a/test/acceptance/acceptance_test.go b/test/acceptance/acceptance_test.go
index becae777..e6b50c10 100644
--- a/test/acceptance/acceptance_test.go
+++ b/test/acceptance/acceptance_test.go
@@ -67,20 +67,3 @@ func TestMain(m *testing.M) {
os.Exit(m.Run())
}
-
-func skipUnlessEnabled(t *testing.T, conditions ...string) {
- t.Helper()
-
- for _, condition := range conditions {
- switch condition {
- case "not-inplace-chroot":
- if os.Getenv("TEST_DAEMONIZE") == "inplace" {
- t.Log("Not supported with -daemon-inplace-chroot")
- t.SkipNow()
- }
- default:
- t.Error("Unknown condition:", condition)
- t.FailNow()
- }
- }
-}
diff --git a/test/acceptance/helpers_test.go b/test/acceptance/helpers_test.go
index 1c168b86..4ea28b2a 100644
--- a/test/acceptance/helpers_test.go
+++ b/test/acceptance/helpers_test.go
@@ -545,8 +545,6 @@ func waitForRoundtrips(t *testing.T, listeners []ListenSpec, timeout time.Durati
type stubOpts struct {
m sync.RWMutex
apiCalled bool
- enableSSL bool
- enableSSLEnv bool
statusReadyCount int
authHandler http.HandlerFunc
userHandler http.HandlerFunc
diff --git a/test/acceptance/stub_test.go b/test/acceptance/stub_test.go
index 6523c672..10bd3cf6 100644
--- a/test/acceptance/stub_test.go
+++ b/test/acceptance/stub_test.go
@@ -138,7 +138,6 @@ func CreateGitLabAPISecretKeyFixtureFile(t *testing.T) (filepath string) {
return secretfile.Name()
}
-// TODO: NEED TO MOVE THIS to handler in api_responses
func handleAccessControlArtifactRequests(t *testing.T, w http.ResponseWriter, r *http.Request) bool {
authorization := r.Header.Get("Authorization")