# coding: utf-8 """ Endpoint Agents API **Note:** The Endpoint Agents Transfer APIs are not available for ThousandEyes for Government instance. Manage ThousandEyes Endpoint Agents using this API. For more information about Endpoint Agents, see [Endpoint Agents](https://docs.thousandeyes.com/product-documentation/global-vantage-points/endpoint-agents). Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 import json import unittest import thousandeyes_sdk.endpoint_agents.models from .test_utils import assert_constructed_model_matches_example_json from thousandeyes_sdk.endpoint_agents.api.endpoint_proxies_api import EndpointProxiesApi class TestEndpointProxiesApi(unittest.TestCase): """EndpointProxiesApi unit test stubs""" def setUp(self) -> None: self.api = EndpointProxiesApi() def tearDown(self) -> None: pass def test_get_endpoint_proxies_models_validation(self) -> None: """Test case for get_endpoint_proxies request and response models""" response_body_json = """ { "proxies" : [ { "testIds" : [ "9923667", "9923667" ], "agentIds" : [ "861b7557-cd57-4bbb-b648-00bddf88ef49", "861b7557-cd57-4bbb-b648-00bddf88ef49" ], "pac" : "https://example.com/proxy.pac", "port" : 8080, "name" : "Local Mitmproxy", "host" : "localhost", "type" : "static", "userName" : "endpoint-proxy-user", "authType" : "none", "bypassList" : "localhost,127.0.0.1", "proxyId" : "101498" }, { "testIds" : [ "9923667", "9923667" ], "agentIds" : [ "861b7557-cd57-4bbb-b648-00bddf88ef49", "861b7557-cd57-4bbb-b648-00bddf88ef49" ], "pac" : "https://example.com/proxy.pac", "port" : 8080, "name" : "Local Mitmproxy", "host" : "localhost", "type" : "static", "userName" : "endpoint-proxy-user", "authType" : "none", "bypassList" : "localhost,127.0.0.1", "proxyId" : "101498" } ] }""" response_loaded_json = json.loads(response_body_json) response_from_json = thousandeyes_sdk.endpoint_agents.models.EndpointProxiesResponse.from_json(response_body_json) assert_constructed_model_matches_example_json(response_from_json, response_loaded_json) if __name__ == '__main__': unittest.main()