summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2017-07-17 02:32:47 +0000
committerchenjiankun <chenjiankun1@huawei.com>2017-07-17 03:17:33 +0000
commit252829283a4b48d43163b0ffc06d14f7a135ae4d (patch)
tree765853b6d1738f9f217739a648a197a8f0224c7f
parent04776024ae7a404c2987e842fe725589a56600dd (diff)
Bugfix: kubernetes context do not implement _get_network
Since kubernetes context do not implement _get_network, so when run unit test case, we will get a error: TypeError: Can't instantiate abstract class KubernetesContext with abstract methods _get_network Change-Id: Ib56abe7c580ef8a6fc9f52f3fcd566d0fa70e1cc Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
-rw-r--r--yardstick/benchmark/contexts/kubernetes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yardstick/benchmark/contexts/kubernetes.py b/yardstick/benchmark/contexts/kubernetes.py
index cc3e326c6..a39f63137 100644
--- a/yardstick/benchmark/contexts/kubernetes.py
+++ b/yardstick/benchmark/contexts/kubernetes.py
@@ -135,3 +135,6 @@ class KubernetesContext(Context):
for n in resp.items if n.metadata.name.startswith(name))
return next(hosts, None)
+
+ def _get_network(self, attr_name):
+ return None