1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
10 from yardstick.benchmark import contexts
11 from yardstick.benchmark.contexts import base
14 class DummyContext(base.Context):
15 """Class that handle dummy info.
17 This class is also used to test the abstract class Context because it
18 provides a minimal concrete implementation of a subclass.
21 __context_type__ = contexts.CONTEXT_DUMMY
24 """Don't need to deploy"""
28 """Don't need to undeploy"""
31 def _get_server(self, attr_name):
34 def _get_network(self, attr_name):
37 def _get_physical_nodes(self):
40 def _get_physical_node_for_server(self, server_name):