Testkube Agent /repositories operations
Testkube API (1.0.0)
Download OpenAPI specification:Download
Testkube provides a Kubernetes-native framework for test definition, execution and results
Validate new repository
Validate new repository based on variables passed in request
Request Body schema: application/jsonrequired
repository request body data
| type required  | string  Value: "git"   VCS repository type  | 
| uri required  | string  uri of content file or git directory  | 
| branch | string  branch/tag name for checkout  | 
| commit | string  commit id (sha) for checkout  | 
| path | string  if needed we can checkout particular path (dir or file) in case of BIG/mono repositories  | 
| username | string  git auth username for private repositories  | 
| token | string  git auth token for private repositories  | 
object (SecretRef)   Testkube internal reference for secret storage in Kubernetes secrets  | |
object (SecretRef)   Testkube internal reference for secret storage in Kubernetes secrets  | |
| certificateSecret | string  secret with certificate for private repositories. Should contain one key ending with .crt such as "mycorp.crt", whose value is the certificate file content, suitable for git config http.sslCAInfo  | 
| workingDir | string  if provided we checkout the whole repository and run test from this directory  | 
| authType | string  Enum: "basic" "header"   auth type for git requests  | 
Responses
Request samples
- Payload
 
{- "type": "git",
 - "branch": "main",
 - "commit": "b928cbb7186944ab9275937ec1ac3d3738ca2e1d",
 - "path": "test/perf",
 - "username": "string",
 - "token": "string",
 - "usernameSecret": {
- "namespace": "string",
 - "name": "string",
 - "key": "string"
 
}, - "tokenSecret": {
- "namespace": "string",
 - "name": "string",
 - "key": "string"
 
}, - "certificateSecret": "string",
 - "workingDir": "/",
 - "authType": "basic"
 
}Response samples
- 400
 - 500
 - 502
 
[- {
- "title": "Invalid test name",
 - "status": 500,
 - "detail": "Your test name can't contain forbidden characters like \"}}}\" passed",
 
} 
]