Commit 31208d0c authored by Elian Kraja's avatar Elian Kraja
Browse files

Fixies after MEC013 tests

parent 22f68efa
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@ Check HTTP Response Status Code Is
    Log    Status code validated

Check HTTP Response Body Json Schema Is
    [Tags]    INCLUDE_UNDEFINED_SCHEMAS
    [Arguments]    ${input}
    Should Contain    ${response['headers']['Content-Type']}    application/json
    ${schema} =    Catenate    SEPARATOR=    ${input}    .schema.json
+5 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ TC_MEC_SRV_RLOCLOOK_001_OK
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.7
    ...    OpenAPI    https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/AccessPointList

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES    
    [Tags]    PIC_MEC_PLAT    PIC_SERVICES    INCLUDE_UNDEFINED_SCHEMAS
    Get the access points list        ${ZONE_ID}
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    AccessPointList
@@ -48,3 +48,7 @@ Get the access points list
    Get    ${apiRoot}/${apiName}/${apiVersion}/zones/${zoneId}/accessPoints
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}



+2 −3
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@ Default Tags TC_MEC_SRV_UEAREASUB


*** Test Cases ***

TC_MEC_SRV_UEAREASUB_001_OK
    [Documentation]
    ...    Check that the IUT acknowledges the UE area change subscription request when
@@ -22,7 +21,7 @@ TC_MEC_SRV_UEAREASUB_001_OK
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.11
    ...    OpenAPI    # TODO check this

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
    [Tags]    PIC_MEC_PLAT    PIC_SERVICES    INCLUDE_UNDEFINED_SCHEMAS
    Create new subscription    CircleNotificationSubscription
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    CircleNotificationSubscription
+8 −1
Original line number Diff line number Diff line
@@ -11,6 +11,9 @@ Library OperatingSystem
Default Tags    TC_MEC_SRV_UEDISTLOOK


*** Variables ***
${response}


*** Test Cases ***

@@ -22,10 +25,12 @@ TC_MEC_SRV_UEDISTLOOK_001_OK
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.9
    ...    OpenAPI    # TODO check this

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
    [Tags]    PIC_MEC_PLAT    PIC_SERVICES   INCLUDE_UNDEFINED_SCHEMAS
    Set Headers    {"Accept":"application/json"}
    Set Headers    {"Authorization":"${TOKEN}"}
    Get    ${apiRoot}/${apiName}/${apiVersion}/queries/distance?address=${LOC_QRY_UE_ADDRESS}&latitude=${LOC_QRY_UE_LAT}&longitude=${LOC_QRY_UE_LONG}
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    TerminalDistance

@@ -41,4 +46,6 @@ TC_MEC_SRV_UEDISTLOOK_001_BR
    Set Headers    {"Accept":"application/json"}
    Set Headers    {"Authorization":"${TOKEN}"}
    Get    ${apiRoot}/${apiName}/${apiVersion}/queries/distance?address=${LOC_QRY_UE_ADDRESS}&lat=${LOC_QRY_UE_LAT}&longitude=${LOC_QRY_UE_LONG}
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Check HTTP Response Status Code Is    400
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ TC_MEC_SRV_UEINFOLOOK_001_OK
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.3
    ...    OpenAPI    https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserList

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
    [Tags]    PIC_MEC_PLAT    PIC_SERVICES   INCLUDE_UNDEFINED_SCHEMAS
    Get list of users with filter    address    ${ACR_ADDRESS}
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    UserList
Loading