mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 07:55:31 +00:00
94 lines
3.2 KiB
Python
94 lines
3.2 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
Test Results API
|
|
|
|
Get test result metrics for Cloud and Enterprise Agent tests.
|
|
|
|
The version of the OpenAPI document: 7.0.4
|
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
|
|
Do not edit the class manually.
|
|
""" # noqa: E501
|
|
|
|
|
|
import unittest
|
|
|
|
from thousandeyes_sdk.test_results.models.dns_trace_test_result import DnsTraceTestResult
|
|
|
|
class TestDnsTraceTestResult(unittest.TestCase):
|
|
"""DnsTraceTestResult unit test stubs"""
|
|
|
|
def setUp(self):
|
|
pass
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def make_instance(self, include_optional) -> DnsTraceTestResult:
|
|
"""Test DnsTraceTestResult
|
|
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 `DnsTraceTestResult`
|
|
"""
|
|
model = DnsTraceTestResult()
|
|
if include_optional:
|
|
return DnsTraceTestResult(
|
|
var_date = '2022-07-17T22:00:54Z',
|
|
round_id = 1384309800,
|
|
links = None,
|
|
start_time = 1384309800,
|
|
end_time = 1384309800,
|
|
agent = thousandeyes_sdk.test_results.models.agent.Agent(
|
|
agent_id = '281474976710706',
|
|
agent_name = 'thousandeyes-stg-va-254',
|
|
country_id = 'US',
|
|
location = 'San Francisco Bay Area', ),
|
|
output = 'com. 172800 IN NS a.gtld-servers.net.
|
|
com. 172800 IN NS f.gtld-servers.net.
|
|
com. 172800 IN NS c.gtld-servers.net.
|
|
com. 172800 IN NS b.gtld-servers.net.
|
|
com. 172800 IN NS d.gtld-servers.net.
|
|
com. 172800 IN NS e.gtld-servers.net.
|
|
com. 172800 IN NS g.gtld-servers.net.
|
|
com. 172800 IN NS m.gtld-servers.net.
|
|
com. 172800 IN NS h.gtld-servers.net.
|
|
com. 172800 IN NS j.gtld-servers.net.
|
|
com. 172800 IN NS i.gtld-servers.net.
|
|
com. 172800 IN NS l.gtld-servers.net.
|
|
com. 172800 IN NS k.gtld-servers.net.
|
|
;; Received 498 bytes from 199.7.91.13(d.root-servers.net.) in 119 ms
|
|
|
|
thousandeyes.com. 172800 IN NS a1.verisigndns.com.
|
|
thousandeyes.com. 172800 IN NS a2.verisigndns.com.
|
|
thousandeyes.com. 172800 IN NS a3.verisigndns.com.
|
|
thousandeyes.com. 172800 IN NS u1.verisigndns.com.
|
|
;; Received 266 bytes from 192.5.6.30(a.gtld-servers.net.) in 178 ms
|
|
|
|
app.thousandeyes.com. 300 IN CNAME web.thousandeyes.com.
|
|
web.thousandeyes.com. 300 IN CNAME lb-app.thousandeyes.com.
|
|
lb-app.thousandeyes.com. 3600 IN A 208.185.7.120
|
|
;; Received 173 bytes from 209.112.113.33(a1.verisigndns.com.) in 178 ms
|
|
|
|
',
|
|
error_details = 'Connection error',
|
|
queries = 3,
|
|
failed_queries = 0,
|
|
final_server_queried = 'a1.verisigndns.com.',
|
|
final_query_time = 178,
|
|
mappings = '208.185.7.120'
|
|
)
|
|
else:
|
|
return DnsTraceTestResult(
|
|
)
|
|
"""
|
|
|
|
def testDnsTraceTestResult(self):
|
|
"""Test DnsTraceTestResult"""
|
|
# inst_req_only = self.make_instance(include_optional=False)
|
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|