61 lines
1.8 KiB
Python
61 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.16
|
|
Generated by: https://openapi-generator.tech
|
|
"""
|
|
|
|
|
|
from __future__ import absolute_import
|
|
|
|
import unittest
|
|
import datetime
|
|
|
|
import kubernetes.client
|
|
from kubernetes.client.models.v1_csi_volume_source import V1CSIVolumeSource # noqa: E501
|
|
from kubernetes.client.rest import ApiException
|
|
|
|
class TestV1CSIVolumeSource(unittest.TestCase):
|
|
"""V1CSIVolumeSource unit test stubs"""
|
|
|
|
def setUp(self):
|
|
pass
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def make_instance(self, include_optional):
|
|
"""Test V1CSIVolumeSource
|
|
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_csi_volume_source.V1CSIVolumeSource() # noqa: E501
|
|
if include_optional :
|
|
return V1CSIVolumeSource(
|
|
driver = '0',
|
|
fs_type = '0',
|
|
node_publish_secret_ref = kubernetes.client.models.v1/local_object_reference.v1.LocalObjectReference(
|
|
name = '0', ),
|
|
read_only = True,
|
|
volume_attributes = {
|
|
'key' : '0'
|
|
}
|
|
)
|
|
else :
|
|
return V1CSIVolumeSource(
|
|
driver = '0',
|
|
)
|
|
|
|
def testV1CSIVolumeSource(self):
|
|
"""Test V1CSIVolumeSource"""
|
|
inst_req_only = self.make_instance(include_optional=False)
|
|
inst_req_and_optional = self.make_instance(include_optional=True)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|