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:
authorKrasimir Angelov <kangelov@gitlab.com>2019-12-05 11:44:17 +0300
committerKrasimir Angelov <kangelov@gitlab.com>2019-12-05 11:44:17 +0300
commite97fad680a73720b4b539f54f0ac9bcd46ee92f9 (patch)
tree201489a46f33ee4ca4236dcd605e5bcba3341d4e /acceptance_test.go
parent7f35a7b7c1dde36f695fd7f1627fa77d9d8d2be0 (diff)
Base64 decode GitLab API secret
before using it.
Diffstat (limited to 'acceptance_test.go')
-rw-r--r--acceptance_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/acceptance_test.go b/acceptance_test.go
index dfa334b9..3dbb6950 100644
--- a/acceptance_test.go
+++ b/acceptance_test.go
@@ -1536,7 +1536,8 @@ func TestGitlabDomainsSource(t *testing.T) {
defer source.Close()
newSourceDomains := "GITLAB_NEW_SOURCE_DOMAINS=new-source-test.gitlab.io,other-test.gitlab.io"
- pagesArgs := []string{"-gitlab-server", source.URL, "-api-secret-key", "README.md"}
+ gitLabAPISecretKey := CreateGitLabAPISecretKeyFixtureFile(t)
+ pagesArgs := []string{"-gitlab-server", source.URL, "-api-secret-key", gitLabAPISecretKey}
teardown := RunPagesProcessWithEnvs(t, true, *pagesBinary, listeners, "", []string{newSourceDomains}, pagesArgs...)
defer teardown()