Commit bd1b7d9f authored by Elian Kraja's avatar Elian Kraja

Refactoring folders. Updates on SRV/PlatUeIdentity file adding high level test...

Refactoring folders. Updates on SRV/PlatUeIdentity file adding high level test cases and moved low level code to specific keywords
parent 73ec70a5
This diff is collapsed.
*** Variables ***
${PIC_MEC_PLAT} 1
${PIC_SERVICES} 1
\ No newline at end of file
......@@ -10,3 +10,4 @@ ${NON_EXISTENT_APP_INSTANCE_ID} appInst99
${UE_IDENTITY_TAG} UeTagA
${UE_IDENTITY_TAG_INVALID_STATE} UeTagC
${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
......@@ -32,3 +32,8 @@ Should Be Present In Json List
\ Exit For Loop If "${item['${json_field}']}" == "${json_value}"
Log Item found ${item}
[return] ${item}
Check Result Contains
[Arguments] ${source} ${parameter} ${value}
Should Be Present In Json List ${source} ${parameter} ${value}
\ No newline at end of file
*** Settings ***
Resource ../environment/variables.txt
Resource UEidentityAPI.robot
Resource ../environment/pics.txt
Resource GenericKeywords.robot
Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_verify=false
Library JSONSchemaLibrary schemas/
*** Keywords ***
Check User Identity Tag state
[Arguments] ${ue_identity_tag} ${state}
Should Be True ${PIC_MEC_PLAT} == '1'
Should Be True ${PIC_SERVICES} == '1'
Log Check ueIdentityTag state ${state}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"Basic YWxhZGRpbjpvcGVuc2VzYW1l"}
Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Length":"0"}
Get /exampleAPI/ui/v1/${APP_INSTANCE_ID}/ue_identity_tag_info?ueIdentityTag=${ue_identity_tag}
${output}= Output response
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment