summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorIgor Drozdov <idrozdov@gitlab.com>2023-02-13 16:28:07 +0100
committerIgor Drozdov <idrozdov@gitlab.com>2023-03-17 21:35:15 +0100
commit3bc0463c5b5db26d2ed61e5b1e884c75ef02a91c (patch)
tree5d963bf8d11255d2584b36afd90fe19d7282e88b /internal
parentda4a4d774fd8d5396dd53ed077789c380a44476f (diff)
downloadgitlab-shell-3bc0463c5b5db26d2ed61e5b1e884c75ef02a91c.tar.gz
Acceptance test for Geo push
It imitates a push to the secondary and verifies that the push is redirected to the primary
Diffstat (limited to 'internal')
-rw-r--r--internal/testhelper/testdata/testroot/responses/allowed_with_geo_push_payload.json29
1 files changed, 29 insertions, 0 deletions
diff --git a/internal/testhelper/testdata/testroot/responses/allowed_with_geo_push_payload.json b/internal/testhelper/testdata/testroot/responses/allowed_with_geo_push_payload.json
new file mode 100644
index 0000000..06d7c3e
--- /dev/null
+++ b/internal/testhelper/testdata/testroot/responses/allowed_with_geo_push_payload.json
@@ -0,0 +1,29 @@
+{
+ "status": true,
+ "gl_repository": "project-26",
+ "gl_project_path": "group/private",
+ "gl_id": "user-1",
+ "gl_username": "root",
+ "git_config_options": [],
+ "gitaly": {
+ "repository": {
+ "storage_name": "default",
+ "relative_path": "GITALY_REPOSITORY",
+ "git_object_directory": "objects/",
+ "git_alternate_object_directories": ["objects/"],
+ "gl_repository": "project-26",
+ "gl_project_path": "group/private"
+ },
+ "address": "GITALY_ADDRESS",
+ "token": "token"
+ },
+ "payload" : {
+ "data": {
+ "geo_proxy_direct_to_primary": true,
+ "request_headers": { "Authorization": "Bearer token" },
+ "primary_repo": "PRIMARY_REPO"
+ }
+ },
+ "git_protocol": "protocol",
+ "gl_console_messages": ["console", "message"]
+}