Add "IterationIPC" runner
[yardstick.git] / yardstick / benchmark / contexts / dummy.py
1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
3 #
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 ##############################################################################
9
10 from yardstick.benchmark.contexts.base import Context
11
12
13 class DummyContext(Context):
14     """Class that handle dummy info.
15
16     This class is also used to test the abstract class Context because it
17     provides a minimal concrete implementation of a subclass.
18     """
19
20     __context_type__ = "Dummy"
21
22     def deploy(self):
23         """Don't need to deploy"""
24         pass
25
26     def undeploy(self):
27         """Don't need to undeploy"""
28         pass
29
30     def _get_server(self, attr_name):
31         return None
32
33     def _get_network(self, attr_name):
34         return None
35
36     def _get_physical_nodes(self):
37         return None
38
39     def _get_physical_node_for_server(self, server_name):
40         return None