thousandeyes-sdk-python/test_results/test/test_ssl_cert.py
2024-05-02 16:26:53 +01:00

59 lines
1.7 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.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from test_results.models.ssl_cert import SslCert
class TestSslCert(unittest.TestCase):
"""SslCert unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> SslCert:
"""Test SslCert
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 `SslCert`
"""
model = SslCert()
if include_optional:
return SslCert(
days_until_expiry = 56,
is_fetch_date_in_valid_cert_date_range = True,
has_valid_signing_cert = False,
issuer_name = 'DigiCert SHA2 Extended Validation Server CA',
valid_before = '2020-05-12T12:00Z',
valid_after = '2018-03-27T00:00Z',
subject_alternative_names = ["www.thousandeyes.com","thousandeyes.com"],
subject_name = 'www.thousandeyes.com'
)
else:
return SslCert(
)
"""
def testSslCert(self):
"""Test SslCert"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()