diff options
author | Panagiotis Karalis <pkaralis@intracom-telecom.com> | 2019-04-11 13:28:21 +0300 |
---|---|---|
committer | Dan Xu <xudan16@huawei.com> | 2019-04-17 12:55:54 +0000 |
commit | 73febf900b85dae4d953389696f3a78cf8267816 (patch) | |
tree | 41b45803fa0a7c3368a3f1553f58b96b671f3ef6 /dovetail/tests/unit/test_testcase.py | |
parent | f170bf4205fd75db96b84a685b931904f4dbab93 (diff) |
Failed to upload results to ONAP portal
The results.json file generated by running
'dovetail run --testsuite xxx' is different from the one
generated by running 'dovetail run --testcase xxx'.
The former can be uploaded to ONAP portal successfully
but the latter one can't.
The main reason is that the latter one lacking of 'vnf_type'.
Keep the results.json with the same format for both running
one test suite or several test cases.
JIRA: DOVETAIL-769
Change-Id: I46af84f9f229f9e601439f68c9ed9df9477d002b
Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
Diffstat (limited to 'dovetail/tests/unit/test_testcase.py')
-rw-r--r-- | dovetail/tests/unit/test_testcase.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dovetail/tests/unit/test_testcase.py b/dovetail/tests/unit/test_testcase.py index e3f2a64c..b915556c 100644 --- a/dovetail/tests/unit/test_testcase.py +++ b/dovetail/tests/unit/test_testcase.py @@ -163,6 +163,13 @@ class TestcaseTesting(unittest.TestCase): self.assertEquals('tempest_smoke_serial', result) + def test_vnf_type(self): + testcase = tcase.OnapVtpTestcase(self.testcase_yaml) + + result = testcase.vnf_type() + + self.assertEquals('tosca', result) + def test_passed(self): testcase = tcase.Testcase(self.testcase_yaml) |