@@ -26,7 +26,7 @@ def setUpClass(cls):
26
26
27
27
def test_app_yaml (self ):
28
28
k8s_client = client .api_client .ApiClient (configuration = self .config )
29
- k8s_api = utils .create_from_file (
29
+ k8s_api = utils .create_from_yaml (
30
30
k8s_client ,
31
31
"kubernetes/e2e_test/test_yaml/apps-deployment.yaml" )
32
32
self .assertEqual (
@@ -42,7 +42,7 @@ def test_app_yaml(self):
42
42
43
43
def test_extension_yaml (self ):
44
44
k8s_client = client .api_client .ApiClient (configuration = self .config )
45
- k8s_api = utils .create_from_file (
45
+ k8s_api = utils .create_from_yaml (
46
46
k8s_client ,
47
47
"kubernetes/e2e_test/test_yaml/extensions-deployment.yaml" )
48
48
self .assertEqual (
@@ -58,7 +58,7 @@ def test_extension_yaml(self):
58
58
59
59
def test_core_pod_yaml (self ):
60
60
k8s_client = client .api_client .ApiClient (configuration = self .config )
61
- k8s_api = utils .create_from_file (
61
+ k8s_api = utils .create_from_yaml (
62
62
k8s_client ,
63
63
"kubernetes/e2e_test/test_yaml/core-pod.yaml" )
64
64
self .assertEqual (
@@ -73,7 +73,7 @@ def test_core_pod_yaml(self):
73
73
74
74
def test_core_service_yaml (self ):
75
75
k8s_client = client .api_client .ApiClient (configuration = self .config )
76
- k8s_api = utils .create_from_file (
76
+ k8s_api = utils .create_from_yaml (
77
77
k8s_client ,
78
78
"kubernetes/e2e_test/test_yaml/core-service.yaml" )
79
79
self .assertEqual ("v1" , k8s_api .get_api_resources ().group_version )
@@ -87,7 +87,7 @@ def test_core_service_yaml(self):
87
87
88
88
def test_core_namespace_yaml (self ):
89
89
k8s_client = client .api_client .ApiClient (configuration = self .config )
90
- k8s_api = utils .create_from_file (
90
+ k8s_api = utils .create_from_yaml (
91
91
k8s_client ,
92
92
"kubernetes/e2e_test/test_yaml/core-namespace.yaml" )
93
93
self .assertEqual ("v1" , k8s_api .get_api_resources ().group_version )
@@ -97,13 +97,13 @@ def test_core_namespace_yaml(self):
97
97
98
98
def test_deployment_in_namespace (self ):
99
99
k8s_client = client .ApiClient (configuration = self .config )
100
- core_api = utils .create_from_file (
100
+ core_api = utils .create_from_yaml (
101
101
k8s_client ,
102
102
"kubernetes/e2e_test/test_yaml/core-namespace-dep.yaml" )
103
103
self .assertEqual ("v1" , core_api .get_api_resources ().group_version )
104
104
nmsp = core_api .read_namespace (name = "dep" )
105
105
self .assertIsNotNone (nmsp )
106
- dep_api = utils .create_from_file (
106
+ dep_api = utils .create_from_yaml (
107
107
k8s_client ,
108
108
"kubernetes/e2e_test/test_yaml/extensions-deployment-dep.yaml" )
109
109
dep = dep_api .read_namespaced_deployment (
@@ -117,7 +117,7 @@ def test_deployment_in_namespace(self):
117
117
118
118
def test_api_service (self ):
119
119
k8s_client = client .api_client .ApiClient (configuration = self .config )
120
- k8s_api = utils .create_from_file (
120
+ k8s_api = utils .create_from_yaml (
121
121
k8s_client ,
122
122
"kubernetes/e2e_test/test_yaml/api-service.yaml" )
123
123
self .assertEqual (
0 commit comments