Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MEC - Multi-access Edge Computing
MEC Robot Test Suite
Commits
52b025e9
Commit
52b025e9
authored
Jul 12, 2019
by
Yann Garcia
Browse files
Validate MEC simulator for UETAG
parent
28af908b
Changes
3
Hide whitespace changes
Inline
Side-by-side
SRV/UETAG/PlatUeIdentity.robot
View file @
52b025e9
[Documentation] robot --outputdir ./outputs ./SRV/UETAG/PlatUeIdentity.robot
''
[Documentation] robot --outputdir ./outputs ./SRV/UETAG/PlatUeIdentity.robot
...
Test
Suite
to
validate
UE
Identity
Tag
(UETAG)
operations.
*** Settings ***
...
...
@@ -14,9 +14,9 @@ Default Tags TC_MEC_SRV_UETAG
*** 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
#
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
...
...
@@ -29,23 +29,23 @@ Get UeIdentity tag information
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
#
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
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
#
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}
'
UNREGISTERE
R'
Check
User Identity Tag state
${UE_IDENTITY_TAG}
UNREGISTERE
D
# 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
{
"u
serTagId":
${UE_IDENTITY_TAG}
,
"state":
"REGISTER
"
}
Check User Identity Tag state
${UE_IDENTITY_TAG}
'
REGISTERE
R'
Log
${UE_IDENTITY_TAG}
was registered successfully
Post
/exampleAPI/ui/v1/
${APP_INSTANCE_ID}
/ue_identity_tag_info
{"u
eIdentityTags":[{"ueIdentityTag":"UeTagA",
"state":"REGISTER
ED"}]
}
Check User Identity Tag state
${UE_IDENTITY_TAG}
REGISTERE
D
Log
${UE_IDENTITY_TAG}
was registered successfully
environment/variables.txt
View file @
52b025e9
*** Variables ***
${MEC-APP_SCHEMA} http
${MEC-APP_HOST} 192.168.0.
5
${MEC-APP_HOST} 192.168.0.
17
${MEC-APP_PORT} 8081
${ZONE_ID} zone01
${APP_INSTANCE_ID} appInst01
...
...
resources/GenericKeywords.robot
View file @
52b025e9
...
...
@@ -34,7 +34,7 @@ Check Location
Should Be Present In Json List
[
Arguments
]
${expr}
${json_field}
${json_value}
Log
Check if
${json_field}
is present in
${expr}
with the value
${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}
"
Log
Item found
${item}
...
...
@@ -52,7 +52,8 @@ Check User Identity Tag state
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
#
Log Check ueIdentityTagsList for ${UE_IDENTITY_TAG} element
${result}
=
Should Be Present In Json List
${response['body']['ueIdentityTagInfo']['ueIdentityTags']}
ueIdentityTag
${UE_IDENTITY_TAG}
Log
${UE_IDENTITY_TAG}
found with state
${result}
Should Be Equal
${result}
${state}
#Log ${UE_IDENTITY_TAG} found with state ${result}
Should Be Equal
${result}
[state]
${state}
[
return
]
${state}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment