Moshe | 0bb532c | 2018-02-26 13:39:57 +0200 | [diff] [blame] | 1 | ############################################################################## |
| 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 | |
| 15 | from __future__ import absolute_import |
| 16 | import logging |
| 17 | |
Moshe | 30497ac | 2018-03-14 14:22:13 +0200 | [diff] [blame] | 18 | from vnftest.contexts.base import Context |
Moshe | 0bb532c | 2018-02-26 13:39:57 +0200 | [diff] [blame] | 19 | |
| 20 | |
| 21 | LOG = logging.getLogger(__name__) |
| 22 | |
| 23 | |
| 24 | class 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): |
Moshe | c9cdbfc | 2019-04-01 15:13:22 +0300 | [diff] [blame] | 33 | super(DummyContext, self).init(attrs) |
Moshe | 0bb532c | 2018-02-26 13:39:57 +0200 | [diff] [blame] | 34 | |
| 35 | def deploy(self): |
Moshe | c9cdbfc | 2019-04-01 15:13:22 +0300 | [diff] [blame] | 36 | return {"out1": "dummy1", "out2": "dummy2"} |
Moshe | 0bb532c | 2018-02-26 13:39:57 +0200 | [diff] [blame] | 37 | |
| 38 | def undeploy(self): |
| 39 | """don't need to undeploy""" |
| 40 | super(DummyContext, self).undeploy() |