From 252829283a4b48d43163b0ffc06d14f7a135ae4d Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Mon, 17 Jul 2017 02:32:47 +0000 Subject: 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 --- yardstick/benchmark/contexts/kubernetes.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit 1.2.3-korg