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:
authorJaime Martinez <jmartinez@gitlab.com>2021-08-17 06:58:49 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-08-17 07:01:14 +0300
commit685af284110f55590c0288815bae80cc77cad247 (patch)
tree4e3997fc8002c9dc40b7a17dea17989276b72986 /test/acceptance/auth_test.go
parent84d1dde7f22aad875f75c2df768f6f2984a3ef4b (diff)
test: rename and cleanup some functions571-refactor-missing-serving-tests
Diffstat (limited to 'test/acceptance/auth_test.go')
-rw-r--r--test/acceptance/auth_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/acceptance/auth_test.go b/test/acceptance/auth_test.go
index 152030b0..d18c2d77 100644
--- a/test/acceptance/auth_test.go
+++ b/test/acceptance/auth_test.go
@@ -12,7 +12,7 @@ import (
)
func TestWhenAuthIsDisabledPrivateIsNotAccessible(t *testing.T) {
- RunPagesProcessWithStubGitLabServer(t,
+ RunPagesProcess(t,
withListeners([]ListenSpec{httpListener}),
)
@@ -104,7 +104,7 @@ func TestWhenLoginCallbackWithUnencryptedCode(t *testing.T) {
require.Equal(t, http.StatusInternalServerError, authrsp.StatusCode)
}
-func TestAccessControlUnderCustomDomainStandalone(t *testing.T) {
+func TestAccessControlUnderCustomDomain(t *testing.T) {
runPagesWithAuth(t, []ListenSpec{httpListener})
tests := map[string]struct {
@@ -500,11 +500,11 @@ func testAccessControl(t *testing.T, runPages runPagesFunc) {
}
func TestAccessControlWithSSLCertFile(t *testing.T) {
- testAccessControl(t, RunPagesProcessWithGitlabServerWithSSLCertFile)
+ testAccessControl(t, RunPagesProcessWithSSLCertFile)
}
func TestAccessControlWithSSLCertDir(t *testing.T) {
- testAccessControl(t, RunPagesProcessWithGitlabServerWithSSLCertDir)
+ testAccessControl(t, RunPagesProcessWithSSLCertDir)
}
// This proves the fix for https://gitlab.com/gitlab-org/gitlab-pages/-/issues/262
@@ -598,7 +598,7 @@ func runPagesWithAuthAndEnv(t *testing.T, listeners []ListenSpec, env []string)
"auth-redirect-uri=https://projects.gitlab-example.com/auth",
)
- RunPagesProcessWithStubGitLabServer(t,
+ RunPagesProcess(t,
withListeners(listeners),
withArguments([]string{
"-config=" + configFile,