aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJamo Luhrsen <jluhrsen@redhat.com>2017-05-10 10:27:14 -0700
committerCédric Ollivier <cedric.ollivier@orange.com>2017-05-17 06:30:53 +0200
commitb8b2c014b48511486e8cccbcfcaebad843239ac5 (patch)
treeb917f06a57672d01818b344895a663306aea7c41
parent10ed30e26e9510dcdc9563a0eda3b94c0ccb16ad (diff)
Update/Add requirements to run ODL robot CSIT
It conforms test_odl.py with the new RobotFramework API too. It also updates test-requirements.txt as required by the current implementation of run_unit_tests.sh. Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Ibca0150a40d3b8a3f736be1e9dcbf9ce56af0299 Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/tests/unit/odl/test_odl.py10
-rw-r--r--requirements.txt8
-rw-r--r--test-requirements.txt5
3 files changed, 12 insertions, 11 deletions
diff --git a/functest/tests/unit/odl/test_odl.py b/functest/tests/unit/odl/test_odl.py
index d7ce70c79..2484f5a5c 100644
--- a/functest/tests/unit/odl/test_odl.py
+++ b/functest/tests/unit/odl/test_odl.py
@@ -18,7 +18,7 @@ import unittest
from keystoneauth1.exceptions import auth_plugins
import mock
from robot.errors import DataError, RobotError
-from robot.result import testcase as result_testcase
+from robot.result import model
from robot.utils.robottime import timestamp_to_secs
from functest.core import testcase
@@ -49,11 +49,9 @@ class ODLVisitorTesting(unittest.TestCase):
'elapsedtime': 1000,
'text': 'Hello, World!',
'critical': True}
- test = result_testcase.TestCase(name=data['name'],
- status=data['status'],
- message=data['text'],
- starttime=data['starttime'],
- endtime=data['endtime'])
+ test = model.TestCase(
+ name=data['name'], status=data['status'], message=data['text'],
+ starttime=data['starttime'], endtime=data['endtime'])
test.parent = mock.Mock()
config = {'name': data['parent'],
'criticality.test_is_critical.return_value': data[
diff --git a/requirements.txt b/requirements.txt
index 976deefa2..e9b32e454 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -17,14 +17,16 @@ python-congressclient==1.5.0
virtualenv==15.1.0
pexpect==4.0
requests>=2.8.0
-robotframework==2.9.1
-robotframework-requests==0.3.8
+robotframework==3.0.2
+robotframework-httplibrary==0.4.2
+robotframework-requests==0.4.7
robotframework-sshlibrary==2.1.3
+jmespath==0.9.2
configObj==5.0.6
Flask==0.10.1
xmltodict==0.9.2
scp==0.10.2
-paramiko==1.16.0
+paramiko==2.1.2
subprocess32
shyaml
dnspython
diff --git a/test-requirements.txt b/test-requirements.txt
index 76e475dcc..a871137fd 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -21,8 +21,9 @@ python-openstackclient==2.3.0
python-tackerclient==0.7.0
pyyaml==3.10
requests==2.8.0
-robotframework==2.9.1
-robotframework-requests==0.3.8
+robotframework==3.0.2
+robotframework-httplibrary==0.4.2
+robotframework-requests==0.4.7
robotframework-sshlibrary==2.1.3
subprocess32==3.2.7
virtualenv==15.1.0