summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Bajao <ebajao@gitlab.com>2022-11-23 15:03:28 +0800
committerPatrick Bajao <ebajao@gitlab.com>2022-11-23 15:03:30 +0800
commitf2b068a82ed355028085bcbf87c12de9dc3f0550 (patch)
tree5c53c5787c62c41804ddf5981cadc6967c8aacfd
parent264d63e81cbf08e3ae75e84433b8d09af15f351f (diff)
downloadgitlab-shell-f2b068a82ed355028085bcbf87c12de9dc3f0550.tar.gz
Fix broken Gitaly integration tests
Gitaly started to require `Repository` information for certain commands like upload-pack, upload-archive, and receive-pack. However, gitlab-shell tests are sending `git_object_directory` and `git_alternate_object_directories` that do not exist. To fix the tests, we set those to an existing directory in the created repository.
-rw-r--r--internal/testhelper/testdata/testroot/responses/allowed_without_console_messages.json4
1 files changed, 2 insertions, 2 deletions
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 d5511cd..6a865db 100644
--- a/internal/testhelper/testdata/testroot/responses/allowed_without_console_messages.json
+++ b/internal/testhelper/testdata/testroot/responses/allowed_without_console_messages.json
@@ -9,8 +9,8 @@
"repository": {
"storage_name": "default",
"relative_path": "GITALY_REPOSITORY",
- "git_object_directory": "path/to/git_object_directory",
- "git_alternate_object_directories": ["path/to/git_alternate_object_directory"],
+ "git_object_directory": "objects/",
+ "git_alternate_object_directories": ["objects/"],
"gl_repository": "project-26",
"gl_project_path": "group/private"
},