60 lines
1.8 KiB
Python
60 lines
1.8 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
Kubernetes
|
|
|
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
|
|
|
The version of the OpenAPI document: release-1.17
|
|
Generated by: https://openapi-generator.tech
|
|
"""
|
|
|
|
|
|
from __future__ import absolute_import
|
|
|
|
import unittest
|
|
import datetime
|
|
|
|
import kubernetes.client
|
|
from kubernetes.client.models.v1_node_condition import V1NodeCondition # noqa: E501
|
|
from kubernetes.client.rest import ApiException
|
|
|
|
class TestV1NodeCondition(unittest.TestCase):
|
|
"""V1NodeCondition unit test stubs"""
|
|
|
|
def setUp(self):
|
|
pass
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def make_instance(self, include_optional):
|
|
"""Test V1NodeCondition
|
|
include_option is a boolean, when False only required
|
|
params are included, when True both required and
|
|
optional params are included """
|
|
# model = kubernetes.client.models.v1_node_condition.V1NodeCondition() # noqa: E501
|
|
if include_optional :
|
|
return V1NodeCondition(
|
|
last_heartbeat_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
last_transition_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
message = '0',
|
|
reason = '0',
|
|
status = '0',
|
|
type = '0'
|
|
)
|
|
else :
|
|
return V1NodeCondition(
|
|
status = '0',
|
|
type = '0',
|
|
)
|
|
|
|
def testV1NodeCondition(self):
|
|
"""Test V1NodeCondition"""
|
|
inst_req_only = self.make_instance(include_optional=False)
|
|
inst_req_and_optional = self.make_instance(include_optional=True)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|