Skip to content

Commit 4c9c726

Browse files
import errors fix and tests
1 parent df3e2d5 commit 4c9c726

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kubernetes/e2e_test/test_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def test_create_apps_deployment_from_yaml_obj(self):
6565
yml_obj = yaml.safe_load(f)
6666

6767
yml_obj["metadata"]["name"] = "nginx-app-3"
68-
69-
utils.create_from_dict(k8s_client, yml_obj)
68+
operation = "create"
69+
utils.operate_from_dict(k8s_client, yml_obj , operation)
7070

7171
app_api = client.AppsV1Api(k8s_client)
7272
dep = app_api.read_namespaced_deployment(name="nginx-app-3",

kubernetes/utils/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414

1515
from __future__ import absolute_import
1616

17-
from .operate_from_yaml import (FailToExecuteError, create_from_dict, delete_from_dict,
17+
from .operate_from_yaml import (FailToExecuteError, operate_from_dict,
1818
create_from_yaml, delete_from_yaml)
1919
from .quantity import parse_quantity

0 commit comments

Comments
 (0)