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
3acc6586
Commit
3acc6586
authored
Sep 11, 2019
by
Yann Garcia
Browse files
Merge branch 'master' of
https://forge.etsi.org/gitlab/mec/gs032p3-robot-test-suite
parents
d63f49e9
ddf007ac
Changes
4
Hide whitespace changes
Inline
Side-by-side
SRV/AMS/AMSService.robot
View file @
3acc6586
...
...
@@ -45,7 +45,7 @@ Register a new application mobility services
[
Documentation
]
TP_MEC_SRV_AMS_002_OK
...
Check that the AMS service creates a new application mobility services when requested
...
ETSI GS MEC 021 2.0.8, clause 8.3.3.4
Create a new application mobility service
Registration
Request
Create a new application mobility service
Registration
Info
Check HTTP Response Status Code Is
201
Check HTTP Response Body Json Schema Is
AppMobilityServiceInfo
Log
Checking Postcondition
...
...
@@ -56,7 +56,7 @@ Register an UE Identity Tag using invalid parameter
[
Documentation
]
TP_MEC_SRV_AMS_002_BR
...
Check that the AMS service sends an error when it receives a malformed request to create a new application mobility service
...
ETSI GS MEC 021 2.0.8, clause 8.3.3.4
Create a new application mobility service
Registration
Request
Malformed
Create a new application mobility service
Registration
Info
Malformed
Check HTTP Response Status Code Is
400
...
...
@@ -69,7 +69,7 @@ Request Subscriptions List for the registered AMS services
...
ETSI GS MEC 021 2.0.8, clause 8.6.3.1
Get Subscriptions for registered AMS
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
SubscriptionLink
s
Check HTTP Response Body Json Schema Is
SubscriptionLink
List
...
...
@@ -218,7 +218,7 @@ Post Expire Notification
...
Check that the AMS service sends an AMS notification on subscription expiration
...
if the AMS service has an associated subscription and the event is generated
...
ETSI GS MEC 021 2.0.8, clause 7.4.4
${json}
=
Get File
schemas/Expir
e
Notification.schema.json
${json}
=
Get File
schemas/Expir
y
Notification.schema.json
Log
Creating mock request and response to handle Expire Notification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${json}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
...
...
examples/emptyschema/EmptySchema.robot
0 → 100644
View file @
3acc6586
*** Settings ***
Library
BuiltIn
Library
OperatingSystem
Library
JSONSchemaLibrary
schemas/
*** Test Cases ***
Testing Empty Schema Validation
${object}
=
Get File
jsons/test.json
${json}
=
Evaluate
json.loads('''
${object}
''')
json
Validate Json
EmptySchema.json
${json}
examples/emptyschema/jsons/test.json
0 → 100644
View file @
3acc6586
{
"test"
:
"empty schema test"
,
"result"
:
"should work with this json"
}
\ No newline at end of file
examples/emptyschema/schemas/EmptySchema.json
0 → 100644
View file @
3acc6586
{
"type"
:
"object"
,
"properties"
:
{
},
"required"
:
[]
}
\ No newline at end of file
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