summaryrefslogtreecommitdiffstats
path: root/vnftest/tests/unit/onap
diff options
context:
space:
mode:
Diffstat (limited to 'vnftest/tests/unit/onap')
-rw-r--r--vnftest/tests/unit/onap/test_rest_call.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/vnftest/tests/unit/onap/test_rest_call.py b/vnftest/tests/unit/onap/test_rest_call.py
index 13aced7..b100ecb 100644
--- a/vnftest/tests/unit/onap/test_rest_call.py
+++ b/vnftest/tests/unit/onap/test_rest_call.py
@@ -21,6 +21,7 @@ from vnftest.core import task
class RestCallTestCase(testtools.TestCase):
step = {
+ 'name': 'DummyName',
'type': 'RestCall',
'options': {
'file': "dummy.yaml",
@@ -49,10 +50,10 @@ class RestCallTestCase(testtools.TestCase):
@mock.patch('vnftest.steps.rest_call.RestCall.execute_operation_impl')
def test_run(self, mock_execute_operation):
mock_execute_operation.return_value = {'body': {'value': 'output1'}}
- t = task.Task()
+ t = task.Task({})
context_cfg = {}
context = Context.get("CSAR")
context.init(context_cfg)
t.context = context
- output = t._run([RestCallTestCase.step], False, "vnftest.out", {})
+ output = t._run([RestCallTestCase.step], 'dummy_case', False, "vnftest.out", {})
self.assertEquals(output[0]['data']['output1'], 'output1')