Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • M MEC Robot Test Suite
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MEC - Multi-access Edge ComputingMEC - Multi-access Edge Computing
  • MEC Robot Test Suite
  • Issues
  • #20
Closed
Open
Issue created Jun 06, 2020 by jacobvarghes@jacobvarghes

TC_MEC_SRV_APPSAQ_002_OK response check is wrong

TC_MEC_SRV_APPSAQ_002_OK
    [Documentation]
    ...    Check that the IUT notifies the authorised relevant (subscribed) application
    ...    instances when a new service for a given application instance is registered
    ...
    ...    Reference    ETSI GS MEC 011 V2.0.9, clause 8.2.6.3.4
    ...    OpenAPI    https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#/definitions/ServiceInfo

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
    Create new service    ServiceInfo    ${APP_INSTANCE_ID}
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    ServiceInfo
    Check HTTP Response Header Contains    Location
>>  Check Result Contains    ${response['body']}    serName    ${NEW_SERVICE_NAME}

Check Result Contains
    [Arguments]    ${source}    ${parameter}    ${value}
    Should Be Present In Json List    ${source}    ${parameter}    ${value}

Should Be Present In Json List
    [Arguments]     ${expr}   ${json_field}   ${json_value}
    Log    Check if ${json_field} is present in ${expr} with the value ${jsonvalue}
    :FOR  ${item}  IN  @{expr}
    \  Exit For Loop If    "${item['${json_field}']}" == "${json_value}"
    Log    Item found ${item}
    [return]    ${item}

Check Result Contains expects the response of the service create as a list of json, which is wrong. This is causing the below failure.

| FAIL |
Resolving variable '${item['serName']}' failed: TypeError: string indices must be integers
------------------------------------------------------------------------------
PlatAppServices :: A test suite for validating Application Service... | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================

This same issue is present in most of the test suite, some of them which we used are listed below. Kindly fix all.

  1. TC_MEC_SRV_APPSAQ_002_OK
  2. TC_MEC_SRV_APPSAQ_003_OK
  3. TC_MEC_SRV_APPSAQ_004_OK
  4. TC_MEC_SRV_APPSUB_002_OK
  5. TC_MEC_SRV_APPSUB_003_OK
  6. TC_MEC_SRV_DNS_002_OK
  7. TC_MEC_SRV_SAQ_002_OK
  8. TC_MEC_SRV_SRVSUB_002_OK
  9. TC_MEC_SRV_SRVSUB_003_OK
  10. TC_MEC_SRV_TRAF_002_OK
  11. TC_MEC_SRV_TRAF_003_OK
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking