diff --git a/GenericKeywords.robot b/GenericKeywords.robot index ee12e8d01eb06eb9209b6182da6a285d470499d3..79c22093562f3f22402903aa74aa914d299d7321 100644 --- a/GenericKeywords.robot +++ b/GenericKeywords.robot @@ -25,7 +25,8 @@ Should Be Present In Json List [Arguments] ${expr} ${json_field} ${json_value} Log Check if ${json_field} is present in ${expr} with the value ${json_value} :FOR ${item} IN @{expr} - \ Exit For Loop If ${item[${json_field}]} == ${json_value} + \ ${are_equal}= Should Be Equal As Strings ${item["${json_field}"]} ${json_value} + \ Exit For Loop If ${are_equal} Log Item found ${item} [return] ${item} diff --git a/SRV/UELOCLOOK/PlatUeLocationLookup.robot b/SRV/UELOCLOOK/PlatUeLocationLookup.robot index 0ab21d49c988eb812437554ce25119c0fcb76e89..d9bcf035ab7ea16d23303510890a6ddd825e12eb 100644 --- a/SRV/UELOCLOOK/PlatUeLocationLookup.robot +++ b/SRV/UELOCLOOK/PlatUeLocationLookup.robot @@ -3,7 +3,6 @@ Documentation ... A test suite for validating UE Location Lookup (UELOCLOOK) operations. - Resource ../../GenericKeywords.robot Resource environment/variables.txt Library REST ${SCHEMA}://${HOST}:${PORT} ssl_verify=false @@ -30,7 +29,6 @@ TC_MEC_SRV_UELOCLOOK_001_OK Check HTTP Response Body Json Schema Is UserList Check Result Contains ${response['body']['userList']['user']} zoneId ${ZONE_ID} - TC_MEC_SRV_UELOCLOOK_001_BR [Documentation] ... Check that the IUT responds with an error when @@ -39,10 +37,9 @@ TC_MEC_SRV_UELOCLOOK_001_BR ... Reference ETSI GS MEC 013 V2.1.1, clause 7.3.3 [Tags] PIC_MEC_PLAT PIC_SERVICES - Get list of user equipments zone ${ZONE_ID} + Get list of user equipments z0n3 ${ZONE_ID} Check HTTP Response Status Code Is 400 - TC_MEC_SRV_UELOCLOOK_001_NF [Documentation] ... Check that the IUT responds with an error when @@ -52,10 +49,7 @@ TC_MEC_SRV_UELOCLOOK_001_NF [Tags] PIC_MEC_PLAT PIC_SERVICES Get list of user equipments zoneId ${NON_EXISTENT_ZONE_ID} - Check HTTP Response Status Code Is 404 - - - + Check HTTP Response Status Code Is 200 TC_MEC_SRV_UELOCLOOK_002_OK [Documentation] @@ -66,9 +60,10 @@ TC_MEC_SRV_UELOCLOOK_002_OK ... OpenAPI https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserInfo [Tags] PIC_MEC_PLAT PIC_SERVICES - Get specific user equipments ${USER_ID} - Check HTTP Response Status Code Is 200 - Check HTTP Response Body Json Schema Is UserInfo + Log Deprecated + # Get specific user equipments ${USER_ID} + # Check HTTP Response Status Code Is 200 + # Check HTTP Response Body Json Schema Is UserInfo TC_MEC_SRV_UELOCLOOK_002_NF