Get All Git Connection Tests

Version 4.0.24.14

Get All Git Connection Tests

dev mode required.

  • Call update_session to select the 'dev' workspace.

Returns a list of tests which can be run against a project's (or the dependency project for the provided remote_url) git connection. Call Run Git Connection Test to execute each test in sequence.

Tests are ordered by increasing specificity. Tests should be run in the order returned because later tests require functionality tested by tests earlier in the test list.

For example, a late-stage test for write access is meaningless if connecting to the git server (an early test) is failing.

Request

GET /projects/{project_id}/git_connection_tests
Datatype
Description
Request
HTTP Request
path
HTTP Path
Expand HTTP Path definition...
project_id
string
Project Id
query
HTTP Query
Expand HTTP Query definition...
remote_url
string
(Optional: leave blank for root project) The remote url for remote dependency to test.

Response

200: Git Connection Test

Datatype
Description
(array)
can
object
Operations the current user is able to perform on this object
description
string
Human readable string describing the test
id
string
A short string, uniquely naming this test

400: Bad Request

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

404: Not Found

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

429: Too Many Requests

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link