diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2020-04-17 16:23:12 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2020-04-17 16:23:33 +1000 |
commit | 4f4acf4a1e523678355b06234016fa632bae282e (patch) | |
tree | 17f7c90485d0a339e5ecb14fb6131a4c2636903d /internal/testhelper | |
parent | 118143ba6c49573d1437f99cf2b44168bd09b8d1 (diff) | |
download | gitlab-shell-4f4acf4a1e523678355b06234016fa632bae282e.tar.gz |
Geo Pull custom action support
Diffstat (limited to 'internal/testhelper')
-rw-r--r-- | internal/testhelper/testdata/testroot/responses/allowed_with_pull_payload.json | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/internal/testhelper/testdata/testroot/responses/allowed_with_pull_payload.json b/internal/testhelper/testdata/testroot/responses/allowed_with_pull_payload.json new file mode 100644 index 0000000..c97c18d --- /dev/null +++ b/internal/testhelper/testdata/testroot/responses/allowed_with_pull_payload.json @@ -0,0 +1,40 @@ +{ + "status": true, + "gl_repository": "project-26", + "gl_project_path": "group/private", + "gl_id": "user-1", + "gl_username": "root", + "git_config_options": [ + "option" + ], + "gitaly": { + "repository": { + "storage_name": "default", + "relative_path": "@hashed/5f/9c/5f9c4ab08cac7457e9111a30e4664920607ea2c115a1433d7be98e97e64244ca.git", + "git_object_directory": "path/to/git_object_directory", + "git_alternate_object_directories": [ + "path/to/git_alternate_object_directory" + ], + "gl_repository": "project-26", + "gl_project_path": "group/private" + }, + "address": "unix:gitaly.socket", + "token": "token" + }, + "payload": { + "action": "geo_proxy_to_primary", + "data": { + "api_endpoints": [ + "geo/proxy_git_ssh/info_refs_upload_pack", + "geo/proxy_git_ssh/upload_pack" + ], + "gl_username": "custom", + "primary_repo": "https://repo/path" + } + }, + "git_protocol": "protocol", + "gl_console_messages": [ + "console", + "message" + ] +} |