Loading MEC013/SRV/UEINFOLOOK/PlatUeInformationLookup.robot +78 −24 Original line number Diff line number Diff line Loading @@ -14,50 +14,104 @@ Default Tags TC_MEC_SRV_UEINFOLOOK *** Test Cases *** TC_MEC_MEC013_SRV_UEINFOLOOK_001_OK TC_MEC_MEC013_SRV_UEINFLOOK_001_OK_01 [Documentation] ... Check that the IUT responds with the information pertaining to one or more UEs in a particular location ... when queried by a MEC Application ... ... 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 ... when queried by a MEC Application - No Filter ... Reference ETSI GS MEC 013 3.1.1 Clause 5.3.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.5 ... ETSI GS MEC 013 3.1.1 Clause 7.4.3.1 [Tags] PIC_MEC_PLAT PIC_SERVICES INCLUDE_UNDEFINED_SCHEMAS [Tags] PIC_MEC_PLAT PIC_SERVICES Get list of users Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is UserList TC_MEC_MEC013_SRV_UEINFLOOK_001_OK_02 [Documentation] ... Check that the IUT responds with the information pertaining to one or more UEs in a particular location ... when queried by a MEC Application - Filter with one address ... Reference ETSI GS MEC 013 3.1.1 Clause 5.3.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.5 ... ETSI GS MEC 013 3.1.1 Clause 7.4.3.1 [Tags] PIC_MEC_PLAT PIC_SERVICES Get list of users with filter address ${ACR_ADDRESS} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is UserList TC_MEC_MEC013_SRV_UEINFOLOOK_001_BR TC_MEC_MEC013_SRV_UEINFLOOK_001_OK_03 [Documentation] ... Check that the IUT responds with an error when ... a request with incorrect parameters is sent by a MEC Application ... ... Reference ETSI GS MEC 013 V2.1.1, clause 7.3.3 ... Check that the IUT responds with the information pertaining to one or more UEs in a particular location ... when queried by a MEC Application - Filter with several addresses ... Reference ETSI GS MEC 013 3.1.1 Clause 5.3.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.5 ... ETSI GS MEC 013 3.1.1 Clause 7.4.3.1 [Tags] PIC_MEC_PLAT PIC_SERVICES Get list of users with filter address ${ACR_ADDRESS},${ACR_ADDRESS2} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is UserList TC_MEC_MEC013_SRV_UEINFLOOK_001_OK_04 [Documentation] ... Check that the IUT responds with the information pertaining to one or more UEs in a particular location ... when queried by a MEC Application - Filter with several zoneIds ... Reference ETSI GS MEC 013 3.1.1 Clause 5.3.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.5 ... ETSI GS MEC 013 3.1.1 Clause 7.4.3.1 [Tags] PIC_MEC_PLAT PIC_SERVICES Get list of users with filter zoneId ${ZONE_ID} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is UserList TC_MEC_MEC013_SRV_UEINFLOOK_001_BR [Documentation] ... Check that the IUT responds with the information pertaining to one or more UEs in a particular location ... when queried by a MEC Application - Filter with several zoneIds ... Reference ETSI GS MEC 013 3.1.1 Clause 5.3.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.5 ... ETSI GS MEC 013 3.1.1 Clause 7.4.3.1 [Tags] PIC_MEC_PLAT PIC_SERVICES Get list of users with filter addr ${ACR_ADDRESS} Check HTTP Response Status Code Is 400 TC_MEC_MEC013_SRV_UEINFOLOOK_001_NF TC_MEC_MEC013_SRV_UEINFLOOK_001_NF [Documentation] ... Check that the IUT responds with an error when ... a request for an unknown URI is sent by a MEC Application ... ... 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 ... ETSI GS MEC 013 3.1.1 Clause 6.2.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.5 ... ETSI GS MEC 013 3.1.1 Clause 7.4.3.1 [Tags] PIC_MEC_PLAT PIC_SERVICES Get list of users with filter address ${ACR_UNKNOWN_IP} Check HTTP Response Status Code Is 200 # TODO add check that list is empty Check HTTP Response Status Code Is 404 *** Keywords *** Get list of users Set Headers {"Accept":"application/json"} Set Headers {"Authorization":"${TOKEN}"} Get ${apiRoot}/${apiName}/${apiVersion}/queries/users ${output}= Output response Set Suite Variable ${response} ${output} Get list of users with filter [Arguments] ${key} ${value} [Arguments] ${key} ${values} Set Headers {"Accept":"application/json"} Set Headers {"Authorization":"${TOKEN}"} Get ${apiRoot}/${apiName}/${apiVersion}/queries/users?${key}=${value} Get ${apiRoot}/${apiName}/${apiVersion}/queries/users?${key}=${values} ${output}= Output response Set Suite Variable ${response} ${output} MEC013/SRV/UEINFOLOOK/environment/variables.txt +5 −2 Original line number Diff line number Diff line *** Variables *** # Generic variables ${SCHEMA} http ${HOST} 10.192.2.172 ${HOST} 127.0.0.1 ${PORT} 8081 ${response} {} ${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l ${apiRoot} ${apiName} location ${apiVersion} v2 ${apiVersion} v3 # Specific variables ${ACR_ADDRESS} acr:10.0.0.3 ${ACR_ADDRESS2} acr:10.0.0.4 ${ZONE_ID} zone001 ${ZONE_ID2} zone002 ${ACR_UNKNOWN_IP} acr:192.168.5.1.1 MEC013/SRV/UEINFOLOOK/schemas/UserList.schema.json +553 −173 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
MEC013/SRV/UEINFOLOOK/PlatUeInformationLookup.robot +78 −24 Original line number Diff line number Diff line Loading @@ -14,50 +14,104 @@ Default Tags TC_MEC_SRV_UEINFOLOOK *** Test Cases *** TC_MEC_MEC013_SRV_UEINFOLOOK_001_OK TC_MEC_MEC013_SRV_UEINFLOOK_001_OK_01 [Documentation] ... Check that the IUT responds with the information pertaining to one or more UEs in a particular location ... when queried by a MEC Application ... ... 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 ... when queried by a MEC Application - No Filter ... Reference ETSI GS MEC 013 3.1.1 Clause 5.3.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.5 ... ETSI GS MEC 013 3.1.1 Clause 7.4.3.1 [Tags] PIC_MEC_PLAT PIC_SERVICES INCLUDE_UNDEFINED_SCHEMAS [Tags] PIC_MEC_PLAT PIC_SERVICES Get list of users Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is UserList TC_MEC_MEC013_SRV_UEINFLOOK_001_OK_02 [Documentation] ... Check that the IUT responds with the information pertaining to one or more UEs in a particular location ... when queried by a MEC Application - Filter with one address ... Reference ETSI GS MEC 013 3.1.1 Clause 5.3.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.5 ... ETSI GS MEC 013 3.1.1 Clause 7.4.3.1 [Tags] PIC_MEC_PLAT PIC_SERVICES Get list of users with filter address ${ACR_ADDRESS} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is UserList TC_MEC_MEC013_SRV_UEINFOLOOK_001_BR TC_MEC_MEC013_SRV_UEINFLOOK_001_OK_03 [Documentation] ... Check that the IUT responds with an error when ... a request with incorrect parameters is sent by a MEC Application ... ... Reference ETSI GS MEC 013 V2.1.1, clause 7.3.3 ... Check that the IUT responds with the information pertaining to one or more UEs in a particular location ... when queried by a MEC Application - Filter with several addresses ... Reference ETSI GS MEC 013 3.1.1 Clause 5.3.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.5 ... ETSI GS MEC 013 3.1.1 Clause 7.4.3.1 [Tags] PIC_MEC_PLAT PIC_SERVICES Get list of users with filter address ${ACR_ADDRESS},${ACR_ADDRESS2} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is UserList TC_MEC_MEC013_SRV_UEINFLOOK_001_OK_04 [Documentation] ... Check that the IUT responds with the information pertaining to one or more UEs in a particular location ... when queried by a MEC Application - Filter with several zoneIds ... Reference ETSI GS MEC 013 3.1.1 Clause 5.3.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.5 ... ETSI GS MEC 013 3.1.1 Clause 7.4.3.1 [Tags] PIC_MEC_PLAT PIC_SERVICES Get list of users with filter zoneId ${ZONE_ID} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is UserList TC_MEC_MEC013_SRV_UEINFLOOK_001_BR [Documentation] ... Check that the IUT responds with the information pertaining to one or more UEs in a particular location ... when queried by a MEC Application - Filter with several zoneIds ... Reference ETSI GS MEC 013 3.1.1 Clause 5.3.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.5 ... ETSI GS MEC 013 3.1.1 Clause 7.4.3.1 [Tags] PIC_MEC_PLAT PIC_SERVICES Get list of users with filter addr ${ACR_ADDRESS} Check HTTP Response Status Code Is 400 TC_MEC_MEC013_SRV_UEINFOLOOK_001_NF TC_MEC_MEC013_SRV_UEINFLOOK_001_NF [Documentation] ... Check that the IUT responds with an error when ... a request for an unknown URI is sent by a MEC Application ... ... 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 ... ETSI GS MEC 013 3.1.1 Clause 6.2.2 ... ETSI GS MEC 013 3.1.1 Clause 6.2.5 ... ETSI GS MEC 013 3.1.1 Clause 7.4.3.1 [Tags] PIC_MEC_PLAT PIC_SERVICES Get list of users with filter address ${ACR_UNKNOWN_IP} Check HTTP Response Status Code Is 200 # TODO add check that list is empty Check HTTP Response Status Code Is 404 *** Keywords *** Get list of users Set Headers {"Accept":"application/json"} Set Headers {"Authorization":"${TOKEN}"} Get ${apiRoot}/${apiName}/${apiVersion}/queries/users ${output}= Output response Set Suite Variable ${response} ${output} Get list of users with filter [Arguments] ${key} ${value} [Arguments] ${key} ${values} Set Headers {"Accept":"application/json"} Set Headers {"Authorization":"${TOKEN}"} Get ${apiRoot}/${apiName}/${apiVersion}/queries/users?${key}=${value} Get ${apiRoot}/${apiName}/${apiVersion}/queries/users?${key}=${values} ${output}= Output response Set Suite Variable ${response} ${output}
MEC013/SRV/UEINFOLOOK/environment/variables.txt +5 −2 Original line number Diff line number Diff line *** Variables *** # Generic variables ${SCHEMA} http ${HOST} 10.192.2.172 ${HOST} 127.0.0.1 ${PORT} 8081 ${response} {} ${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l ${apiRoot} ${apiName} location ${apiVersion} v2 ${apiVersion} v3 # Specific variables ${ACR_ADDRESS} acr:10.0.0.3 ${ACR_ADDRESS2} acr:10.0.0.4 ${ZONE_ID} zone001 ${ZONE_ID2} zone002 ${ACR_UNKNOWN_IP} acr:192.168.5.1.1
MEC013/SRV/UEINFOLOOK/schemas/UserList.schema.json +553 −173 File changed.Preview size limit exceeded, changes collapsed. Show changes