Uploaded image for project: 'ONAP Operations Manager'
  1. ONAP Operations Manager
  2. OOM-575

asdc_interface.robot not in synch with latest version in testsuite

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Amsterdam Release
    • Amsterdam Release
    • None

      ete-k8s.sh distribute fails with a reference to return values length doesnt match

      16:03:12.828 FAIL Cannot set variables: Expected 6 return values, got 5

      The reason is that the test suite expected the function to return 6 values but the resource definitions in asdc_interface.robot was only returning 5. Looking more deeply the version of asdc_interface.robot used by OOM was old.

      We need to either update asdc_interface.robot to be consistent with the latest version or more appropriately find a way to keep the interface file in sync between the testsuite repo and the oom repo.

      The robot resource files are parameterized so the OOM environment IP addresses could be used as is in the resource scripts so you probably want to review if you really need customer versions of the robot resources.

      root@onapoom3:/dockerdata-nfs/onap/robot/robot/resources# diff asdc_interface.robot asdc_interface.robot.old
      47,48c47,48
      < ${ASDC_FE_ENDPOINT} ${GLOBAL_ASDC_SERVER_PROTOCOL}://${GLOBAL_INJECTED_SDC_IP_ADDR}:${GLOBAL_ASDC_FE_PORT}
      < ${ASDC_BE_ENDPOINT} ${GLOBAL_ASDC_SERVER_PROTOCOL}://${GLOBAL_INJECTED_SDC_IP_ADDR}:${GLOBAL_ASDC_BE_PORT}

      > ${ASDC_FE_ENDPOINT} ${GLOBAL_ASDC_SERVER_PROTOCOL}://${GLOBAL_INJECTED_SDC_FE_IP_ADDR}:${GLOBAL_ASDC_FE_PORT}
      > ${ASDC_BE_ENDPOINT} ${GLOBAL_ASDC_SERVER_PROTOCOL}://${GLOBAL_INJECTED_SDC_BE_IP_ADDR}:${GLOBAL_ASDC_BE_PORT}
      56d55
      < ${catalog_resources}= Create Dictionary
      62d60
      < \ Set To Dictionary ${catalog_resources} ${loop_catalog_resource_id}=${loop_catalog_resource_resp}
      74,75c72,73
      < [Return] ${catalog_service_resp['name']} ${loop_catalog_resource_resp['name']} ${vf_module} ${catalog_resource_ids} ${catalog_service_id} ${catalog_resources}
      <

      > [Return] ${catalog_service_resp['name']} ${loop_catalog_resource_resp['name']} ${vf_module} ${catalog_resource_ids} ${catalog_service_id}
      >
      297,298c295,296
      < [Documentation] Creates an asdc Software Product and returns its id
      < [Arguments] ${software_product_id} ${file_path} ${version_id}=0.1

      > [Documentation] Creates an asdc Software Product and returns its id
      > [Arguments] ${software_product_id} ${file_path} ${version_id}=0.1
      301,302c299,300
      < ${resp}= Run ASDC Post Files Request ${ASDC_VENDOR_SOFTWARE_PRODUCT_PATH}/${software_product_id}/versions/${version_id}${ASDC_VENDOR_SOFTWARE_UPLOAD_PATH} ${files} ${ASDC_DESIGNER_USER_ID}
      < Should Be Equal As Strings ${resp.status_code} 200

      > ${resp}= Run ASDC Post Files Request ${ASDC_VENDOR_SOFTWARE_PRODUCT_PATH}/${software_product_id}/versions/${version_id}${ASDC_VENDOR_SOFTWARE_UPLOAD_PATH} ${files} ${ASDC_DESIGNER_USER_ID}
      > Should Be Equal As Strings ${resp.status_code} 200

            adetalhouet adetalhouet
            bdfreeman1421 bdfreeman1421
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: