From 2cc92f02b8690368b004938e92f7cf4133745eb0 Mon Sep 17 00:00:00 2001 From: Patrick Cyiza Date: Mon, 13 Mar 2023 15:27:04 +0100 Subject: Configure Gitaly storage acceptance tests --- cmd/gitlab-sshd/acceptance_test.go | 1 + .../testdata/testroot/responses/allowed_without_console_messages.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/gitlab-sshd/acceptance_test.go b/cmd/gitlab-sshd/acceptance_test.go index af263c8..d890669 100644 --- a/cmd/gitlab-sshd/acceptance_test.go +++ b/cmd/gitlab-sshd/acceptance_test.go @@ -118,6 +118,7 @@ func successAPI(t *testing.T) http.Handler { if gitalyConnInfo != nil { response = strings.Replace(response, "GITALY_ADDRESS", gitalyConnInfo.Address, 1) + response = strings.Replace(response, "GITALY_STORAGE", gitalyConnInfo.Storage, 1) } fmt.Fprint(w, response) diff --git a/internal/testhelper/testdata/testroot/responses/allowed_without_console_messages.json b/internal/testhelper/testdata/testroot/responses/allowed_without_console_messages.json index 6a865db..1464734 100644 --- a/internal/testhelper/testdata/testroot/responses/allowed_without_console_messages.json +++ b/internal/testhelper/testdata/testroot/responses/allowed_without_console_messages.json @@ -7,7 +7,7 @@ "git_config_options": [], "gitaly": { "repository": { - "storage_name": "default", + "storage_name": "GITALY_STORAGE", "relative_path": "GITALY_REPOSITORY", "git_object_directory": "objects/", "git_alternate_object_directories": ["objects/"], -- cgit v1.2.1