Commit d3fc569c authored by Elian Kraja's avatar Elian Kraja Committed by Michele Carignani
Browse files

Fixies after MEC013 tests

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


Check HTTP Response Body Json Schema Is
Check HTTP Response Body Json Schema Is
    [Tags]    INCLUDE_UNDEFINED_SCHEMAS
    [Arguments]    ${input}
    [Arguments]    ${input}
    Should Contain    ${response['headers']['Content-Type']}    application/json
    Should Contain    ${response['headers']['Content-Type']}    application/json
    ${schema} =    Catenate    SEPARATOR=    ${input}    .schema.json
    ${schema} =    Catenate    SEPARATOR=    ${input}    .schema.json
+5 −1
Original line number Original line 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
    ...    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
    ...    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}
    Get the access points list        ${ZONE_ID}
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    AccessPointList
    Check HTTP Response Body Json Schema Is    AccessPointList
@@ -48,3 +48,7 @@ Get the access points list
    Get    ${apiRoot}/${apiName}/${apiVersion}/zones/${zoneId}/accessPoints
    Get    ${apiRoot}/${apiName}/${apiVersion}/zones/${zoneId}/accessPoints
    ${output}=    Output    response
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Set Suite Variable    ${response}    ${output}



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




*** Test Cases ***
*** Test Cases ***

TC_MEC_SRV_UEAREASUB_001_OK
TC_MEC_SRV_UEAREASUB_001_OK
    [Documentation]
    [Documentation]
    ...    Check that the IUT acknowledges the UE area change subscription request when
    ...    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
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.11
    ...    OpenAPI    # TODO check this
    ...    OpenAPI    # TODO check this


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




*** Variables ***
${response}



*** Test Cases ***
*** Test Cases ***


@@ -22,10 +25,12 @@ TC_MEC_SRV_UEDISTLOOK_001_OK
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.9
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.9
    ...    OpenAPI    # TODO check this
    ...    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    {"Accept":"application/json"}
    Set Headers    {"Authorization":"${TOKEN}"}
    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}
    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 Status Code Is    200
    Check HTTP Response Body Json Schema Is    TerminalDistance
    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    {"Accept":"application/json"}
    Set Headers    {"Authorization":"${TOKEN}"}
    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}
    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
    Check HTTP Response Status Code Is    400
+1 −1
Original line number Original line 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
    ...    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
    ...    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}
    Get list of users with filter    address    ${ACR_ADDRESS}
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    UserList
    Check HTTP Response Body Json Schema Is    UserList
Loading