thousandeyes-sdk-python/endpoint/tests_api/test/test_endpoint_http_server_test.py
2023-12-11 09:29:15 +00:00

85 lines
3.0 KiB
Python

# coding: utf-8
"""
Endpoint Tests API
## Overview Manage endpoint agent dynamic and scheduled tests using the Endpoint Tests API.
The version of the OpenAPI document: 7.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from tests_api.models.endpoint_http_server_test import EndpointHttpServerTest
class TestEndpointHttpServerTest(unittest.TestCase):
"""EndpointHttpServerTest unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> EndpointHttpServerTest:
"""Test EndpointHttpServerTest
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `EndpointHttpServerTest`
"""
model = EndpointHttpServerTest()
if include_optional:
return EndpointHttpServerTest(
links = tests_api.models.endpoint_test_links.EndpointTestLinks(
self = null,
test_results = [{"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"}], ),
agent_selector_config = tests_api.models.endpoint_agent_selector_config.EndpointAgentSelectorConfig(),
created_date = '2022-07-17T22:00:54Z',
interval = 120,
is_enabled = True,
is_saved_event = False,
has_path_trace_in_session = True,
modified_date = '2022-07-17T22:00:54Z',
network_measurements = True,
port = 80,
protocol = 'icmp',
server = 'www.example.com',
test_id = '281474976710706',
aid = None,
test_name = 'Test name',
type = 'http-server',
auth_type = 'none',
http_time_limit = 5000,
url = 'www.example.com',
username = 'username',
ssl_version_id = '0',
tcp_probe_mode = 'auto',
verify_certificate = False,
content_regex = '(regex)+',
follow_redirects = True,
http_target_time = 100,
http_version = 1,
post_body = 'body',
ssl_version = 'Auto',
use_ntlm = False,
user_agent = 'curl'
)
else:
return EndpointHttpServerTest(
)
"""
def testEndpointHttpServerTest(self):
"""Test EndpointHttpServerTest"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()