blob: c658d325709ec3bdba0121f79216627117d27c38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
##############################################################################
# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
from __future__ import absolute_import
import logging
from yardstick.benchmark.contexts.base import Context
LOG = logging.getLogger(__name__)
class DummyContext(Context):
"""Class that handle dummy info"""
__context_type__ = "Dummy"
def __init__(self):
super(DummyContext, self).__init__()
def init(self, attrs):
pass
def deploy(self):
"""don't need to deploy"""
pass
def undeploy(self):
"""don't need to undeploy"""
super(DummyContext, self).undeploy()
def _get_server(self, attr_name):
return None
|