thousandeyes-sdk-python/thousandeyes-sdk-endpoint-tests/test/test_endpoint_real_user_tests_api.py
Miguel Pragosa 5168916842
Some checks failed
Python CI / build (push) Has been cancelled
[GitHub Bot] Generated python SDK (#163)
Co-authored-by: API Team <api-team@thousandeyes.com>
2026-07-13 10:54:39 +01:00

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()