summaryrefslogtreecommitdiffstats
path: root/vnftest/tests/unit/core
diff options
context:
space:
mode:
authorMoshe <moshehoa@amdocs.com>2018-08-15 12:19:07 +0300
committerMoshe <moshehoa@amdocs.com>2018-08-15 17:00:11 +0300
commit5e5e493a5ec5048c0a340e2acd72f52869779fdf (patch)
treeb4f787f6df2a4414660d7f235dfc128cc86fdc2e /vnftest/tests/unit/core
parent1a54248ad5b5f836ae915413ffefaa487d1f73f5 (diff)
versionize tests due to API changes in ONAP
Issue-ID: VNFSDK-301 Change-Id: I1fdf1b42fc2cd44021c2f33695c86bbbdc8bb62b Signed-off-by: Moshe <moshehoa@amdocs.com> fix tests Issue-ID: VNFSDK-301 Change-Id: I87abc962b13956af07ad8bf7355ea681343664dc Signed-off-by: Moshe <moshehoa@amdocs.com>
Diffstat (limited to 'vnftest/tests/unit/core')
-rwxr-xr-xvnftest/tests/unit/core/test_commands.py15
-rw-r--r--vnftest/tests/unit/core/test_testcase.py2
2 files changed, 7 insertions, 10 deletions
diff --git a/vnftest/tests/unit/core/test_commands.py b/vnftest/tests/unit/core/test_commands.py
index 35660bd..fee15a3 100755
--- a/vnftest/tests/unit/core/test_commands.py
+++ b/vnftest/tests/unit/core/test_commands.py
@@ -14,18 +14,15 @@
# vnftest comment: this is a modified copy of
# yardstick/tests/functional/test_cli_runner.py
+import sys
import unittest
+from cStringIO import StringIO
from vnftest.cmd.commands.runner import RunnerCommands
from vnftest.cmd.commands.step import StepCommands
from vnftest.core import Param
from vnftest.core.runner import Runners
from vnftest.core.step import Steps
-from vnftest.runners.iteration import IterationRunner
-from vnftest.runners.duration import DurationRunner
-from vnftest.onap.onap_api_call import OnapApiCall
-from cStringIO import StringIO
-import sys
class Capture(list):
@@ -56,7 +53,7 @@ class CommandsTestCase(unittest.TestCase):
step_cmd = StepCommands()
with Capture() as output:
step_cmd.do_list(None)
- self.assert_text_in_lines(output, ["OnapApiCall"])
+ self.assert_text_in_lines(output, ["RestCall"])
def test_runner_show_Duration(self):
param = Param({})
@@ -72,12 +69,12 @@ class CommandsTestCase(unittest.TestCase):
Runners().show(param)
self.assert_text_in_lines(output, ["iterations - amount of times"])
- def test_step_show_OnapApiCall(self):
+ def test_step_show_RestCall(self):
param = Param({})
- setattr(param, 'type', ['OnapApiCall'])
+ setattr(param, 'type', ['RestCall'])
with Capture() as output:
Steps().show(param)
- self.assert_text_in_lines(output, ["Call ONAP API"])
+ self.assert_text_in_lines(output, ["Call REST API"])
def assert_text_in_lines(self, lines, texts):
for text in texts:
diff --git a/vnftest/tests/unit/core/test_testcase.py b/vnftest/tests/unit/core/test_testcase.py
index 0ba4873..5b1146d 100644
--- a/vnftest/tests/unit/core/test_testcase.py
+++ b/vnftest/tests/unit/core/test_testcase.py
@@ -23,7 +23,7 @@ from vnftest.core import testcase
class Arg(object):
def __init__(self):
- self.casename = ('onap_vnftest_tc001',)
+ self.casename = ('onap_vnftest_onboard-v1',)
class TestcaseUT(unittest.TestCase):