blob: 80a97bf84da6095a8f997b2f23dfa6502bb4ed7b [file] [log] [blame]
Moshe0bb532c2018-02-26 13:39:57 +02001##############################################################################
2# Copyright 2018 EuropeanSoftwareMarketingLtd.
3# ===================================================================
4# Licensed under the ApacheLicense, Version2.0 (the"License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# software distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and limitations under
12# the License
13##############################################################################
14
15from __future__ import absolute_import
16import logging
17
Moshe30497ac2018-03-14 14:22:13 +020018from vnftest.contexts.base import Context
Moshe0bb532c2018-02-26 13:39:57 +020019
20
21LOG = logging.getLogger(__name__)
22
23
24class DummyContext(Context):
25 """Class that handle dummy info"""
26
27 __context_type__ = "Dummy"
28
29 def __init__(self):
30 super(DummyContext, self).__init__()
31
32 def init(self, attrs):
Moshec9cdbfc2019-04-01 15:13:22 +030033 super(DummyContext, self).init(attrs)
Moshe0bb532c2018-02-26 13:39:57 +020034
35 def deploy(self):
Moshec9cdbfc2019-04-01 15:13:22 +030036 return {"out1": "dummy1", "out2": "dummy2"}
Moshe0bb532c2018-02-26 13:39:57 +020037
38 def undeploy(self):
39 """don't need to undeploy"""
40 super(DummyContext, self).undeploy()