Commit e2bb313e authored by Michele Carignani's avatar Michele Carignani
Browse files

fix #33 and #34

parent 915d18a3
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -25,7 +25,8 @@ Should Be Present In Json List
    [Arguments]     ${expr}   ${json_field}   ${json_value}
    Log    Check if ${json_field} is present in ${expr} with the value ${json_value}
    :FOR  ${item}  IN  @{expr}
    \  Exit For Loop If    ${item[${json_field}]} == ${json_value}
    \  ${are_equal}=    Should Be Equal As Strings    ${item["${json_field}"]}    ${json_value}
    \  Exit For Loop If    ${are_equal}
    Log    Item found ${item}
    [return]    ${item}
    
+6 −11
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
Documentation
...    A test suite for validating UE Location Lookup (UELOCLOOK) operations.


Resource    ../../GenericKeywords.robot
Resource    environment/variables.txt
Library     REST    ${SCHEMA}://${HOST}:${PORT}    ssl_verify=false
@@ -30,7 +29,6 @@ TC_MEC_SRV_UELOCLOOK_001_OK
    Check HTTP Response Body Json Schema Is    UserList
    Check Result Contains    ${response['body']['userList']['user']}    zoneId    ${ZONE_ID}


TC_MEC_SRV_UELOCLOOK_001_BR
    [Documentation]
    ...    Check that the IUT responds with an error when
@@ -39,10 +37,9 @@ TC_MEC_SRV_UELOCLOOK_001_BR
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.3

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
    Get list of user equipments    zone    ${ZONE_ID}
    Get list of user equipments    z0n3    ${ZONE_ID}
    Check HTTP Response Status Code Is    400


TC_MEC_SRV_UELOCLOOK_001_NF
    [Documentation]
    ...    Check that the IUT responds with an error when
@@ -52,10 +49,7 @@ TC_MEC_SRV_UELOCLOOK_001_NF

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
    Get list of user equipments    zoneId    ${NON_EXISTENT_ZONE_ID}
    Check HTTP Response Status Code Is    404



    Check HTTP Response Status Code Is    200

TC_MEC_SRV_UELOCLOOK_002_OK
    [Documentation]
@@ -66,9 +60,10 @@ TC_MEC_SRV_UELOCLOOK_002_OK
    ...    OpenAPI    https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserInfo

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
    Get specific user equipments    ${USER_ID}
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    UserInfo
    Log    Deprecated
    # Get specific user equipments    ${USER_ID}
    # Check HTTP Response Status Code Is    200
    # Check HTTP Response Body Json Schema Is    UserInfo
    

TC_MEC_SRV_UELOCLOOK_002_NF