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
e9d6e38e
Commit
e9d6e38e
authored
Aug 05, 2019
by
Yann Garcia
Browse files
Enhance UETAG test cases
parent
bd1b7d9f
Changes
6
Show whitespace changes
Inline
Side-by-side
SRV/UETAG/PlatUeIdentity.robot
View file @
e9d6e38e
...
...
@@ -72,20 +72,21 @@ Unregister an UE Identity Tag already in unregistered state
*** Keywords ***
Get UE Identity Tag information
Should Be True
${PIC_MEC_PLAT}
=
=
'1'
Should Be True
${PIC_SERVICES}
=
=
'1'
Should Be True
${PIC_MEC_PLAT}
=
=
1
Should Be True
${PIC_SERVICES}
=
=
1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
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
Set Suite Variable
${response}
${output}
Get UE Identity Tag information using bad parameters
# FIXME Which IE protocol should be invalid?
Should Be True
${PIC_MEC_PLAT}
=
=
'1'
Should Be True
${PIC_SERVICES}
=
=
'1'
Should Be True
${PIC_MEC_PLAT}
=
=
1
Should Be True
${PIC_SERVICES}
=
=
1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
...
...
@@ -96,8 +97,8 @@ Get UE Identity Tag information using bad parameters
Get UE Identity Tag information using non-existent application instance
Should Be True
${PIC_MEC_PLAT}
=
=
'1'
Should Be True
${PIC_SERVICES}
=
=
'1'
Should Be True
${PIC_MEC_PLAT}
=
=
1
Should Be True
${PIC_SERVICES}
=
=
1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
...
...
@@ -109,14 +110,15 @@ Get UE Identity Tag information using non-existent application instance
Update an UE Identity Tag
[
Arguments
]
${content}
Should Be True
${PIC_MEC_PLAT}
=
=
'1'
Should Be True
${PIC_SERVICES}
=
=
'1'
Should Be True
${PIC_MEC_PLAT}
=
=
1
Should Be True
${PIC_SERVICES}
=
=
1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
## As far as I understood, we are not checking preconditions.
# Preamble: Check that the user tag is not registered
## Check User Identity Tag state ${UE_IDENTITY_TAG} UNREGISTERED
log
${content}
Put
/exampleAPI/ui/v1/
${APP_INSTANCE_ID}
/ue_identity_tag_info
${content}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -124,8 +126,8 @@ Update an UE Identity Tag
Update an UE Identity Tag using invalid state
[
Arguments
]
${content}
Should Be True
${PIC_MEC_PLAT}
=
=
'1'
Should Be True
${PIC_SERVICES}
=
=
'1'
Should Be True
${PIC_MEC_PLAT}
=
=
1
Should Be True
${PIC_SERVICES}
=
=
1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
...
...
@@ -137,8 +139,8 @@ Update an UE Identity Tag using invalid state
Update an UE Identity Tag using a not applicable valid state
[
Arguments
]
${content}
Should Be True
${PIC_MEC_PLAT}
=
=
'1'
Should Be True
${PIC_SERVICES}
=
=
'1'
Should Be True
${PIC_MEC_PLAT}
=
=
1
Should Be True
${PIC_SERVICES}
=
=
1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
...
...
@@ -148,4 +150,3 @@ Update an UE Identity Tag using a not applicable valid state
Set Suite Variable
${response}
${output}
# TODO Check ProblemDetails
\ No newline at end of file
SRV/UETAG/environment/pics.txt
View file @
e9d6e38e
SRV/UETAG/environment/variables.txt
View file @
e9d6e38e
...
...
@@ -2,7 +2,7 @@
${MEC-APP_SCHEMA} http
#${MEC-APP_HOST} 172.28.4.87
#${MEC-APP_HOST} 127.0.0.1
${MEC-APP_HOST} 1
0.192.2.172
${MEC-APP_HOST} 1
92.168.56.1
${MEC-APP_PORT} 8081
${ZONE_ID} zone01
${APP_INSTANCE_ID} appInst01
...
...
SRV/UETAG/resources/GenericKeywords.robot
View file @
e9d6e38e
...
...
@@ -33,7 +33,6 @@ Should Be Present In Json List
Log
Item found
${item}
[
return
]
${item}
Check Result Contains
[
Arguments
]
${source}
${parameter}
${value}
Should Be Present In Json List
${source}
${parameter}
${value}
SRV/UETAG/resources/UEidentityAPI.robot
View file @
e9d6e38e
...
...
@@ -9,8 +9,8 @@ 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'
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"}
...
...
schemas/UeIdentityTagInfo.schema.json
→
SRV/UETAG/
schemas/UeIdentityTagInfo.schema.json
View file @
e9d6e38e
File moved
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