Tests

Create or update a Test

Changed on

Creates or updates a test with the provided parameters.

put/orgs/{orgName}/tests/{testName}

Request

  • Base URL
    https://api.signadot.com/api/v2
  • Auth
    API key in header signadot-api-key

Path parameters

orgNamestring required

Signadot Org Name

testNamestring required

Test Name

Request body

defaultTimeoutstring

DefaultTimeout represents an optional default timeout for the test executions associated with this test, which can override this value. If not supplied, it defaults to "5m". It should be a string representing an unsigned integer in decimal not exceeding 32 bits followed by a units character, which can be one of the following.

  • 'm' for minutes
  • 'h' for hours
  • 'd' for days
  • 'w' for weeks
scriptstring

Example request

{
  "triggers": [
    {
      "sandboxOf": {
        "kind": "Deployment",
        "name": "my-frontend",
        "namespace": "default"
      }
    }
  ]
}

Response

OK

createdAtstring
namestring
statusTestStatus
updatedAtstring

Example response

{
  "spec": {
    "triggers": [
      {
        "sandboxOf": {
          "kind": "Deployment",
          "name": "my-frontend",
          "namespace": "default"
        }
      }
    ]
  }
}

Changes