Skip to main content
New to Testkube? Unleash the power of cloud native testing in Kubernetes with Testkube. Get Started >

Testkube Control Plane ../repositories operations

Testkube Pro API (cloud-api/1.10.38)

Download OpenAPI specification:Download

API for Testkube Pro

Validate new repository

Validate new repository based on variables passed in request

path Parameters
id
required
string

organizationId

environmentId
required
string

environmentID

Request Body schema: application/json
required

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

Content type
application/json
{
  • "type": "git",
  • "branch": "main",
  • "commit": "b928cbb7186944ab9275937ec1ac3d3738ca2e1d",
  • "path": "test/perf",
  • "username": "string",
  • "token": "string",
  • "usernameSecret": {
    },
  • "tokenSecret": {
    },
  • "certificateSecret": "string",
  • "workingDir": "/",
  • "authType": "basic"
}

Response samples

Content type
application/problem+json
[]