Uploaded image for project: 'integration-test'
  1. integration-test
  2. INTTEST-65

restconf_modules python3 type mismatch

    XMLWordPrintable

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

      [2] https://git.opendaylight.org/gerrit/gitweb?p=integration/test.git;a=blob;f=csit/suites/integration/basic/restconf_modules.robot#l14

      [3] https://github.com/robotframework/robotframework/issues/3254

      Attachments

        # Subject Branch Project Status CR V

        Activity

          People

            jluhrsen Jamo Luhrsen
            AlexandruAvadanii Alexandru Avadanii
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: