mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2026-08-04 00:46:52 +00:00
Sync OAS-driven integration test artifacts (mock manifest, test base, conftest, and per-operation integration tests) across 21 packages for CP-2453 full rollout evaluation. Co-authored-by: Cursor <cursoragent@cursor.com>
3981 lines
154 KiB
Python
3981 lines
154 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
Instant Tests API
|
|
|
|
The Instant Tests API operations lets you create and run new instant tests. You will need to be an Account Admin. The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
|
|
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
|
|
Do not edit the class manually.
|
|
""" # noqa: E501
|
|
|
|
|
|
import json
|
|
|
|
from sdk_test_support.mock_server_types import ErrorResponseExpectation, OperationExpectation
|
|
|
|
OPERATION_MANIFEST = {
|
|
|
|
"create_api_instant_test": OperationExpectation(
|
|
operation_id="create_api_instant_test",
|
|
method="POST",
|
|
path="/tests/api/instant",
|
|
path_param_examples={
|
|
},
|
|
success_status=201,
|
|
success_body=json.loads("""
|
|
|
|
{
|
|
"clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n",
|
|
"mtuMeasurements" : false,
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"credentials" : [ "3247", "1051" ],
|
|
"description" : "ThousandEyes Test",
|
|
"probeMode" : "auto",
|
|
"requests" : [ {
|
|
"headers" : [ {
|
|
"value" : "keep-alive",
|
|
"key" : "x-custom-header"
|
|
}, {
|
|
"value" : "keep-alive",
|
|
"key" : "x-custom-header"
|
|
} ],
|
|
"variables" : [ {
|
|
"name" : "myTestName",
|
|
"value" : "tests[0].name"
|
|
}, {
|
|
"name" : "myTestName",
|
|
"value" : "tests[0].name"
|
|
} ],
|
|
"clientId" : "client-id",
|
|
"tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token",
|
|
"method" : "get",
|
|
"verifyCertificate" : false,
|
|
"body" : "body",
|
|
"url" : "https://api.thousandeyes.com/v7/status",
|
|
"password" : "basic_pw123",
|
|
"bearerToken" : "abcd-1234-...",
|
|
"scope" : "read, write, deploy",
|
|
"name" : "Step 1",
|
|
"waitTimeMs" : 0,
|
|
"clientAuthentication" : "basic-auth-header",
|
|
"clientSecret" : "client-secret",
|
|
"assertions" : [ {
|
|
"name" : "status-code",
|
|
"value" : "200",
|
|
"operator" : "is"
|
|
}, {
|
|
"name" : "status-code",
|
|
"value" : "200",
|
|
"operator" : "is"
|
|
} ],
|
|
"authType" : "none",
|
|
"collectApiResponse" : true,
|
|
"username" : "ThousandEyesUserName"
|
|
}, {
|
|
"headers" : [ {
|
|
"value" : "keep-alive",
|
|
"key" : "x-custom-header"
|
|
}, {
|
|
"value" : "keep-alive",
|
|
"key" : "x-custom-header"
|
|
} ],
|
|
"variables" : [ {
|
|
"name" : "myTestName",
|
|
"value" : "tests[0].name"
|
|
}, {
|
|
"name" : "myTestName",
|
|
"value" : "tests[0].name"
|
|
} ],
|
|
"clientId" : "client-id",
|
|
"tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token",
|
|
"method" : "get",
|
|
"verifyCertificate" : false,
|
|
"body" : "body",
|
|
"url" : "https://api.thousandeyes.com/v7/status",
|
|
"password" : "basic_pw123",
|
|
"bearerToken" : "abcd-1234-...",
|
|
"scope" : "read, write, deploy",
|
|
"name" : "Step 1",
|
|
"waitTimeMs" : 0,
|
|
"clientAuthentication" : "basic-auth-header",
|
|
"clientSecret" : "client-secret",
|
|
"assertions" : [ {
|
|
"name" : "status-code",
|
|
"value" : "200",
|
|
"operator" : "is"
|
|
}, {
|
|
"name" : "status-code",
|
|
"value" : "200",
|
|
"operator" : "is"
|
|
} ],
|
|
"authType" : "none",
|
|
"collectApiResponse" : true,
|
|
"username" : "ThousandEyesUserName"
|
|
} ],
|
|
"type" : "api",
|
|
"vaultCredentials" : [ {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
}, {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
} ],
|
|
"protocol" : "tcp",
|
|
"collectProxyNetworkData" : false,
|
|
"followRedirects" : true,
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"clientCertDomainsAllowList" : "www.thousandeyes.com",
|
|
"testName" : "ThousandEyes Test",
|
|
"numPathTraces" : 3,
|
|
"overrideAgentProxy" : false,
|
|
"predefinedVariables" : [ {
|
|
"name" : "myUsername",
|
|
"value" : "ThousandEyesAccountUserName"
|
|
}, {
|
|
"name" : "myUsername",
|
|
"value" : "ThousandEyesAccountUserName"
|
|
} ],
|
|
"liveShare" : false,
|
|
"distributedTracing" : false,
|
|
"savedEvent" : true,
|
|
"networkMeasurements" : true,
|
|
"url" : "www.thousandeyes.com",
|
|
"labels" : [ {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
}, {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
} ],
|
|
"tags" : [ {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
}, {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
} ],
|
|
"agents" : [ {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
}, {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
} ],
|
|
"timeLimit" : 19,
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
}, {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
} ],
|
|
"overrideProxyId" : "281474976710706",
|
|
"sslVersionId" : "0",
|
|
"targetTime" : 1
|
|
}
|
|
|
|
"""),
|
|
|
|
success_content_type="application/json",
|
|
|
|
request_body_example=json.loads("""
|
|
|
|
{
|
|
"clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n",
|
|
"mtuMeasurements" : false,
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"credentials" : [ "3247", "1051" ],
|
|
"description" : "ThousandEyes Test",
|
|
"probeMode" : "auto",
|
|
"requests" : [ {
|
|
"headers" : [ {
|
|
"value" : "keep-alive",
|
|
"key" : "x-custom-header"
|
|
}, {
|
|
"value" : "keep-alive",
|
|
"key" : "x-custom-header"
|
|
} ],
|
|
"variables" : [ {
|
|
"name" : "myTestName",
|
|
"value" : "tests[0].name"
|
|
}, {
|
|
"name" : "myTestName",
|
|
"value" : "tests[0].name"
|
|
} ],
|
|
"clientId" : "client-id",
|
|
"tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token",
|
|
"method" : "get",
|
|
"verifyCertificate" : false,
|
|
"body" : "body",
|
|
"url" : "https://api.thousandeyes.com/v7/status",
|
|
"password" : "basic_pw123",
|
|
"bearerToken" : "abcd-1234-...",
|
|
"scope" : "read, write, deploy",
|
|
"name" : "Step 1",
|
|
"waitTimeMs" : 0,
|
|
"clientAuthentication" : "basic-auth-header",
|
|
"clientSecret" : "client-secret",
|
|
"assertions" : [ {
|
|
"name" : "status-code",
|
|
"value" : "200",
|
|
"operator" : "is"
|
|
}, {
|
|
"name" : "status-code",
|
|
"value" : "200",
|
|
"operator" : "is"
|
|
} ],
|
|
"authType" : "none",
|
|
"collectApiResponse" : true,
|
|
"username" : "ThousandEyesUserName"
|
|
}, {
|
|
"headers" : [ {
|
|
"value" : "keep-alive",
|
|
"key" : "x-custom-header"
|
|
}, {
|
|
"value" : "keep-alive",
|
|
"key" : "x-custom-header"
|
|
} ],
|
|
"variables" : [ {
|
|
"name" : "myTestName",
|
|
"value" : "tests[0].name"
|
|
}, {
|
|
"name" : "myTestName",
|
|
"value" : "tests[0].name"
|
|
} ],
|
|
"clientId" : "client-id",
|
|
"tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token",
|
|
"method" : "get",
|
|
"verifyCertificate" : false,
|
|
"body" : "body",
|
|
"url" : "https://api.thousandeyes.com/v7/status",
|
|
"password" : "basic_pw123",
|
|
"bearerToken" : "abcd-1234-...",
|
|
"scope" : "read, write, deploy",
|
|
"name" : "Step 1",
|
|
"waitTimeMs" : 0,
|
|
"clientAuthentication" : "basic-auth-header",
|
|
"clientSecret" : "client-secret",
|
|
"assertions" : [ {
|
|
"name" : "status-code",
|
|
"value" : "200",
|
|
"operator" : "is"
|
|
}, {
|
|
"name" : "status-code",
|
|
"value" : "200",
|
|
"operator" : "is"
|
|
} ],
|
|
"authType" : "none",
|
|
"collectApiResponse" : true,
|
|
"username" : "ThousandEyesUserName"
|
|
} ],
|
|
"type" : "api",
|
|
"vaultCredentials" : [ {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
}, {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
} ],
|
|
"protocol" : "tcp",
|
|
"collectProxyNetworkData" : false,
|
|
"followRedirects" : true,
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"clientCertDomainsAllowList" : "www.thousandeyes.com",
|
|
"testName" : "ThousandEyes Test",
|
|
"numPathTraces" : 3,
|
|
"overrideAgentProxy" : false,
|
|
"predefinedVariables" : [ {
|
|
"name" : "myUsername",
|
|
"value" : "ThousandEyesAccountUserName"
|
|
}, {
|
|
"name" : "myUsername",
|
|
"value" : "ThousandEyesAccountUserName"
|
|
} ],
|
|
"liveShare" : false,
|
|
"distributedTracing" : false,
|
|
"savedEvent" : true,
|
|
"networkMeasurements" : true,
|
|
"url" : "www.thousandeyes.com",
|
|
"labels" : [ "9842", "1283" ],
|
|
"tags" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "c6b78e57-81a2-4c5f-a11a-d96c3c664d55" ],
|
|
"agents" : [ {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
}, {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
} ],
|
|
"timeLimit" : 19,
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ "1234", "12345" ],
|
|
"overrideProxyId" : "281474976710706",
|
|
"sslVersionId" : "0",
|
|
"targetTime" : 1
|
|
}
|
|
|
|
"""),
|
|
error_responses={
|
|
|
|
"400": ErrorResponseExpectation(
|
|
status=400,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"errors" : [ {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
}, {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
} ],
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"401": ErrorResponseExpectation(
|
|
status=401,
|
|
body=json.loads("""
|
|
{
|
|
"error_description" : "Invalid access token",
|
|
"error" : "invalid_token"
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"403": ErrorResponseExpectation(
|
|
status=403,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"404": ErrorResponseExpectation(
|
|
status=404,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"429": ErrorResponseExpectation(
|
|
status=429,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"500": ErrorResponseExpectation(
|
|
status=500,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"502": ErrorResponseExpectation(
|
|
status=502,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
},
|
|
),
|
|
|
|
"create_agent_to_agent_instant_test": OperationExpectation(
|
|
operation_id="create_agent_to_agent_instant_test",
|
|
method="POST",
|
|
path="/tests/agent-to-agent/instant",
|
|
path_param_examples={
|
|
},
|
|
success_status=201,
|
|
success_body=json.loads("""
|
|
|
|
{
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"description" : "ThousandEyes Test",
|
|
"type" : "agent-to-agent",
|
|
"mss" : 100,
|
|
"dscpId" : "0",
|
|
"protocol" : "tcp",
|
|
"fixedPacketRate" : 50,
|
|
"dscp" : "Best Effort (DSCP 0)",
|
|
"pathTraceMode" : "classic",
|
|
"throughputRate" : 10,
|
|
"modifiedBy" : "user@user.com",
|
|
"testName" : "ThousandEyes Test",
|
|
"direction" : "to-target",
|
|
"throughputMeasurements" : false,
|
|
"numPathTraces" : 3,
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"throughputDuration" : 10000,
|
|
"labels" : [ {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
}, {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
} ],
|
|
"tags" : [ {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
}, {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
} ],
|
|
"agents" : [ {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
}, {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"port" : 49153,
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"targetAgentId" : "2954",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
}, {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
} ]
|
|
}
|
|
|
|
"""),
|
|
|
|
success_content_type="application/json",
|
|
|
|
request_body_example=json.loads("""
|
|
|
|
{
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"description" : "ThousandEyes Test",
|
|
"type" : "agent-to-agent",
|
|
"mss" : 100,
|
|
"dscpId" : "0",
|
|
"protocol" : "tcp",
|
|
"fixedPacketRate" : 50,
|
|
"dscp" : "Best Effort (DSCP 0)",
|
|
"pathTraceMode" : "classic",
|
|
"throughputRate" : 10,
|
|
"modifiedBy" : "user@user.com",
|
|
"testName" : "ThousandEyes Test",
|
|
"direction" : "to-target",
|
|
"throughputMeasurements" : false,
|
|
"numPathTraces" : 3,
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"throughputDuration" : 10000,
|
|
"labels" : [ "9842", "1283" ],
|
|
"tags" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "c6b78e57-81a2-4c5f-a11a-d96c3c664d55" ],
|
|
"agents" : [ {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
}, {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"port" : 49153,
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"targetAgentId" : "2954",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ "1234", "12345" ]
|
|
}
|
|
|
|
"""),
|
|
error_responses={
|
|
|
|
"400": ErrorResponseExpectation(
|
|
status=400,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"errors" : [ {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
}, {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
} ],
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"401": ErrorResponseExpectation(
|
|
status=401,
|
|
body=json.loads("""
|
|
{
|
|
"error_description" : "Invalid access token",
|
|
"error" : "invalid_token"
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"403": ErrorResponseExpectation(
|
|
status=403,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"404": ErrorResponseExpectation(
|
|
status=404,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"429": ErrorResponseExpectation(
|
|
status=429,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"500": ErrorResponseExpectation(
|
|
status=500,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"502": ErrorResponseExpectation(
|
|
status=502,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
},
|
|
),
|
|
|
|
"create_agent_to_server_instant_test": OperationExpectation(
|
|
operation_id="create_agent_to_server_instant_test",
|
|
method="POST",
|
|
path="/tests/agent-to-server/instant",
|
|
path_param_examples={
|
|
},
|
|
success_status=201,
|
|
success_body=json.loads("""
|
|
|
|
{
|
|
"server" : "www.thousandeyes.com:80",
|
|
"mtuMeasurements" : false,
|
|
"ipv6Policy" : "use-agent-policy",
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"bandwidthMeasurements" : true,
|
|
"description" : "ThousandEyes Test",
|
|
"probeMode" : "auto",
|
|
"type" : "agent-to-server",
|
|
"dscpId" : "0",
|
|
"fixedPacketRate" : 25,
|
|
"protocol" : "tcp",
|
|
"dscp" : "Best Effort (DSCP 0)",
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"testName" : "ThousandEyes Test",
|
|
"numPathTraces" : 3,
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"networkMeasurements" : false,
|
|
"labels" : [ {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
}, {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
} ],
|
|
"tags" : [ {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
}, {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
} ],
|
|
"agents" : [ {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
}, {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
}, {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
} ],
|
|
"pingPayloadSize" : 112,
|
|
"continuousMode" : false
|
|
}
|
|
|
|
"""),
|
|
|
|
success_content_type="application/json",
|
|
|
|
request_body_example=json.loads("""
|
|
|
|
{
|
|
"server" : "www.thousandeyes.com:80",
|
|
"mtuMeasurements" : false,
|
|
"ipv6Policy" : "use-agent-policy",
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"bandwidthMeasurements" : true,
|
|
"description" : "ThousandEyes Test",
|
|
"probeMode" : "auto",
|
|
"type" : "agent-to-server",
|
|
"dscpId" : "0",
|
|
"fixedPacketRate" : 25,
|
|
"protocol" : "tcp",
|
|
"dscp" : "Best Effort (DSCP 0)",
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"testName" : "ThousandEyes Test",
|
|
"numPathTraces" : 3,
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"networkMeasurements" : false,
|
|
"labels" : [ "9842", "1283" ],
|
|
"tags" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "c6b78e57-81a2-4c5f-a11a-d96c3c664d55" ],
|
|
"agents" : [ {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
}, {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"testId" : "281474976710706",
|
|
"pingPayloadSize" : 112,
|
|
"sharedWithAccounts" : [ "1234", "12345" ],
|
|
"continuousMode" : false
|
|
}
|
|
|
|
"""),
|
|
error_responses={
|
|
|
|
"400": ErrorResponseExpectation(
|
|
status=400,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"errors" : [ {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
}, {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
} ],
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"401": ErrorResponseExpectation(
|
|
status=401,
|
|
body=json.loads("""
|
|
{
|
|
"error_description" : "Invalid access token",
|
|
"error" : "invalid_token"
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"403": ErrorResponseExpectation(
|
|
status=403,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"404": ErrorResponseExpectation(
|
|
status=404,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"429": ErrorResponseExpectation(
|
|
status=429,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"500": ErrorResponseExpectation(
|
|
status=500,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"502": ErrorResponseExpectation(
|
|
status=502,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
},
|
|
),
|
|
|
|
"create_dns_sec_instant_test": OperationExpectation(
|
|
operation_id="create_dns_sec_instant_test",
|
|
method="POST",
|
|
path="/tests/dnssec/instant",
|
|
path_param_examples={
|
|
},
|
|
success_status=201,
|
|
success_body=json.loads("""
|
|
|
|
{
|
|
"dnsQueryClass" : "in",
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"description" : "ThousandEyes Test",
|
|
"type" : "dnssec",
|
|
"labels" : [ {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
}, {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
} ],
|
|
"tags" : [ {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
}, {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
} ],
|
|
"agents" : [ {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
}, {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"domain" : "www.thousandeyes.com",
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"modifiedBy" : "user@user.com",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
}, {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
} ],
|
|
"testName" : "ThousandEyes Test"
|
|
}
|
|
|
|
"""),
|
|
|
|
success_content_type="application/json",
|
|
|
|
request_body_example=json.loads("""
|
|
|
|
{
|
|
"dnsQueryClass" : "in",
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"description" : "ThousandEyes Test",
|
|
"type" : "dnssec",
|
|
"labels" : [ "9842", "1283" ],
|
|
"tags" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "c6b78e57-81a2-4c5f-a11a-d96c3c664d55" ],
|
|
"agents" : [ {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
}, {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"domain" : "www.thousandeyes.com",
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"modifiedBy" : "user@user.com",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ "1234", "12345" ],
|
|
"testName" : "ThousandEyes Test"
|
|
}
|
|
|
|
"""),
|
|
error_responses={
|
|
|
|
"400": ErrorResponseExpectation(
|
|
status=400,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"errors" : [ {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
}, {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
} ],
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"401": ErrorResponseExpectation(
|
|
status=401,
|
|
body=json.loads("""
|
|
{
|
|
"error_description" : "Invalid access token",
|
|
"error" : "invalid_token"
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"403": ErrorResponseExpectation(
|
|
status=403,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"404": ErrorResponseExpectation(
|
|
status=404,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"429": ErrorResponseExpectation(
|
|
status=429,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"500": ErrorResponseExpectation(
|
|
status=500,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"502": ErrorResponseExpectation(
|
|
status=502,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
},
|
|
),
|
|
|
|
"create_dns_server_instant_test": OperationExpectation(
|
|
operation_id="create_dns_server_instant_test",
|
|
method="POST",
|
|
path="/tests/dns-server/instant",
|
|
path_param_examples={
|
|
},
|
|
success_status=201,
|
|
success_body=json.loads("""
|
|
|
|
{
|
|
"mtuMeasurements" : false,
|
|
"ipv6Policy" : "use-agent-policy",
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"bandwidthMeasurements" : true,
|
|
"description" : "ThousandEyes Test",
|
|
"dnsTransportProtocol" : "udp",
|
|
"probeMode" : "auto",
|
|
"type" : "dns-server",
|
|
"protocol" : "tcp",
|
|
"fixedPacketRate" : 50,
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"dnsServers" : [ {
|
|
"serverName" : "dns-example.net",
|
|
"serverId" : "1447"
|
|
}, {
|
|
"serverName" : "dns-example.net",
|
|
"serverId" : "1447"
|
|
} ],
|
|
"recursiveQueries" : true,
|
|
"testName" : "ThousandEyes Test",
|
|
"numPathTraces" : 3,
|
|
"dnsQueryClass" : "in",
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"networkMeasurements" : true,
|
|
"labels" : [ {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
}, {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
} ],
|
|
"tags" : [ {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
}, {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
} ],
|
|
"agents" : [ {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
}, {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"domain" : "www.thousandeyes.com",
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
}, {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
} ]
|
|
}
|
|
|
|
"""),
|
|
|
|
success_content_type="application/json",
|
|
|
|
request_body_example=json.loads("""
|
|
|
|
{
|
|
"mtuMeasurements" : false,
|
|
"ipv6Policy" : "use-agent-policy",
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"bandwidthMeasurements" : true,
|
|
"description" : "ThousandEyes Test",
|
|
"dnsTransportProtocol" : "udp",
|
|
"probeMode" : "auto",
|
|
"type" : "dns-server",
|
|
"protocol" : "tcp",
|
|
"fixedPacketRate" : 50,
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"dnsServers" : [ "dns-example.net", "8.8.8.8" ],
|
|
"recursiveQueries" : true,
|
|
"testName" : "ThousandEyes Test",
|
|
"numPathTraces" : 3,
|
|
"dnsQueryClass" : "in",
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"networkMeasurements" : true,
|
|
"labels" : [ "9842", "1283" ],
|
|
"tags" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "c6b78e57-81a2-4c5f-a11a-d96c3c664d55" ],
|
|
"agents" : [ {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
}, {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"domain" : "www.thousandeyes.com",
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ "1234", "12345" ]
|
|
}
|
|
|
|
"""),
|
|
error_responses={
|
|
|
|
"400": ErrorResponseExpectation(
|
|
status=400,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"errors" : [ {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
}, {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
} ],
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"401": ErrorResponseExpectation(
|
|
status=401,
|
|
body=json.loads("""
|
|
{
|
|
"error_description" : "Invalid access token",
|
|
"error" : "invalid_token"
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"403": ErrorResponseExpectation(
|
|
status=403,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"404": ErrorResponseExpectation(
|
|
status=404,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"429": ErrorResponseExpectation(
|
|
status=429,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"500": ErrorResponseExpectation(
|
|
status=500,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"502": ErrorResponseExpectation(
|
|
status=502,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
},
|
|
),
|
|
|
|
"create_dns_trace_instant_test": OperationExpectation(
|
|
operation_id="create_dns_trace_instant_test",
|
|
method="POST",
|
|
path="/tests/dns-trace/instant",
|
|
path_param_examples={
|
|
},
|
|
success_status=201,
|
|
success_body=json.loads("""
|
|
|
|
{
|
|
"dnsQueryClass" : "in",
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"description" : "ThousandEyes Test",
|
|
"dnsTransportProtocol" : "udp",
|
|
"type" : "dns-trace",
|
|
"labels" : [ {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
}, {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
} ],
|
|
"tags" : [ {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
}, {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
} ],
|
|
"agents" : [ {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
}, {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"domain" : "www.thousandeyes.com",
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"modifiedBy" : "user@user.com",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
}, {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
} ],
|
|
"testName" : "ThousandEyes Test"
|
|
}
|
|
|
|
"""),
|
|
|
|
success_content_type="application/json",
|
|
|
|
request_body_example=json.loads("""
|
|
|
|
{
|
|
"dnsQueryClass" : "in",
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"description" : "ThousandEyes Test",
|
|
"dnsTransportProtocol" : "udp",
|
|
"type" : "dns-trace",
|
|
"labels" : [ "9842", "1283" ],
|
|
"tags" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "c6b78e57-81a2-4c5f-a11a-d96c3c664d55" ],
|
|
"agents" : [ {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
}, {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"domain" : "www.thousandeyes.com",
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"modifiedBy" : "user@user.com",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ "1234", "12345" ],
|
|
"testName" : "ThousandEyes Test"
|
|
}
|
|
|
|
"""),
|
|
error_responses={
|
|
|
|
"400": ErrorResponseExpectation(
|
|
status=400,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"errors" : [ {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
}, {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
} ],
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"401": ErrorResponseExpectation(
|
|
status=401,
|
|
body=json.loads("""
|
|
{
|
|
"error_description" : "Invalid access token",
|
|
"error" : "invalid_token"
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"403": ErrorResponseExpectation(
|
|
status=403,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"404": ErrorResponseExpectation(
|
|
status=404,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"429": ErrorResponseExpectation(
|
|
status=429,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"500": ErrorResponseExpectation(
|
|
status=500,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"502": ErrorResponseExpectation(
|
|
status=502,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
},
|
|
),
|
|
|
|
"create_ftp_server_instant_test": OperationExpectation(
|
|
operation_id="create_ftp_server_instant_test",
|
|
method="POST",
|
|
path="/tests/ftp-server/instant",
|
|
path_param_examples={
|
|
},
|
|
success_status=201,
|
|
success_body=json.loads("""
|
|
|
|
{
|
|
"mtuMeasurements" : false,
|
|
"ipv6Policy" : "use-agent-policy",
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"downloadLimit" : 1048576,
|
|
"bandwidthMeasurements" : true,
|
|
"description" : "ThousandEyes Test",
|
|
"useExplicitFtps" : false,
|
|
"probeMode" : "auto",
|
|
"type" : "ftp-server",
|
|
"password" : "password",
|
|
"protocol" : "tcp",
|
|
"fixedPacketRate" : 50,
|
|
"ftpTargetTime" : 1400,
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"testName" : "ThousandEyes Test",
|
|
"numPathTraces" : 3,
|
|
"requestType" : "download",
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"networkMeasurements" : true,
|
|
"url" : "www.thousandeyes.com",
|
|
"labels" : [ {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
}, {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
} ],
|
|
"tags" : [ {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
}, {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
} ],
|
|
"agents" : [ {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
}, {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"ftpTimeLimit" : 10,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
}, {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
} ],
|
|
"useActiveFtp" : false,
|
|
"username" : "username"
|
|
}
|
|
|
|
"""),
|
|
|
|
success_content_type="application/json",
|
|
|
|
request_body_example=json.loads("""
|
|
|
|
{
|
|
"mtuMeasurements" : false,
|
|
"ipv6Policy" : "use-agent-policy",
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"downloadLimit" : 1048576,
|
|
"bandwidthMeasurements" : true,
|
|
"description" : "ThousandEyes Test",
|
|
"useExplicitFtps" : false,
|
|
"probeMode" : "auto",
|
|
"type" : "ftp-server",
|
|
"password" : "password",
|
|
"protocol" : "tcp",
|
|
"fixedPacketRate" : 50,
|
|
"ftpTargetTime" : 1400,
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"testName" : "ThousandEyes Test",
|
|
"numPathTraces" : 3,
|
|
"requestType" : "download",
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"networkMeasurements" : true,
|
|
"url" : "www.thousandeyes.com",
|
|
"labels" : [ "9842", "1283" ],
|
|
"tags" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "c6b78e57-81a2-4c5f-a11a-d96c3c664d55" ],
|
|
"agents" : [ {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
}, {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"ftpTimeLimit" : 10,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ "1234", "12345" ],
|
|
"useActiveFtp" : false,
|
|
"username" : "username"
|
|
}
|
|
|
|
"""),
|
|
error_responses={
|
|
|
|
"400": ErrorResponseExpectation(
|
|
status=400,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"errors" : [ {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
}, {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
} ],
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"401": ErrorResponseExpectation(
|
|
status=401,
|
|
body=json.loads("""
|
|
{
|
|
"error_description" : "Invalid access token",
|
|
"error" : "invalid_token"
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"403": ErrorResponseExpectation(
|
|
status=403,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"404": ErrorResponseExpectation(
|
|
status=404,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"429": ErrorResponseExpectation(
|
|
status=429,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"500": ErrorResponseExpectation(
|
|
status=500,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"502": ErrorResponseExpectation(
|
|
status=502,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
},
|
|
),
|
|
|
|
"create_page_load_instant_test": OperationExpectation(
|
|
operation_id="create_page_load_instant_test",
|
|
method="POST",
|
|
path="/tests/page-load/instant",
|
|
path_param_examples={
|
|
},
|
|
success_status=201,
|
|
success_body=json.loads("""
|
|
|
|
{
|
|
"clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n",
|
|
"mtuMeasurements" : false,
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"dnsOverride" : "8.8.8.8",
|
|
"bandwidthMeasurements" : true,
|
|
"probeMode" : "auto",
|
|
"includeHeaders" : true,
|
|
"type" : "page-load",
|
|
"oAuth" : {
|
|
"testUrl" : "https://api.thousandeyes.com/v7/status",
|
|
"requestMethod" : "post",
|
|
"postBody" : "client_id: ************",
|
|
"headers" : "Authorization: Basic ************",
|
|
"authType" : "none",
|
|
"username" : "user123",
|
|
"password" : "*******"
|
|
},
|
|
"password" : "password",
|
|
"protocol" : "tcp",
|
|
"followRedirects" : true,
|
|
"chromePolicies" : "{\\"ProxyMode\\":\\"direct\\"}",
|
|
"contentRegex" : "(regex)+",
|
|
"pageLoadingStrategy" : "normal",
|
|
"testName" : "ThousandEyes Test",
|
|
"allowMicAndCamera" : false,
|
|
"browserLanguage" : "en-US",
|
|
"verifyCertificate" : false,
|
|
"overrideAgentProxy" : false,
|
|
"liveShare" : false,
|
|
"agentInterfaces" : {
|
|
"agentId" : "2954",
|
|
"ipAddress" : "192.1.1.0"
|
|
},
|
|
"labels" : [ {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
}, {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
} ],
|
|
"tags" : [ {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
}, {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
} ],
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"emulatedDeviceId" : "2",
|
|
"sharedWithAccounts" : [ {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
}, {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
} ],
|
|
"overrideProxyId" : "281474976710706",
|
|
"sslVersion" : "Auto",
|
|
"useNtlm" : false,
|
|
"downloadLimit" : 2048,
|
|
"description" : "ThousandEyes Test",
|
|
"httpTimeLimit" : 5,
|
|
"blockDomains" : "domain.com/",
|
|
"vaultCredentials" : [ {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
}, {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
} ],
|
|
"allowGeolocation" : false,
|
|
"allowUnsafeLegacyRenegotiation" : true,
|
|
"fixedPacketRate" : 50,
|
|
"httpVersion" : 2,
|
|
"collectProxyNetworkData" : false,
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"authType" : "none",
|
|
"customHeaders" : {
|
|
"root" : {
|
|
"header1" : "value1"
|
|
},
|
|
"domains" : {
|
|
"domain1.com" : {
|
|
"header2" : "value2"
|
|
}
|
|
},
|
|
"all" : {
|
|
"header3" : "value3"
|
|
}
|
|
},
|
|
"pageLoadTargetTime" : 10,
|
|
"numPathTraces" : 3,
|
|
"distributedTracing" : false,
|
|
"savedEvent" : true,
|
|
"userAgent" : "curl",
|
|
"pageLoadTimeLimit" : 10,
|
|
"identifyAgentTrafficWithUserAgent" : false,
|
|
"networkMeasurements" : true,
|
|
"url" : "www.thousandeyes.com",
|
|
"agents" : [ {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
}, {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"disableScreenshot" : false,
|
|
"createdBy" : "user@user.com",
|
|
"testId" : "281474976710706",
|
|
"chromeOptions" : "--disable-gpu",
|
|
"desiredStatusCode" : "200",
|
|
"httpTargetTime" : 100,
|
|
"sslVersionId" : "0",
|
|
"username" : "username"
|
|
}
|
|
|
|
"""),
|
|
|
|
success_content_type="application/json",
|
|
|
|
request_body_example=json.loads("""
|
|
|
|
{
|
|
"clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n",
|
|
"mtuMeasurements" : false,
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"dnsOverride" : "8.8.8.8",
|
|
"bandwidthMeasurements" : true,
|
|
"probeMode" : "auto",
|
|
"includeHeaders" : true,
|
|
"type" : "page-load",
|
|
"oAuth" : {
|
|
"testUrl" : "https://api.thousandeyes.com/v7/status",
|
|
"requestMethod" : "post",
|
|
"postBody" : "client_id: ************",
|
|
"headers" : "Authorization: Basic ************",
|
|
"authType" : "none",
|
|
"username" : "user123",
|
|
"password" : "*******"
|
|
},
|
|
"password" : "password",
|
|
"protocol" : "tcp",
|
|
"followRedirects" : true,
|
|
"chromePolicies" : "{\\"ProxyMode\\":\\"direct\\"}",
|
|
"contentRegex" : "(regex)+",
|
|
"pageLoadingStrategy" : "normal",
|
|
"testName" : "ThousandEyes Test",
|
|
"allowMicAndCamera" : false,
|
|
"browserLanguage" : "en-US",
|
|
"verifyCertificate" : false,
|
|
"overrideAgentProxy" : false,
|
|
"liveShare" : false,
|
|
"agentInterfaces" : {
|
|
"agentId" : "2954",
|
|
"ipAddress" : "192.1.1.0"
|
|
},
|
|
"labels" : [ "9842", "1283" ],
|
|
"tags" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "c6b78e57-81a2-4c5f-a11a-d96c3c664d55" ],
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"emulatedDeviceId" : "2",
|
|
"sharedWithAccounts" : [ "1234", "12345" ],
|
|
"overrideProxyId" : "281474976710706",
|
|
"sslVersion" : "Auto",
|
|
"useNtlm" : false,
|
|
"downloadLimit" : 2048,
|
|
"description" : "ThousandEyes Test",
|
|
"httpTimeLimit" : 5,
|
|
"blockDomains" : "domain.com/",
|
|
"vaultCredentials" : [ {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
}, {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
} ],
|
|
"allowGeolocation" : false,
|
|
"allowUnsafeLegacyRenegotiation" : true,
|
|
"fixedPacketRate" : 50,
|
|
"httpVersion" : 2,
|
|
"collectProxyNetworkData" : false,
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"authType" : "none",
|
|
"customHeaders" : {
|
|
"root" : {
|
|
"header1" : "value1"
|
|
},
|
|
"domains" : {
|
|
"domain1.com" : {
|
|
"header2" : "value2"
|
|
}
|
|
},
|
|
"all" : {
|
|
"header3" : "value3"
|
|
}
|
|
},
|
|
"pageLoadTargetTime" : 10,
|
|
"numPathTraces" : 3,
|
|
"distributedTracing" : false,
|
|
"savedEvent" : true,
|
|
"userAgent" : "curl",
|
|
"pageLoadTimeLimit" : 10,
|
|
"identifyAgentTrafficWithUserAgent" : false,
|
|
"networkMeasurements" : true,
|
|
"url" : "www.thousandeyes.com",
|
|
"agents" : [ {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
}, {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"disableScreenshot" : false,
|
|
"createdBy" : "user@user.com",
|
|
"testId" : "281474976710706",
|
|
"chromeOptions" : "--disable-gpu",
|
|
"desiredStatusCode" : "200",
|
|
"httpTargetTime" : 100,
|
|
"sslVersionId" : "0",
|
|
"username" : "username"
|
|
}
|
|
|
|
"""),
|
|
error_responses={
|
|
|
|
"400": ErrorResponseExpectation(
|
|
status=400,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"errors" : [ {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
}, {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
} ],
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"401": ErrorResponseExpectation(
|
|
status=401,
|
|
body=json.loads("""
|
|
{
|
|
"error_description" : "Invalid access token",
|
|
"error" : "invalid_token"
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"403": ErrorResponseExpectation(
|
|
status=403,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"404": ErrorResponseExpectation(
|
|
status=404,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"429": ErrorResponseExpectation(
|
|
status=429,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"500": ErrorResponseExpectation(
|
|
status=500,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"502": ErrorResponseExpectation(
|
|
status=502,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
},
|
|
),
|
|
|
|
"create_http_server_instant_test": OperationExpectation(
|
|
operation_id="create_http_server_instant_test",
|
|
method="POST",
|
|
path="/tests/http-server/instant",
|
|
path_param_examples={
|
|
},
|
|
success_status=201,
|
|
success_body=json.loads("""
|
|
|
|
{
|
|
"clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n",
|
|
"mtuMeasurements" : false,
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"dnsOverride" : "8.8.8.8",
|
|
"bandwidthMeasurements" : true,
|
|
"probeMode" : "auto",
|
|
"includeHeaders" : true,
|
|
"type" : "http-server",
|
|
"oAuth" : {
|
|
"testUrl" : "https://api.thousandeyes.com/v7/status",
|
|
"requestMethod" : "post",
|
|
"postBody" : "client_id: ************",
|
|
"headers" : "Authorization: Basic ************",
|
|
"authType" : "none",
|
|
"username" : "user123",
|
|
"password" : "*******"
|
|
},
|
|
"password" : "password",
|
|
"protocol" : "tcp",
|
|
"followRedirects" : true,
|
|
"contentRegex" : "(regex)+",
|
|
"testName" : "ThousandEyes Test",
|
|
"verifyCertificate" : false,
|
|
"overrideAgentProxy" : false,
|
|
"liveShare" : false,
|
|
"agentInterfaces" : {
|
|
"agentId" : "2954",
|
|
"ipAddress" : "192.1.1.0"
|
|
},
|
|
"labels" : [ {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
}, {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
} ],
|
|
"tags" : [ {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
}, {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
} ],
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"sharedWithAccounts" : [ {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
}, {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
} ],
|
|
"overrideProxyId" : "281474976710706",
|
|
"sslVersion" : "Auto",
|
|
"useNtlm" : false,
|
|
"ipv6Policy" : "use-agent-policy",
|
|
"downloadLimit" : 2048,
|
|
"requestMethod" : "get",
|
|
"description" : "ThousandEyes Test",
|
|
"httpTimeLimit" : 5,
|
|
"vaultCredentials" : [ {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
}, {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
} ],
|
|
"allowUnsafeLegacyRenegotiation" : true,
|
|
"fixedPacketRate" : 50,
|
|
"httpVersion" : 2,
|
|
"collectProxyNetworkData" : false,
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"authType" : "none",
|
|
"customHeaders" : {
|
|
"root" : {
|
|
"header1" : "value1"
|
|
},
|
|
"domains" : {
|
|
"domain1.com" : {
|
|
"header2" : "value2"
|
|
}
|
|
},
|
|
"all" : {
|
|
"header3" : "value3"
|
|
}
|
|
},
|
|
"headers" : [ "header1: value1", "header2: value2" ],
|
|
"numPathTraces" : 3,
|
|
"distributedTracing" : false,
|
|
"savedEvent" : true,
|
|
"userAgent" : "curl",
|
|
"networkMeasurements" : true,
|
|
"url" : "www.thousandeyes.com",
|
|
"agents" : [ {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
}, {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"postBody" : "{ \\"example\\" : \\"value\\"}",
|
|
"createdBy" : "user@user.com",
|
|
"testId" : "281474976710706",
|
|
"desiredStatusCode" : "200",
|
|
"httpTargetTime" : 100,
|
|
"sslVersionId" : "0",
|
|
"username" : "username"
|
|
}
|
|
|
|
"""),
|
|
|
|
success_content_type="application/json",
|
|
|
|
request_body_example=json.loads("""
|
|
|
|
{
|
|
"clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n",
|
|
"mtuMeasurements" : false,
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"dnsOverride" : "8.8.8.8",
|
|
"bandwidthMeasurements" : true,
|
|
"probeMode" : "auto",
|
|
"includeHeaders" : true,
|
|
"type" : "http-server",
|
|
"oAuth" : {
|
|
"testUrl" : "https://api.thousandeyes.com/v7/status",
|
|
"requestMethod" : "post",
|
|
"postBody" : "client_id: ************",
|
|
"headers" : "Authorization: Basic ************",
|
|
"authType" : "none",
|
|
"username" : "user123",
|
|
"password" : "*******"
|
|
},
|
|
"password" : "password",
|
|
"protocol" : "tcp",
|
|
"followRedirects" : true,
|
|
"contentRegex" : "(regex)+",
|
|
"testName" : "ThousandEyes Test",
|
|
"verifyCertificate" : false,
|
|
"overrideAgentProxy" : false,
|
|
"liveShare" : false,
|
|
"agentInterfaces" : {
|
|
"agentId" : "2954",
|
|
"ipAddress" : "192.1.1.0"
|
|
},
|
|
"labels" : [ "9842", "1283" ],
|
|
"tags" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "c6b78e57-81a2-4c5f-a11a-d96c3c664d55" ],
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"sharedWithAccounts" : [ "1234", "12345" ],
|
|
"overrideProxyId" : "281474976710706",
|
|
"sslVersion" : "Auto",
|
|
"useNtlm" : false,
|
|
"ipv6Policy" : "use-agent-policy",
|
|
"downloadLimit" : 2048,
|
|
"requestMethod" : "get",
|
|
"description" : "ThousandEyes Test",
|
|
"httpTimeLimit" : 5,
|
|
"vaultCredentials" : [ {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
}, {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
} ],
|
|
"allowUnsafeLegacyRenegotiation" : true,
|
|
"fixedPacketRate" : 50,
|
|
"httpVersion" : 2,
|
|
"collectProxyNetworkData" : false,
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"authType" : "none",
|
|
"customHeaders" : {
|
|
"root" : {
|
|
"header1" : "value1"
|
|
},
|
|
"domains" : {
|
|
"domain1.com" : {
|
|
"header2" : "value2"
|
|
}
|
|
},
|
|
"all" : {
|
|
"header3" : "value3"
|
|
}
|
|
},
|
|
"headers" : [ "header1: value1", "header2: value2" ],
|
|
"numPathTraces" : 3,
|
|
"distributedTracing" : false,
|
|
"savedEvent" : true,
|
|
"userAgent" : "curl",
|
|
"networkMeasurements" : true,
|
|
"url" : "www.thousandeyes.com",
|
|
"agents" : [ {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
}, {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"postBody" : "{ \\"example\\" : \\"value\\"}",
|
|
"createdBy" : "user@user.com",
|
|
"testId" : "281474976710706",
|
|
"desiredStatusCode" : "200",
|
|
"httpTargetTime" : 100,
|
|
"sslVersionId" : "0",
|
|
"username" : "username"
|
|
}
|
|
|
|
"""),
|
|
error_responses={
|
|
|
|
"400": ErrorResponseExpectation(
|
|
status=400,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"errors" : [ {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
}, {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
} ],
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"401": ErrorResponseExpectation(
|
|
status=401,
|
|
body=json.loads("""
|
|
{
|
|
"error_description" : "Invalid access token",
|
|
"error" : "invalid_token"
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"403": ErrorResponseExpectation(
|
|
status=403,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"404": ErrorResponseExpectation(
|
|
status=404,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"429": ErrorResponseExpectation(
|
|
status=429,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"500": ErrorResponseExpectation(
|
|
status=500,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"502": ErrorResponseExpectation(
|
|
status=502,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
},
|
|
),
|
|
|
|
"create_sip_server_instant_test": OperationExpectation(
|
|
operation_id="create_sip_server_instant_test",
|
|
method="POST",
|
|
path="/tests/sip-server/instant",
|
|
path_param_examples={
|
|
},
|
|
success_status=201,
|
|
success_body=json.loads("""
|
|
|
|
{
|
|
"mtuMeasurements" : false,
|
|
"ipv6Policy" : "use-agent-policy",
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"registerEnabled" : false,
|
|
"description" : "ThousandEyes Test",
|
|
"probeMode" : "auto",
|
|
"type" : "sip-server",
|
|
"authUser" : "username",
|
|
"fixedPacketRate" : 50,
|
|
"password" : "password",
|
|
"protocol" : "tcp",
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"testName" : "ThousandEyes Test",
|
|
"sipTargetTime" : 1000,
|
|
"numPathTraces" : 3,
|
|
"optionsRegex" : "[\\"a-z\\"]",
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"sipRegistrar" : "voice.thousandeyes.com",
|
|
"networkMeasurements" : true,
|
|
"labels" : [ {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
}, {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
} ],
|
|
"tags" : [ {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
}, {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
} ],
|
|
"agents" : [ {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
}, {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"port" : 49153,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"sipTimeLimit" : 5,
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
}, {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
} ],
|
|
"user" : "username"
|
|
}
|
|
|
|
"""),
|
|
|
|
success_content_type="application/json",
|
|
|
|
request_body_example=json.loads("""
|
|
|
|
{
|
|
"mtuMeasurements" : false,
|
|
"ipv6Policy" : "use-agent-policy",
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"registerEnabled" : false,
|
|
"description" : "ThousandEyes Test",
|
|
"probeMode" : "auto",
|
|
"type" : "sip-server",
|
|
"fixedPacketRate" : 50,
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"targetSipCredentials" : {
|
|
"password" : "password",
|
|
"protocol" : "tcp",
|
|
"port" : 49153,
|
|
"sipRegistrar" : "voice.thousandeyes.com",
|
|
"authUser" : "username",
|
|
"user" : "username"
|
|
},
|
|
"testName" : "ThousandEyes Test",
|
|
"sipTargetTime" : 1000,
|
|
"numPathTraces" : 3,
|
|
"optionsRegex" : "[\\"a-z\\"]",
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"networkMeasurements" : true,
|
|
"labels" : [ "9842", "1283" ],
|
|
"tags" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "c6b78e57-81a2-4c5f-a11a-d96c3c664d55" ],
|
|
"agents" : [ {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
}, {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
} ],
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"sipTimeLimit" : 5,
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ "1234", "12345" ]
|
|
}
|
|
|
|
"""),
|
|
error_responses={
|
|
|
|
"400": ErrorResponseExpectation(
|
|
status=400,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"errors" : [ {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
}, {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
} ],
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"401": ErrorResponseExpectation(
|
|
status=401,
|
|
body=json.loads("""
|
|
{
|
|
"error_description" : "Invalid access token",
|
|
"error" : "invalid_token"
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"403": ErrorResponseExpectation(
|
|
status=403,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"404": ErrorResponseExpectation(
|
|
status=404,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"429": ErrorResponseExpectation(
|
|
status=429,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"500": ErrorResponseExpectation(
|
|
status=500,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"502": ErrorResponseExpectation(
|
|
status=502,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
},
|
|
),
|
|
|
|
"create_voice_instant_test": OperationExpectation(
|
|
operation_id="create_voice_instant_test",
|
|
method="POST",
|
|
path="/tests/voice/instant",
|
|
path_param_examples={
|
|
},
|
|
success_status=201,
|
|
success_body=json.loads("""
|
|
|
|
{
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"description" : "ThousandEyes Test",
|
|
"type" : "voice",
|
|
"jitterBuffer" : 40,
|
|
"dscpId" : "0",
|
|
"duration" : 5,
|
|
"dscp" : "Best Effort (DSCP 0)",
|
|
"modifiedBy" : "user@user.com",
|
|
"testName" : "ThousandEyes Test",
|
|
"numPathTraces" : 3,
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"labels" : [ {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
}, {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
} ],
|
|
"tags" : [ {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
}, {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
} ],
|
|
"agents" : [ {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
}, {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
} ],
|
|
"codec" : "G.711 @ 64 Kbps",
|
|
"codecId" : "0",
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"port" : 1024,
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"targetAgentId" : "281474976710706",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
}, {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
} ]
|
|
}
|
|
|
|
"""),
|
|
|
|
success_content_type="application/json",
|
|
|
|
request_body_example=json.loads("""
|
|
|
|
{
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"description" : "ThousandEyes Test",
|
|
"type" : "voice",
|
|
"jitterBuffer" : 40,
|
|
"dscpId" : "0",
|
|
"duration" : 5,
|
|
"dscp" : "Best Effort (DSCP 0)",
|
|
"modifiedBy" : "user@user.com",
|
|
"testName" : "ThousandEyes Test",
|
|
"numPathTraces" : 3,
|
|
"liveShare" : false,
|
|
"savedEvent" : true,
|
|
"labels" : [ "9842", "1283" ],
|
|
"tags" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "c6b78e57-81a2-4c5f-a11a-d96c3c664d55" ],
|
|
"agents" : [ {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
}, {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
} ],
|
|
"codec" : "G.711 @ 64 Kbps",
|
|
"codecId" : "0",
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"createdBy" : "user@user.com",
|
|
"port" : 1024,
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"targetAgentId" : "281474976710706",
|
|
"testId" : "281474976710706",
|
|
"sharedWithAccounts" : [ "1234", "12345" ]
|
|
}
|
|
|
|
"""),
|
|
error_responses={
|
|
|
|
"400": ErrorResponseExpectation(
|
|
status=400,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"errors" : [ {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
}, {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
} ],
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"401": ErrorResponseExpectation(
|
|
status=401,
|
|
body=json.loads("""
|
|
{
|
|
"error_description" : "Invalid access token",
|
|
"error" : "invalid_token"
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"403": ErrorResponseExpectation(
|
|
status=403,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"404": ErrorResponseExpectation(
|
|
status=404,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"429": ErrorResponseExpectation(
|
|
status=429,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"500": ErrorResponseExpectation(
|
|
status=500,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"502": ErrorResponseExpectation(
|
|
status=502,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
},
|
|
),
|
|
|
|
"create_web_transaction_instant_test": OperationExpectation(
|
|
operation_id="create_web_transaction_instant_test",
|
|
method="POST",
|
|
path="/tests/web-transactions/instant",
|
|
path_param_examples={
|
|
},
|
|
success_status=201,
|
|
success_body=json.loads("""
|
|
|
|
{
|
|
"clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n",
|
|
"mtuMeasurements" : false,
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"dnsOverride" : "8.8.8.8",
|
|
"bandwidthMeasurements" : true,
|
|
"probeMode" : "auto",
|
|
"includeHeaders" : true,
|
|
"type" : "web-transactions",
|
|
"oAuth" : {
|
|
"testUrl" : "https://api.thousandeyes.com/v7/status",
|
|
"requestMethod" : "post",
|
|
"postBody" : "client_id: ************",
|
|
"headers" : "Authorization: Basic ************",
|
|
"authType" : "none",
|
|
"username" : "user123",
|
|
"password" : "*******"
|
|
},
|
|
"password" : "password",
|
|
"protocol" : "tcp",
|
|
"followRedirects" : true,
|
|
"chromePolicies" : "{\\"ProxyMode\\":\\"direct\\"}",
|
|
"contentRegex" : "(regex)+",
|
|
"pageLoadingStrategy" : "normal",
|
|
"testName" : "ThousandEyes Test",
|
|
"allowMicAndCamera" : false,
|
|
"browserLanguage" : "en-US",
|
|
"verifyCertificate" : false,
|
|
"overrideAgentProxy" : false,
|
|
"liveShare" : false,
|
|
"agentInterfaces" : {
|
|
"agentId" : "2954",
|
|
"ipAddress" : "192.1.1.0"
|
|
},
|
|
"labels" : [ {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
}, {
|
|
"labelId" : "961",
|
|
"name" : "Artem label",
|
|
"isBuiltin" : false
|
|
} ],
|
|
"tags" : [ {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
}, {
|
|
"id" : "5aeab5d5-0d34-4d44-a7ac-fb440185295c",
|
|
"value" : "San Francisco",
|
|
"key" : "Location"
|
|
} ],
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"emulatedDeviceId" : "2",
|
|
"sharedWithAccounts" : [ {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
}, {
|
|
"name" : "Account name",
|
|
"aid" : "1234"
|
|
} ],
|
|
"overrideProxyId" : "281474976710706",
|
|
"sslVersion" : "Auto",
|
|
"useNtlm" : false,
|
|
"credentials" : [ "3247", "1051" ],
|
|
"downloadLimit" : 2048,
|
|
"description" : "ThousandEyes Test",
|
|
"httpTimeLimit" : 5,
|
|
"blockDomains" : "domain.com/",
|
|
"vaultCredentials" : [ {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
}, {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
} ],
|
|
"allowGeolocation" : false,
|
|
"allowUnsafeLegacyRenegotiation" : true,
|
|
"fixedPacketRate" : 50,
|
|
"httpVersion" : 2,
|
|
"collectProxyNetworkData" : false,
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"authType" : "none",
|
|
"customHeaders" : {
|
|
"root" : {
|
|
"header1" : "value1"
|
|
},
|
|
"domains" : {
|
|
"domain1.com" : {
|
|
"header2" : "value2"
|
|
}
|
|
},
|
|
"all" : {
|
|
"header3" : "value3"
|
|
}
|
|
},
|
|
"numPathTraces" : 3,
|
|
"transactionScript" : "if (true) { return true; }",
|
|
"distributedTracing" : false,
|
|
"savedEvent" : true,
|
|
"userAgent" : "curl",
|
|
"identifyAgentTrafficWithUserAgent" : false,
|
|
"networkMeasurements" : true,
|
|
"url" : "www.thousandeyes.com",
|
|
"agents" : [ {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
}, {
|
|
"agentId" : "281474976710706",
|
|
"agentType" : "enterprise-cluster",
|
|
"prefix" : "99.128.0.0/11",
|
|
"coordinates" : {
|
|
"latitude" : 37.77493,
|
|
"longitude" : -122.41942
|
|
},
|
|
"agentName" : "thousandeyes-stg-va-254",
|
|
"networkProviderInfo" : {
|
|
"asn" : 7018,
|
|
"name" : "AT&T Services, Inc.",
|
|
"type" : "isp"
|
|
},
|
|
"countryId" : "US",
|
|
"enabled" : true,
|
|
"network" : "AT&T Services, Inc. (AS 7018)",
|
|
"publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ],
|
|
"ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ],
|
|
"location" : "San Francisco Bay Area",
|
|
"verifySslCertificates" : true
|
|
} ],
|
|
"timeLimit" : 30,
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"disableScreenshot" : false,
|
|
"createdBy" : "user@user.com",
|
|
"testId" : "281474976710706",
|
|
"chromeOptions" : "--disable-gpu",
|
|
"desiredStatusCode" : "200",
|
|
"httpTargetTime" : 100,
|
|
"sslVersionId" : "0",
|
|
"username" : "username",
|
|
"targetTime" : 1
|
|
}
|
|
|
|
"""),
|
|
|
|
success_content_type="application/json",
|
|
|
|
request_body_example=json.loads("""
|
|
|
|
{
|
|
"clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n",
|
|
"mtuMeasurements" : false,
|
|
"_links" : {
|
|
"testResults" : [ {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network"
|
|
}, {
|
|
"href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"
|
|
} ],
|
|
"self" : {
|
|
"hreflang" : "hreflang",
|
|
"templated" : true,
|
|
"profile" : "profile",
|
|
"name" : "name",
|
|
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
|
|
"type" : "type",
|
|
"deprecation" : "deprecation",
|
|
"title" : "title"
|
|
}
|
|
},
|
|
"dnsOverride" : "8.8.8.8",
|
|
"bandwidthMeasurements" : true,
|
|
"probeMode" : "auto",
|
|
"includeHeaders" : true,
|
|
"type" : "web-transactions",
|
|
"oAuth" : {
|
|
"testUrl" : "https://api.thousandeyes.com/v7/status",
|
|
"requestMethod" : "post",
|
|
"postBody" : "client_id: ************",
|
|
"headers" : "Authorization: Basic ************",
|
|
"authType" : "none",
|
|
"username" : "user123",
|
|
"password" : "*******"
|
|
},
|
|
"password" : "password",
|
|
"protocol" : "tcp",
|
|
"followRedirects" : true,
|
|
"chromePolicies" : "{\\"ProxyMode\\":\\"direct\\"}",
|
|
"contentRegex" : "(regex)+",
|
|
"pageLoadingStrategy" : "normal",
|
|
"testName" : "ThousandEyes Test",
|
|
"allowMicAndCamera" : false,
|
|
"browserLanguage" : "en-US",
|
|
"verifyCertificate" : false,
|
|
"overrideAgentProxy" : false,
|
|
"liveShare" : false,
|
|
"agentInterfaces" : {
|
|
"agentId" : "2954",
|
|
"ipAddress" : "192.1.1.0"
|
|
},
|
|
"labels" : [ "9842", "1283" ],
|
|
"tags" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "c6b78e57-81a2-4c5f-a11a-d96c3c664d55" ],
|
|
"randomizedStartTime" : false,
|
|
"modifiedDate" : "2022-07-17T22:00:54Z",
|
|
"emulatedDeviceId" : "2",
|
|
"sharedWithAccounts" : [ "1234", "12345" ],
|
|
"overrideProxyId" : "281474976710706",
|
|
"sslVersion" : "Auto",
|
|
"useNtlm" : false,
|
|
"credentials" : [ "3247", "1051" ],
|
|
"downloadLimit" : 2048,
|
|
"description" : "ThousandEyes Test",
|
|
"httpTimeLimit" : 5,
|
|
"blockDomains" : "domain.com/",
|
|
"vaultCredentials" : [ {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
}, {
|
|
"secretId" : "f27e85b2-318b-4145-b5aa-c9dc8d8b0819",
|
|
"target" : "username"
|
|
} ],
|
|
"allowGeolocation" : false,
|
|
"allowUnsafeLegacyRenegotiation" : true,
|
|
"fixedPacketRate" : 50,
|
|
"httpVersion" : 2,
|
|
"collectProxyNetworkData" : false,
|
|
"pathTraceMode" : "classic",
|
|
"modifiedBy" : "user@user.com",
|
|
"authType" : "none",
|
|
"customHeaders" : {
|
|
"root" : {
|
|
"header1" : "value1"
|
|
},
|
|
"domains" : {
|
|
"domain1.com" : {
|
|
"header2" : "value2"
|
|
}
|
|
},
|
|
"all" : {
|
|
"header3" : "value3"
|
|
}
|
|
},
|
|
"numPathTraces" : 3,
|
|
"transactionScript" : "if (true) { return true; }",
|
|
"distributedTracing" : false,
|
|
"savedEvent" : true,
|
|
"userAgent" : "curl",
|
|
"identifyAgentTrafficWithUserAgent" : false,
|
|
"networkMeasurements" : true,
|
|
"url" : "www.thousandeyes.com",
|
|
"agents" : [ {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
}, {
|
|
"agentId" : "125",
|
|
"sourceIpAddress" : "1.1.1.1"
|
|
} ],
|
|
"timeLimit" : 30,
|
|
"createdDate" : "2022-07-17T22:00:54Z",
|
|
"disableScreenshot" : false,
|
|
"createdBy" : "user@user.com",
|
|
"testId" : "281474976710706",
|
|
"chromeOptions" : "--disable-gpu",
|
|
"desiredStatusCode" : "200",
|
|
"httpTargetTime" : 100,
|
|
"sslVersionId" : "0",
|
|
"username" : "username",
|
|
"targetTime" : 1
|
|
}
|
|
|
|
"""),
|
|
error_responses={
|
|
|
|
"400": ErrorResponseExpectation(
|
|
status=400,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"errors" : [ {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
}, {
|
|
"code" : "code",
|
|
"field" : "field",
|
|
"message" : "message"
|
|
} ],
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"401": ErrorResponseExpectation(
|
|
status=401,
|
|
body=json.loads("""
|
|
{
|
|
"error_description" : "Invalid access token",
|
|
"error" : "invalid_token"
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"403": ErrorResponseExpectation(
|
|
status=403,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"404": ErrorResponseExpectation(
|
|
status=404,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"429": ErrorResponseExpectation(
|
|
status=429,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"500": ErrorResponseExpectation(
|
|
status=500,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
"502": ErrorResponseExpectation(
|
|
status=502,
|
|
body=json.loads("""
|
|
{
|
|
"instance" : "instance",
|
|
"detail" : "detail",
|
|
"type" : "type",
|
|
"title" : "title",
|
|
"status" : 0
|
|
}"""),
|
|
content_type="application/json",
|
|
),
|
|
|
|
},
|
|
),
|
|
|
|
}
|