Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "remove releng from Dockerfile and elsewhere"
[yardstick.git]
/
yardstick
/
benchmark
/
contexts
/
dummy.py
diff --git
a/yardstick/benchmark/contexts/dummy.py
b/yardstick/benchmark/contexts/dummy.py
index
c658d32
..
a9e4564
100644
(file)
--- a/
yardstick/benchmark/contexts/dummy.py
+++ b/
yardstick/benchmark/contexts/dummy.py
@@
-7,33
+7,28
@@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-from __future__ import absolute_import
-import logging
-
from yardstick.benchmark.contexts.base import Context
from yardstick.benchmark.contexts.base import Context
-LOG = logging.getLogger(__name__)
-
-
class DummyContext(Context):
class DummyContext(Context):
- """Class that handle dummy info"""
-
- __context_type__ = "Dummy"
+ """Class that handle dummy info.
- def __init__(self):
- super(DummyContext, self).__init__()
+ This class is also used to test the abstract class Context because it
+ provides a minimal concrete implementation of a subclass.
+ """
- def init(self, attrs):
- pass
+ __context_type__ = "Dummy"
def deploy(self):
def deploy(self):
- """
d
on't need to deploy"""
+ """
D
on't need to deploy"""
pass
def undeploy(self):
pass
def undeploy(self):
- """
d
on't need to undeploy"""
- super(DummyContext, self).undeploy()
+ """
D
on't need to undeploy"""
+ pass
def _get_server(self, attr_name):
return None
def _get_server(self, attr_name):
return None
+
+ def _get_network(self, attr_name):
+ return None