diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2022-07-04 10:29:42 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2022-07-04 10:29:42 +0300 |
commit | ece2a232bafa09a1f037de514899003cc5b364d2 (patch) | |
tree | ffaf26af1b1e50c6bb0ecc62b74f389a04271a81 /test/acceptance/stub_test.go | |
parent | 62a0ed16b565fbae849ede567eda9d06d22470ea (diff) | |
parent | 29fb0c4e98a4a775d9af8e917730e065f7971376 (diff) |
Merge branch 'feat/gitlabstub-tls' into 'master'
feat: add tls support to gitlab stub server
See merge request gitlab-org/gitlab-pages!809
Diffstat (limited to 'test/acceptance/stub_test.go')
-rw-r--r-- | test/acceptance/stub_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/acceptance/stub_test.go b/test/acceptance/stub_test.go index 3d54b4d4..e65a86cc 100644 --- a/test/acceptance/stub_test.go +++ b/test/acceptance/stub_test.go @@ -27,6 +27,7 @@ type processConfig struct { envs []string extraArgs []string gitlabStubOpts []gitlabstub.Option + publicServer bool } type processOption func(*processConfig) @@ -52,12 +53,17 @@ func withExtraArgument(key, value string) processOption { config.extraArgs = append(config.extraArgs, fmt.Sprintf("-%s=%s", key, value)) } } + func withArguments(args []string) processOption { return func(config *processConfig) { config.extraArgs = append(config.extraArgs, args...) } } +func withPublicServer(config *processConfig) { + config.publicServer = true +} + func withStubOptions(opts ...gitlabstub.Option) processOption { return func(config *processConfig) { config.gitlabStubOpts = opts |