mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2026-08-04 00:46:52 +00:00
Some checks failed
Python CI / build (push) Has been cancelled
Co-authored-by: API Team <api-team@thousandeyes.com>
70 lines
2.6 KiB
Python
70 lines
2.6 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
|
|
import unittest
|
|
import thousandeyes_sdk.endpoint_tests.models
|
|
|
|
from .test_utils import assert_constructed_model_matches_example_json
|
|
from thousandeyes_sdk.endpoint_tests.api.endpoint_real_user_tests_api import EndpointRealUserTestsApi
|
|
|
|
|
|
class TestEndpointRealUserTestsApi(unittest.TestCase):
|
|
"""EndpointRealUserTestsApi unit test stubs"""
|
|
|
|
def setUp(self) -> None:
|
|
self.api = EndpointRealUserTestsApi()
|
|
|
|
def tearDown(self) -> None:
|
|
pass
|
|
|
|
def test_get_endpoint_real_user_tests_models_validation(self) -> None:
|
|
"""Test case for get_endpoint_real_user_tests request and response models"""
|
|
|
|
response_body_json = """
|
|
{
|
|
"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"
|
|
} ]
|
|
}"""
|
|
|
|
response_loaded_json = json.loads(response_body_json)
|
|
response_from_json = thousandeyes_sdk.endpoint_tests.models.EndpointRealUserTestsResponse.from_json(response_body_json)
|
|
assert_constructed_model_matches_example_json(response_from_json, response_loaded_json)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|