Skip to main content
PUT
/
transforms
/
{transforms_id}
/
run-unit-tests
/
{version_id}
Run Unit Tests
curl --request PUT \
  --url https://api.streamkap.com/transforms/{transforms_id}/run-unit-tests/{version_id} \
  --header 'Authorization: Bearer <token>'
{
  "language": "PYTHON",
  "value_transform": "<string>",
  "key_transform": "<string>",
  "topic_transform": "<string>",
  "common_transform": "<string>",
  "value_schema_transform": "<string>",
  "key_schema_transform": "<string>",
  "unit_test": {
    "test_name": "<string>",
    "input__json": [
      {
        "topic": "<string>",
        "value": {},
        "key": {},
        "timestamp": "2023-11-07T05:31:56Z"
      }
    ],
    "output__json": [
      {
        "topic": "<string>",
        "value": {},
        "key": {},
        "timestamp": "2023-11-07T05:31:56Z"
      }
    ],
    "result__json": [
      {
        "topic": "<string>",
        "value": {},
        "key": {},
        "timestamp": "2023-11-07T05:31:56Z"
      }
    ],
    "is_success": true,
    "html_diff": "<string>",
    "text_diff": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

transforms_id
string
required
version_id
string
required

Response

Successful Response

language
enum<string>
required
Available options:
PYTHON,
JAVASCRIPT,
SQL
value_transform
string
required
key_transform
string | null
topic_transform
string | null
common_transform
string | null
value_schema_transform
string | null
key_schema_transform
string | null
unit_test
TransformsUnitTest · object