thousandeyes-sdk-python/thousandeyes-sdk-endpoint-tests/test/mock_manifest.py
2026-07-30 15:38:56 +00:00

2810 lines
96 KiB
Python

# coding: utf-8
"""
Endpoint Tests API
Manage endpoint agent dynamic and scheduled tests using the Endpoint Tests API.
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_agent_to_server_endpoint_dynamic_test": OperationExpectation(
operation_id="create_agent_to_server_endpoint_dynamic_test",
method="POST",
path="/endpoint/tests/dynamic-tests/agent-to-server",
path_param_examples={
},
success_status=201,
success_body=json.loads("""
{
"hasPing" : true,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/dynamic-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/dynamic-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"networkMeasurements" : true,
"tcpProbeMode" : "auto",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"hasTraceroute" : true,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"testName" : "Test name"
}
"""),
success_content_type="application/json",
request_body_example=json.loads("""
{
"agentSelectorType" : "all-agents",
"tagIds" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "5aeab5d5-0d34-4d44-a7ac-fb440185295c" ],
"isPrioritized" : false,
"maxMachines" : 25,
"endpointAgentLabels" : [ "567", "214" ],
"tcpProbeMode" : "auto",
"agents" : [ "0a3b9998-dc3a-4ff2-b50d-ac4a7cd986e1", "66eec0f1-72b4-4755-aa83-3aed61d17f3c" ],
"protocol" : "icmp",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"interval" : 60,
"hasPathTraceInSession" : true,
"testName" : "Test name"
}
"""),
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",
),
},
),
"delete_agent_to_server_endpoint_dynamic_test": OperationExpectation(
operation_id="delete_agent_to_server_endpoint_dynamic_test",
method="DELETE",
path="/endpoint/tests/dynamic-tests/agent-to-server/{testId}",
path_param_examples={
"testId": '584739201',
},
success_status=204,
success_body=None,
success_content_type="application/json",
request_body_example=None,
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",
),
},
),
"get_agent_to_server_endpoint_dynamic_test": OperationExpectation(
operation_id="get_agent_to_server_endpoint_dynamic_test",
method="GET",
path="/endpoint/tests/dynamic-tests/agent-to-server/{testId}",
path_param_examples={
"testId": '584739201',
},
success_status=200,
success_body=json.loads("""
{
"hasPing" : true,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/dynamic-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/dynamic-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"networkMeasurements" : true,
"tcpProbeMode" : "auto",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"hasTraceroute" : true,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"testName" : "Test name"
}
"""),
success_content_type="application/json",
request_body_example=None,
error_responses={
"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",
),
},
),
"get_agent_to_server_endpoint_dynamic_tests": OperationExpectation(
operation_id="get_agent_to_server_endpoint_dynamic_tests",
method="GET",
path="/endpoint/tests/dynamic-tests/agent-to-server",
path_param_examples={
},
success_status=200,
success_body=json.loads("""
{
"tests" : [ {
"hasPing" : true,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/dynamic-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/dynamic-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"networkMeasurements" : true,
"tcpProbeMode" : "auto",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"hasTraceroute" : true,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"testName" : "Test name"
}, {
"hasPing" : true,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/dynamic-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/dynamic-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"networkMeasurements" : true,
"tcpProbeMode" : "auto",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"hasTraceroute" : true,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"testName" : "Test name"
} ],
"_links" : {
"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"
}
}
}
"""),
success_content_type="application/json",
request_body_example=None,
error_responses={
"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",
),
"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",
),
},
),
"update_agent_to_server_endpoint_dynamic_test": OperationExpectation(
operation_id="update_agent_to_server_endpoint_dynamic_test",
method="PATCH",
path="/endpoint/tests/dynamic-tests/agent-to-server/{testId}",
path_param_examples={
"testId": '584739201',
},
success_status=200,
success_body=json.loads("""
{
"hasPing" : true,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/dynamic-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/dynamic-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"networkMeasurements" : true,
"tcpProbeMode" : "auto",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"hasTraceroute" : true,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"testName" : "Test name"
}
"""),
success_content_type="application/json",
request_body_example=json.loads("""
{
"protocol" : "icmp",
"application" : "webex",
"isEnabled" : true,
"interval" : 60,
"tcpProbeMode" : "auto",
"testName" : "Test name"
}
"""),
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_endpoint_scheduled_test": OperationExpectation(
operation_id="create_agent_to_server_endpoint_scheduled_test",
method="POST",
path="/endpoint/tests/scheduled-tests/agent-to-server",
path_param_examples={
},
success_status=201,
success_body=json.loads("""
{
"server" : "www.example.com",
"isSavedEvent" : false,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"networkMeasurements" : true,
"type" : "agent-to-server",
"tcpProbeMode" : "auto",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"testName" : "Test name"
}
"""),
success_content_type="application/json",
request_body_example=json.loads("""
{
"server" : "www.example.com",
"agentSelectorType" : "all-agents",
"tagIds" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "5aeab5d5-0d34-4d44-a7ac-fb440185295c" ],
"maxMachines" : 25,
"serverName" : "www.example.com",
"isPrioritized" : false,
"endpointAgentLabels" : [ "567", "214" ],
"agents" : [ "0a3b9998-dc3a-4ff2-b50d-ac4a7cd986e1", "66eec0f1-72b4-4755-aa83-3aed61d17f3c" ],
"protocol" : "icmp",
"ipVersion" : "V4_ONLY",
"port" : 443,
"interval" : 60,
"testName" : "Test name"
}
"""),
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",
),
},
),
"delete_agent_to_server_endpoint_scheduled_test": OperationExpectation(
operation_id="delete_agent_to_server_endpoint_scheduled_test",
method="DELETE",
path="/endpoint/tests/scheduled-tests/agent-to-server/{testId}",
path_param_examples={
"testId": '584739201',
},
success_status=204,
success_body=None,
success_content_type="application/json",
request_body_example=None,
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",
),
},
),
"get_agent_to_server_endpoint_scheduled_test": OperationExpectation(
operation_id="get_agent_to_server_endpoint_scheduled_test",
method="GET",
path="/endpoint/tests/scheduled-tests/agent-to-server/{testId}",
path_param_examples={
"testId": '584739201',
},
success_status=200,
success_body=json.loads("""
{
"server" : "www.example.com",
"isSavedEvent" : false,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"networkMeasurements" : true,
"type" : "agent-to-server",
"tcpProbeMode" : "auto",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"testName" : "Test name"
}
"""),
success_content_type="application/json",
request_body_example=None,
error_responses={
"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",
),
},
),
"get_agent_to_server_endpoint_scheduled_tests": OperationExpectation(
operation_id="get_agent_to_server_endpoint_scheduled_tests",
method="GET",
path="/endpoint/tests/scheduled-tests/agent-to-server",
path_param_examples={
},
success_status=200,
success_body=json.loads("""
{
"tests" : [ {
"server" : "www.example.com",
"isSavedEvent" : false,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"networkMeasurements" : true,
"type" : "agent-to-server",
"tcpProbeMode" : "auto",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"testName" : "Test name"
}, {
"server" : "www.example.com",
"isSavedEvent" : false,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"networkMeasurements" : true,
"type" : "agent-to-server",
"tcpProbeMode" : "auto",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"testName" : "Test name"
} ],
"_links" : {
"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"
}
}
}
"""),
success_content_type="application/json",
request_body_example=None,
error_responses={
"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",
),
"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",
),
},
),
"update_agent_to_server_endpoint_scheduled_test": OperationExpectation(
operation_id="update_agent_to_server_endpoint_scheduled_test",
method="PATCH",
path="/endpoint/tests/scheduled-tests/agent-to-server/{testId}",
path_param_examples={
"testId": '584739201',
},
success_status=200,
success_body=json.loads("""
{
"server" : "www.example.com",
"isSavedEvent" : false,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"networkMeasurements" : true,
"type" : "agent-to-server",
"tcpProbeMode" : "auto",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"testName" : "Test name"
}
"""),
success_content_type="application/json",
request_body_example=json.loads("""
{
"server" : "www.example.com",
"protocol" : "icmp",
"port" : 49153,
"isEnabled" : true,
"interval" : 60,
"tcpProbeMode" : "auto",
"testName" : "Test name"
}
"""),
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",
),
},
),
"get_endpoint_real_user_tests": OperationExpectation(
operation_id="get_endpoint_real_user_tests",
method="GET",
path="/endpoint/tests/real-user-tests",
path_param_examples={
},
success_status=200,
success_body=json.loads("""
{
"realUserTests" : [ {
"includedDomains" : [ "example.com", "example.com" ],
"profileId" : "73421",
"monitoringSettings" : {
"monitoringSettingsId" : "1f5c1b5d-8a0d-4d6b-a3be-56b060f7f2c9",
"monitoringSettingsType" : "agent-tags",
"tagIds" : [ "49d9e7d2-7df5-43df-9b37-aa596b929062" ],
"labelIds" : [ "567" ]
},
"name" : "Corporate domains",
"excludedDomains" : [ "static.example.com", "static.example.com" ],
"aid" : "1234"
}, {
"includedDomains" : [ "example.com", "example.com" ],
"profileId" : "73421",
"monitoringSettings" : {
"monitoringSettingsId" : "1f5c1b5d-8a0d-4d6b-a3be-56b060f7f2c9",
"monitoringSettingsType" : "agent-tags",
"tagIds" : [ "49d9e7d2-7df5-43df-9b37-aa596b929062" ],
"labelIds" : [ "567" ]
},
"name" : "Corporate domains",
"excludedDomains" : [ "static.example.com", "static.example.com" ],
"aid" : "1234"
} ]
}
"""),
success_content_type="application/json",
request_body_example=None,
error_responses={
"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",
),
"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",
),
},
),
"get_endpoint_scheduled_tests": OperationExpectation(
operation_id="get_endpoint_scheduled_tests",
method="GET",
path="/endpoint/tests/scheduled-tests",
path_param_examples={
},
success_status=200,
success_body=json.loads("""
{
"tests" : [ {
"server" : "www.example.com",
"isSavedEvent" : false,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"networkMeasurements" : true,
"type" : "agent-to-server",
"tcpProbeMode" : "auto",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"testName" : "Test name"
}, {
"server" : "www.example.com",
"isSavedEvent" : false,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"networkMeasurements" : true,
"type" : "agent-to-server",
"tcpProbeMode" : "auto",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"testName" : "Test name"
} ],
"_links" : {
"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"
}
}
}
"""),
success_content_type="application/json",
request_body_example=None,
error_responses={
"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",
),
"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_endpoint_scheduled_test": OperationExpectation(
operation_id="create_http_server_endpoint_scheduled_test",
method="POST",
path="/endpoint/tests/scheduled-tests/http-server",
path_param_examples={
},
success_status=201,
success_body=json.loads("""
{
"server" : "www.example.com",
"isSavedEvent" : false,
"sslVersion" : "Auto",
"useNtlm" : false,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"httpTimeLimit" : 5000,
"type" : "http-server",
"protocol" : "icmp",
"httpVersion" : 2,
"followRedirects" : true,
"authType" : "none",
"testName" : "Test name",
"verifyCertificate" : true,
"networkMeasurements" : true,
"tcpProbeMode" : "auto",
"url" : "https://example.com:443",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"httpTargetTime" : 100,
"username" : "username",
"sslVersionId" : "0"
}
"""),
success_content_type="application/json",
request_body_example=json.loads("""
{
"verifyCertificate" : true,
"hasPing" : true,
"agentSelectorType" : "all-agents",
"tagIds" : [ "c6b78e57-81a2-4c5f-a11a-d96c3c664d55", "5aeab5d5-0d34-4d44-a7ac-fb440185295c" ],
"maxMachines" : 25,
"isPrioritized" : false,
"httpTimeLimit" : 5000,
"networkMeasurements" : true,
"endpointAgentLabels" : [ "567", "214" ],
"tcpProbeMode" : "auto",
"url" : "https://example.com:443",
"agents" : [ "0a3b9998-dc3a-4ff2-b50d-ac4a7cd986e1", "66eec0f1-72b4-4755-aa83-3aed61d17f3c" ],
"protocol" : "icmp",
"password" : "password",
"ipVersion" : "V4_ONLY",
"hasTraceroute" : true,
"targetResponseTime" : 1000,
"interval" : 60,
"authType" : "none",
"hasPathTraceInSession" : true,
"testName" : "Test name",
"username" : "username",
"sslVersionId" : "0"
}
"""),
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",
),
},
),
"delete_http_server_endpoint_scheduled_test": OperationExpectation(
operation_id="delete_http_server_endpoint_scheduled_test",
method="DELETE",
path="/endpoint/tests/scheduled-tests/http-server/{testId}",
path_param_examples={
"testId": '584739201',
},
success_status=204,
success_body=None,
success_content_type="application/json",
request_body_example=None,
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",
),
},
),
"get_http_server_endpoint_scheduled_test": OperationExpectation(
operation_id="get_http_server_endpoint_scheduled_test",
method="GET",
path="/endpoint/tests/scheduled-tests/http-server/{testId}",
path_param_examples={
"testId": '584739201',
},
success_status=200,
success_body=json.loads("""
{
"server" : "www.example.com",
"isSavedEvent" : false,
"sslVersion" : "Auto",
"useNtlm" : false,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"httpTimeLimit" : 5000,
"type" : "http-server",
"protocol" : "icmp",
"httpVersion" : 2,
"followRedirects" : true,
"authType" : "none",
"testName" : "Test name",
"verifyCertificate" : true,
"networkMeasurements" : true,
"tcpProbeMode" : "auto",
"url" : "https://example.com:443",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"httpTargetTime" : 100,
"username" : "username",
"sslVersionId" : "0"
}
"""),
success_content_type="application/json",
request_body_example=None,
error_responses={
"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",
),
},
),
"get_http_server_endpoint_scheduled_tests": OperationExpectation(
operation_id="get_http_server_endpoint_scheduled_tests",
method="GET",
path="/endpoint/tests/scheduled-tests/http-server",
path_param_examples={
},
success_status=200,
success_body=json.loads("""
{
"tests" : [ {
"server" : "www.example.com",
"isSavedEvent" : false,
"sslVersion" : "Auto",
"useNtlm" : false,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"httpTimeLimit" : 5000,
"type" : "http-server",
"protocol" : "icmp",
"httpVersion" : 2,
"followRedirects" : true,
"authType" : "none",
"testName" : "Test name",
"verifyCertificate" : true,
"networkMeasurements" : true,
"tcpProbeMode" : "auto",
"url" : "https://example.com:443",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"httpTargetTime" : 100,
"username" : "username",
"sslVersionId" : "0"
}, {
"server" : "www.example.com",
"isSavedEvent" : false,
"sslVersion" : "Auto",
"useNtlm" : false,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"httpTimeLimit" : 5000,
"type" : "http-server",
"protocol" : "icmp",
"httpVersion" : 2,
"followRedirects" : true,
"authType" : "none",
"testName" : "Test name",
"verifyCertificate" : true,
"networkMeasurements" : true,
"tcpProbeMode" : "auto",
"url" : "https://example.com:443",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"httpTargetTime" : 100,
"username" : "username",
"sslVersionId" : "0"
} ],
"_links" : {
"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"
}
}
}
"""),
success_content_type="application/json",
request_body_example=None,
error_responses={
"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",
),
"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",
),
},
),
"update_http_server_endpoint_scheduled_test": OperationExpectation(
operation_id="update_http_server_endpoint_scheduled_test",
method="PATCH",
path="/endpoint/tests/scheduled-tests/http-server/{testId}",
path_param_examples={
"testId": '584739201',
},
success_status=200,
success_body=json.loads("""
{
"server" : "www.example.com",
"isSavedEvent" : false,
"sslVersion" : "Auto",
"useNtlm" : false,
"_links" : {
"testResults" : [ {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/network/filter"
}, {
"href" : "https://api.thousandeyes.com/v7/endpoint/test-results/scheduled-tests/281474976710706/pathvis"
} ],
"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"
}
},
"isPrioritized" : false,
"httpTimeLimit" : 5000,
"type" : "http-server",
"protocol" : "icmp",
"httpVersion" : 2,
"followRedirects" : true,
"authType" : "none",
"testName" : "Test name",
"verifyCertificate" : true,
"networkMeasurements" : true,
"tcpProbeMode" : "auto",
"url" : "https://example.com:443",
"labels" : [ {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
}, {
"labelId" : "961",
"name" : "Artem label",
"isBuiltin" : false
} ],
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
"interval" : 60,
"testId" : "281474976710706",
"aid" : "1234",
"agentSelectorConfig" : {
"agentSelectorType" : "all-agents",
"maxMachines" : 25
},
"hasPathTraceInSession" : true,
"httpTargetTime" : 100,
"username" : "username",
"sslVersionId" : "0"
}
"""),
success_content_type="application/json",
request_body_example=json.loads("""
{
"protocol" : "icmp",
"isEnabled" : true,
"interval" : 60,
"tcpProbeMode" : "auto",
"url" : "https://example.com:443",
"testName" : "Test name"
}
"""),
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",
),
},
),
}