[Documentation] robot --outputdir ./outputs .SRV/UETAG/PlatUeIdentity.robot ... Test Suite to validate UE Identity Tag (UETAG) operations. *** Settings *** Resource environment/variables.txt Resource resources/GenericKeywords.robot Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_verify=false Default Tags TC_MEC_SRV_UETAG *** Variables *** *** Test Cases *** Get UeIdentity tag information [Documentation] TC_MEC_SRV_UETAG_001_OK ... Check that the IUT responds with the information on a UE Identity tag when queried by a MEC Application ... Reference ETSI GS MEC 014 V1.1.1, clause 7.3.3.1 ... Reference https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/UeIdentityTagInfo [Tags] TP_MEC_SRV_UETAG_001_OK TP_MEC_SRV_UETAG Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"Basic YWxhZGRpbjpvcGVuc2VzYW1l"} Set Headers {"Content-Length":"0"} Get /exampleAPI/ui/v1/${APP_INSTANCE_ID}/ue_identity_tag_info?ueIdentityTag=${UE_IDENTITY_TAG} ${output}= Output response Set Suite Variable ${response} ${output} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is ueIdentityTagInfo Log Check ueIdentityTagsList for ${UE_IDENTITY_TAG} element Should Be Present In Json List ${response['body']['ueIdentityTagInfo']['ueIdentityTags']} ueIdentityTag ${UE_IDENTITY_TAG} Log ${UE_IDENTITY_TAG} found *** Test Cases *** Register a UE Identity tag [Documentation] TC_MEC_PLAT_UETAG_002_OK ... Check that the IUT registers a tag (representing a UE) or a list of tags when commanded by a MEC Application ... Reference ETSI GS MEC 014 V1.1.1, clause 7.3.3.2 ... Reference https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/UeIdentityTagInfo [Tags] TP_MEC_SRV_UETAG_002_OK TP_MEC_SRV_UETAG Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"Basic YWxhZGRpbjpvcGVuc2VzYW1l"} # Preamble: Check that the user tag is not registered Check tag user ${UE_IDENTITY_TAG} 'UNREGISTERER' # Test Body: Register the tag user and check that the IUT has registered the tag user Post /exampleAPI/ui/v1/${APP_INSTANCE_ID}/ue_identity_tag_info { "userTagId": ${UE_IDENTITY_TAG}, "state": "REGISTER" } Check tag user ${UE_IDENTITY_TAG} 'REGISTERER' Log ${UE_IDENTITY_TAG} was registered successfully