98 lines
3.6 KiB
Python
98 lines
3.6 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.v1beta1_priority_class import V1beta1PriorityClass # noqa: E501
|
|
from kubernetes.client.rest import ApiException
|
|
|
|
class TestV1beta1PriorityClass(unittest.TestCase):
|
|
"""V1beta1PriorityClass unit test stubs"""
|
|
|
|
def setUp(self):
|
|
pass
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def make_instance(self, include_optional):
|
|
"""Test V1beta1PriorityClass
|
|
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.v1beta1_priority_class.V1beta1PriorityClass() # noqa: E501
|
|
if include_optional :
|
|
return V1beta1PriorityClass(
|
|
api_version = '0',
|
|
description = '0',
|
|
global_default = True,
|
|
kind = '0',
|
|
metadata = kubernetes.client.models.v1/object_meta.v1.ObjectMeta(
|
|
annotations = {
|
|
'key' : '0'
|
|
},
|
|
cluster_name = '0',
|
|
creation_timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
deletion_grace_period_seconds = 56,
|
|
deletion_timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
finalizers = [
|
|
'0'
|
|
],
|
|
generate_name = '0',
|
|
generation = 56,
|
|
labels = {
|
|
'key' : '0'
|
|
},
|
|
managed_fields = [
|
|
kubernetes.client.models.v1/managed_fields_entry.v1.ManagedFieldsEntry(
|
|
api_version = '0',
|
|
fields_type = '0',
|
|
fields_v1 = kubernetes.client.models.fields_v1.fieldsV1(),
|
|
manager = '0',
|
|
operation = '0',
|
|
time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
|
|
],
|
|
name = '0',
|
|
namespace = '0',
|
|
owner_references = [
|
|
kubernetes.client.models.v1/owner_reference.v1.OwnerReference(
|
|
api_version = '0',
|
|
block_owner_deletion = True,
|
|
controller = True,
|
|
kind = '0',
|
|
name = '0',
|
|
uid = '0', )
|
|
],
|
|
resource_version = '0',
|
|
self_link = '0',
|
|
uid = '0', ),
|
|
preemption_policy = '0',
|
|
value = 56
|
|
)
|
|
else :
|
|
return V1beta1PriorityClass(
|
|
value = 56,
|
|
)
|
|
|
|
def testV1beta1PriorityClass(self):
|
|
"""Test V1beta1PriorityClass"""
|
|
inst_req_only = self.make_instance(include_optional=False)
|
|
inst_req_and_optional = self.make_instance(include_optional=True)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|