From: chenjiankun Date: Mon, 17 Jul 2017 02:32:47 +0000 (+0000) Subject: Bugfix: kubernetes context do not implement _get_network X-Git-Tag: opnfv-5.0.RC1~388^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F37587%2F2;p=yardstick.git 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 --- 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