Details
-
Bug
-
Status: Verified
-
Medium
-
Resolution: Done
-
None
-
None
-
None
Description
While testing ODL with Functest in OPNFV, we ran into a python3 str vs bytes mismatch in restconf_modules.robot. See downstream Jira ticket [1].
The problem manifests similar to [3] and seems to be caused by [2].
============================================================================== Basic & Neutron.Basic.Restconf Modules :: Test suite to verify Restconf is OK. ============================================================================== Get Controller Modules :: Get the restconf modules, check 200 stat... | FAIL | TypeError: a bytes-like object is required, not 'str'
Changing resp.content to resp.text fixes the issue; and it should also be backwards compatible with python2.
[1] https://jira.opnfv.org/browse/FUNCTEST-1014
[3] https://github.com/robotframework/robotframework/issues/3254
Attachments
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 86682,1 | INTTEST-65: use resp.text instead of .content | master | integration/test | Status: MERGED | +2 | +1 |