70 lines
1.9 KiB
Python
70 lines
1.9 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.16
|
|
Generated by: https://openapi-generator.tech
|
|
"""
|
|
|
|
|
|
from __future__ import absolute_import
|
|
|
|
import unittest
|
|
import datetime
|
|
|
|
import kubernetes.client
|
|
from kubernetes.client.models.version_info import VersionInfo # noqa: E501
|
|
from kubernetes.client.rest import ApiException
|
|
|
|
class TestVersionInfo(unittest.TestCase):
|
|
"""VersionInfo unit test stubs"""
|
|
|
|
def setUp(self):
|
|
pass
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def make_instance(self, include_optional):
|
|
"""Test VersionInfo
|
|
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.version_info.VersionInfo() # noqa: E501
|
|
if include_optional :
|
|
return VersionInfo(
|
|
build_date = '0',
|
|
compiler = '0',
|
|
git_commit = '0',
|
|
git_tree_state = '0',
|
|
git_version = '0',
|
|
go_version = '0',
|
|
major = '0',
|
|
minor = '0',
|
|
platform = '0'
|
|
)
|
|
else :
|
|
return VersionInfo(
|
|
build_date = '0',
|
|
compiler = '0',
|
|
git_commit = '0',
|
|
git_tree_state = '0',
|
|
git_version = '0',
|
|
go_version = '0',
|
|
major = '0',
|
|
minor = '0',
|
|
platform = '0',
|
|
)
|
|
|
|
def testVersionInfo(self):
|
|
"""Test VersionInfo"""
|
|
inst_req_only = self.make_instance(include_optional=False)
|
|
inst_req_and_optional = self.make_instance(include_optional=True)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|