Skip to content

Commit

Permalink
Update/Add requirements to run ODL robot CSIT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jluhrsen authored and collivier committed May 17, 2017
1 parent 10ed30e commit b8b2c01
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
10 changes: 4 additions & 6 deletions functest/tests/unit/odl/test_odl.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
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
Expand Down Expand Up @@ -49,11 +49,9 @@ def test_ok(self):
'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[
Expand Down
8 changes: 5 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8b2c01

Please sign in to comment.