Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
ebc7ed76
Commit
ebc7ed76
authored
Sep 30, 2019
by
Elian Kraja
Browse files
Added new sections 8.4 and 8.5 on MEC 021
parent
f8601eee
Pipeline
#1602
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
153 additions
and
17 deletions
+153
-17
SRV/AMS/AMSService.robot
SRV/AMS/AMSService.robot
+152
-16
SRV/AMS/environment/variables.txt
SRV/AMS/environment/variables.txt
+1
-1
No files found.
SRV/AMS/AMSService.robot
View file @
ebc7ed76
...
@@ -18,6 +18,7 @@ Request Registered AMS information
...
@@ -18,6 +18,7 @@ Request Registered AMS information
[
Documentation
]
TP_MEC_SRV_AMS_001_OK
[
Documentation
]
TP_MEC_SRV_AMS_001_OK
...
Check that the AMS service returns information about the registered application mobility services when requested
...
Check that the AMS service returns information about the registered application mobility services when requested
...
ETSI GS MEC 021 2.0.8, clause 8.3.3.1
...
ETSI GS MEC 021 2.0.8, clause 8.3.3.1
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Get Registered AMS information
Get Registered AMS information
Check HTTP Response Status Code Is
200
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
AppMobilityServiceInfos
Check HTTP Response Body Json Schema Is
AppMobilityServiceInfos
...
@@ -27,6 +28,7 @@ Request Registered AMS information using attribute-selector
...
@@ -27,6 +28,7 @@ Request Registered AMS information using attribute-selector
[
Documentation
]
TP_MEC_SRV_AMS_001_OK
[
Documentation
]
TP_MEC_SRV_AMS_001_OK
...
Check that the AMS service returns information about the registered application mobility services when requested
...
Check that the AMS service returns information about the registered application mobility services when requested
...
ETSI GS MEC 021 2.0.8, clause 8.3.3.1
...
ETSI GS MEC 021 2.0.8, clause 8.3.3.1
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Get Registered AMS information using attribute-selector
appMobilityServiceId
${APP_MOBILITY_SERVICE_ID}
Get Registered AMS information using attribute-selector
appMobilityServiceId
${APP_MOBILITY_SERVICE_ID}
Check HTTP Response Status Code Is
200
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
AppMobilityServiceInfos
Check HTTP Response Body Json Schema Is
AppMobilityServiceInfos
...
@@ -37,6 +39,7 @@ Request Registered AMS information using bad parameters
...
@@ -37,6 +39,7 @@ Request Registered AMS information using bad parameters
[
Documentation
]
TP_MEC_SRV_AMS_001_BR
[
Documentation
]
TP_MEC_SRV_AMS_001_BR
...
Check that the AMS service returns an error when receives a query about a registered application mobility service with wrong parameters
...
Check that the AMS service returns an error when receives a query about a registered application mobility service with wrong parameters
...
ETSI GS MEC 021 2.0.8, clause 8.3.3.1
...
ETSI GS MEC 021 2.0.8, clause 8.3.3.1
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Get Registered AMS information using bad parameters
Get Registered AMS information using bad parameters
Check HTTP Response Status Code Is
400
Check HTTP Response Status Code Is
400
...
@@ -45,6 +48,7 @@ Register a new application mobility services
...
@@ -45,6 +48,7 @@ Register a new application mobility services
[
Documentation
]
TP_MEC_SRV_AMS_002_OK
[
Documentation
]
TP_MEC_SRV_AMS_002_OK
...
Check that the AMS service creates a new application mobility services when requested
...
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
...
ETSI GS MEC 021 2.0.8, clause 8.3.3.4
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Create a new application mobility service
RegistrationInfo
Create a new application mobility service
RegistrationInfo
Check HTTP Response Status Code Is
201
Check HTTP Response Status Code Is
201
Check HTTP Response Body Json Schema Is
AppMobilityServiceInfo
Check HTTP Response Body Json Schema Is
AppMobilityServiceInfo
...
@@ -56,6 +60,7 @@ Register an UE Identity Tag using invalid parameter
...
@@ -56,6 +60,7 @@ Register an UE Identity Tag using invalid parameter
[
Documentation
]
TP_MEC_SRV_AMS_002_BR
[
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
...
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
...
ETSI GS MEC 021 2.0.8, clause 8.3.3.4
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Create a new application mobility service
RegistrationInfoMalformed
Create a new application mobility service
RegistrationInfoMalformed
Check HTTP Response Status Code Is
400
Check HTTP Response Status Code Is
400
...
@@ -67,6 +72,7 @@ Request Subscriptions List for the registered AMS services
...
@@ -67,6 +72,7 @@ Request Subscriptions List for the registered AMS services
...
- MobilityProcedureSubscription
...
- MobilityProcedureSubscription
...
- AdjacentAppInfoSubscription"
...
- AdjacentAppInfoSubscription"
...
ETSI GS MEC 021 2.0.8, clause 8.6.3.1
...
ETSI GS MEC 021 2.0.8, clause 8.6.3.1
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Get Subscriptions for registered AMS
Get Subscriptions for registered AMS
Check HTTP Response Status Code Is
200
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
SubscriptionLinkList
Check HTTP Response Body Json Schema Is
SubscriptionLinkList
...
@@ -76,6 +82,7 @@ Request Subscriptions List for the registered AMS services
...
@@ -76,6 +82,7 @@ Request Subscriptions List for the registered AMS services
Request Subscription List for registered AMS Services using wrong attribute parameters
Request Subscription List for registered AMS Services using wrong attribute parameters
[
Documentation
]
TP_MEC_SRV_AMS_003_BR
[
Documentation
]
TP_MEC_SRV_AMS_003_BR
...
Check that the AMS service sends an error when it receives a malformed query about the available subscriptions
...
Check that the AMS service sends an error when it receives a malformed query about the available subscriptions
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Get Subscriptions for registered AMS with wrong attbirube parameter
Get Subscriptions for registered AMS with wrong attbirube parameter
Check HTTP Response Status Code Is
400
Check HTTP Response Status Code Is
400
...
@@ -88,6 +95,7 @@ Create a notification subscription
...
@@ -88,6 +95,7 @@ Create a notification subscription
...
- MobilityProcedureSubscription
...
- MobilityProcedureSubscription
...
- AdjacentAppInfoSubscription"
...
- AdjacentAppInfoSubscription"
...
ETSI GS MEC 021 2.0.8, clause 8.6.3.4
...
ETSI GS MEC 021 2.0.8, clause 8.6.3.4
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Post a new notification subscription
NotificationSubscription
Post a new notification subscription
NotificationSubscription
Check HTTP Response Status Code Is
201
Check HTTP Response Status Code Is
201
Check HTTP Response Body Json Schema Is
NotificationSubscription
Check HTTP Response Body Json Schema Is
NotificationSubscription
...
@@ -100,6 +108,7 @@ Create a notification subscription with wrong attribute parameter
...
@@ -100,6 +108,7 @@ Create a notification subscription with wrong attribute parameter
...
- MobilityProcedureSubscription
...
- MobilityProcedureSubscription
...
- AdjacentAppInfoSubscription"
...
- AdjacentAppInfoSubscription"
...
ETSI GS MEC 021 2.0.8, clause 8.6.3.4
...
ETSI GS MEC 021 2.0.8, clause 8.6.3.4
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Post a new notification subscription
NotificationSubscriptionError
Post a new notification subscription
NotificationSubscriptionError
Check HTTP Response Status Code Is
400
Check HTTP Response Status Code Is
400
...
@@ -112,6 +121,7 @@ Request a specific subscription
...
@@ -112,6 +121,7 @@ Request a specific subscription
...
- MobilityProcedureSubscription
...
- MobilityProcedureSubscription
...
- AdjacentAppInfoSubscription"
...
- AdjacentAppInfoSubscription"
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.1
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.1
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Get individual subscription for AMS services
${SUBSCRIPTION_ID}
Get individual subscription for AMS services
${SUBSCRIPTION_ID}
Check HTTP Response Status Code Is
200
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
NotificationSubscription
Check HTTP Response Body Json Schema Is
NotificationSubscription
...
@@ -123,6 +133,7 @@ Request a specific subscription using wrong identifier
...
@@ -123,6 +133,7 @@ Request a specific subscription using wrong identifier
[
Documentation
]
TP_MEC_SRV_AMS_005_NF
[
Documentation
]
TP_MEC_SRV_AMS_005_NF
...
Check that the AMS service returns an error when receives a query about a not existing subscription
...
Check that the AMS service returns an error when receives a query about a not existing subscription
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.1
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.1
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Get individual subscription for AMS services
${NON_EXISTENT_SUBSCRIPTION_ID}
Get individual subscription for AMS services
${NON_EXISTENT_SUBSCRIPTION_ID}
Check HTTP Response Status Code Is
404
Check HTTP Response Status Code Is
404
...
@@ -135,6 +146,7 @@ Modify a specific subscription
...
@@ -135,6 +146,7 @@ Modify a specific subscription
...
- MobilityProcedureSubscription
...
- MobilityProcedureSubscription
...
- AdjacentAppInfoSubscription
...
- AdjacentAppInfoSubscription
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.2
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.2
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Update individual subscription for AMS services
${SUBSCRIPTION_ID}
NotificationSubscription
Update individual subscription for AMS services
${SUBSCRIPTION_ID}
NotificationSubscription
Check HTTP Response Status Code Is
200
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
NotificationSubscription
Check HTTP Response Body Json Schema Is
NotificationSubscription
...
@@ -148,6 +160,7 @@ Modify a specific subscription using malformed request
...
@@ -148,6 +160,7 @@ Modify a specific subscription using malformed request
...
- MobilityProcedureSubscription
...
- MobilityProcedureSubscription
...
- AdjacentAppInfoSubscription
...
- AdjacentAppInfoSubscription
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.2
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.2
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Update individual subscription for AMS services
${SUBSCRIPTION_ID}
NotificationSubscriptionError
Update individual subscription for AMS services
${SUBSCRIPTION_ID}
NotificationSubscriptionError
Check HTTP Response Status Code Is
400
Check HTTP Response Status Code Is
400
...
@@ -156,6 +169,7 @@ Modify a specific subscription using wrong identifier
...
@@ -156,6 +169,7 @@ Modify a specific subscription using wrong identifier
[
Documentation
]
TP_MEC_SRV_AMS_007_NF
[
Documentation
]
TP_MEC_SRV_AMS_007_NF
...
Check that the AMS service sends an error when it receives a modify request for a not existing subscription.
...
Check that the AMS service sends an error when it receives a modify request for a not existing subscription.
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.2
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.2
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Update individual subscription for AMS services
${NON_EXISTENT_SUBSCRIPTION_ID}
NotificationSubscription
Update individual subscription for AMS services
${NON_EXISTENT_SUBSCRIPTION_ID}
NotificationSubscription
Check HTTP Response Status Code Is
404
Check HTTP Response Status Code Is
404
...
@@ -164,6 +178,7 @@ Remove a specific subscription
...
@@ -164,6 +178,7 @@ Remove a specific subscription
[
Documentation
]
TP_MEC_SRV_AMS_006_OK
[
Documentation
]
TP_MEC_SRV_AMS_006_OK
...
Check that the AMS service deletes a given subscription when requested
...
Check that the AMS service deletes a given subscription when requested
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.5
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.5
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Delete individual subscription for AMS services
${SUBSCRIPTION_ID}
Delete individual subscription for AMS services
${SUBSCRIPTION_ID}
Check HTTP Response Status Code Is
204
Check HTTP Response Status Code Is
204
...
@@ -172,6 +187,7 @@ Remove a specific subscription using wrong identifier
...
@@ -172,6 +187,7 @@ Remove a specific subscription using wrong identifier
[
Documentation
]
TP_MEC_SRV_AMS_006_NF
[
Documentation
]
TP_MEC_SRV_AMS_006_NF
...
Check that the AMS service sends an error when it receives a delete request for a not existing subscription
...
Check that the AMS service sends an error when it receives a delete request for a not existing subscription
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.5
...
ETSI GS MEC 021 2.0.8, clause 8.7.3.5
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Delete individual subscription for AMS services
${NON_EXISTENT_SUBSCRIPTION_ID}
Delete individual subscription for AMS services
${NON_EXISTENT_SUBSCRIPTION_ID}
Check HTTP Response Status Code Is
404
Check HTTP Response Status Code Is
404
...
@@ -182,6 +198,7 @@ Post Mobility Procedure Notification
...
@@ -182,6 +198,7 @@ Post Mobility Procedure Notification
...
Check that the AMS service sends an AMS notification
about a mobility procedure
...
Check that the AMS service sends an AMS notification
about a mobility procedure
...
if the AMS service has an associated subscription and the event is generated
...
if the AMS service has an associated subscription and the event is generated
...
ETSI GS MEC 021 2.0.8, clause 7.4.2
...
ETSI GS MEC 021 2.0.8, clause 7.4.2
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
${json}
=
Get File
schemas/MobilityProcedureNotification.schema.json
${json}
=
Get File
schemas/MobilityProcedureNotification.schema.json
Log
Creating mock request and response to handle
Mobility Procedure Notification
Log
Creating mock request and response to handle
Mobility Procedure Notification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${json}
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${json}
...
@@ -200,6 +217,7 @@ Post Adjacent Application Info Notification
...
@@ -200,6 +217,7 @@ Post Adjacent Application Info Notification
...
Check that the AMS service sends an AMS notification about adjacent application instances
...
Check that the AMS service sends an AMS notification about adjacent application instances
...
if the AMS service has an associated subscription and the event is generated
...
if the AMS service has an associated subscription and the event is generated
...
ETSI GS MEC 021 2.0.8, clause 7.4.3
...
ETSI GS MEC 021 2.0.8, clause 7.4.3
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
${json}
=
Get File
schemas/AdjacentAppInfoNotification.schema.json
${json}
=
Get File
schemas/AdjacentAppInfoNotification.schema.json
Log
Creating mock request and response to handle Adjacent Application Info Notification
Log
Creating mock request and response to handle Adjacent Application Info Notification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${json}
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${json}
...
@@ -218,6 +236,7 @@ Post Expire Notification
...
@@ -218,6 +236,7 @@ Post Expire Notification
...
Check that the AMS service sends an AMS notification on subscription expiration
...
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
...
if the AMS service has an associated subscription and the event is generated
...
ETSI GS MEC 021 2.0.8, clause 7.4.4
...
ETSI GS MEC 021 2.0.8, clause 7.4.4
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
${json}
=
Get File
schemas/ExpiryNotification.schema.json
${json}
=
Get File
schemas/ExpiryNotification.schema.json
Log
Creating mock request and response to handle Expire Notification
Log
Creating mock request and response to handle Expire Notification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${json}
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${json}
...
@@ -231,11 +250,100 @@ Post Expire Notification
...
@@ -231,11 +250,100 @@ Post Expire Notification
Request a specific AMS service
[
Documentation
]
TP_MEC_SRV_AMS_011_OK
...
Check that the AMS service returns information about this individual application mobility service
...
ETSI GS MEC 021 2.0.10, clause 8.4.3.1
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Get specific AMS service
${APP_MOBILITY_SERVICE_ID}
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
AppMobilityServiceInfo
Request a specific AMS Service using non existent identifier
[
Documentation
]
TP_MEC_SRV_AMS_011_NF
...
Check that the AMS service sends an error when receives a query about a not existing individual application mobility service
...
ETSI GS MEC 021 2.0.10, clause 8.4.3.1
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Get specific AMS service
${NON_EXISTENT_APP_MOBILITY_SERVICE_ID}
Check HTTP Response Status Code Is
404
Modify a specific AMS service
[
Documentation
]
TP_MEC_SRV_AMS_012_OK
...
Check that the AMS service modifies the individual application mobility service when requested
...
ETSI GS MEC 021 2.0.10, clause 8.4.3.2
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Modify a specific AMS service
${APP_MOBILITY_SERVICE_ID}
RegistrationInfo
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
AppMobilityServiceInfo
Check Result Contains
${response['registeredAppMobilityService']['serviceConsumerId']}
appInstanceId
${APP_INS_ID}
Modify a specific AMS Service using non existent identifier
[
Documentation
]
TP_MEC_SRV_AMS_012_NF
...
Check that the AMS service sends an error when receives a request to modify a not existing individual application mobility service
...
ETSI GS MEC 021 2.0.10, clause 8.4.3.2
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Modify a specific AMS service
${NON_EXISTENT_APP_MOBILITY_SERVICE_ID}
RegistrationInfo
Check HTTP Response Status Code Is
404
Modify a specific AMS Service using bad parameters
[
Documentation
]
TP_MEC_SRV_AMS_012_BR
...
Check that the AMS service sends an error when receives a request to modify a individual application mobility service using bad parameters
...
ETSI GS MEC 021 2.0.10, clause 8.4.3.2
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Modify a specific AMS service
${APP_MOBILITY_SERVICE_ID}
RegistrationInfoWithError
Check HTTP Response Status Code Is
400
Remove a specific AMS service
[
Documentation
]
TP_MEC_SRV_AMS_013_OK
...
Check that the AMS service de-register the individual application mobility service and delete the resource
...
that represents the individual application mobility service
...
ETSI GS MEC 021 2.0.10, clause 8.4.3.5
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Delete specific AMS service
${APP_MOBILITY_SERVICE_ID}
Check HTTP Response Status Code Is
204
Remove a specific AMS Service using non existent identifier
[
Documentation
]
TP_MEC_SRV_AMS_013_NF
...
Check that the AMS service sends an error when is requested to delete the resource
...
that represents the individual application mobility service
...
ETSI GS MEC 021 2.0.10, clause 8.4.3.5
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Delete specific AMS service
${NON_EXISTENT_APP_MOBILITY_SERVICE_ID}
Check HTTP Response Status Code Is
404
Request to deregister a specific AMS service
[
Documentation
]
TP_MEC_SRV_AMS_014_OK
...
Check that the AMS service deregister an individual application mobility service on expiry of the timer associated with the service
...
ETSI GS MEC 021 2.0.10, clause 8.5.3.4
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Deregister specific AMS service
${APP_MOBILITY_SERVICE_ID}
Check HTTP Response Status Code Is
204
Request to deregister a specific AMS service using non existent identifier
[
Documentation
]
TP_MEC_SRV_AMS_014_NF
...
Check that the AMS service send an error when is requested to deregister a not existent individual application mobility service
...
ETSI GS MEC 021 2.0.10, clause 8.5.3.4
[
Tags
]
PIC_AMS
INCLUDE_UNDEFINED_SCHEMAS
Deregister specific AMS service
${NON_EXISTENT_APP_MOBILITY_SERVICE_ID}
Check HTTP Response Status Code Is
404
*** Keywords ***
*** Keywords ***
Get Registered AMS information
Get Registered AMS information
Should Be True
${PIC_AMS}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/appMobilityServices
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/appMobilityServices
${output}
=
Output
response
${output}
=
Output
response
...
@@ -243,28 +351,61 @@ Get Registered AMS information
...
@@ -243,28 +351,61 @@ Get Registered AMS information
Get Registered AMS information using attribute-selector
Get Registered AMS information using attribute-selector
[
Arguments
]
${key}
${value}
[
Arguments
]
${key}
${value}
Should Be True
${PIC_AMS}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/appMobilityServices?
${key}
=
${value}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/appMobilityServices?
${key}
=
${value}
${output}
=
Output
response
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
Get specific AMS service
[
Arguments
]
${amsId}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/appMobilityServices/
${amsId}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Get Registered AMS information using bad parameters
Get Registered AMS information using bad parameters
Should Be True
${PIC_AMS}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/appMobilityServices?appMobilityService=
${APP_MOBILITY_SERVICE_ID}
//param should be appMobilityServiceId
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/appMobilityServices?appMobilityService=
${APP_MOBILITY_SERVICE_ID}
//param should be appMobilityServiceId
${output}
=
Output
response
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
Modify a specific AMS service
[
Arguments
]
${amsId}
${content}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Put
${apiRoot}
/
${apiName}
/
${apiVersion}
/appMobilityServices/
${amsId}
${content}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Delete specific AMS service
[
Arguments
]
${amsId}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiVersion}
/appMobilityServices/
${amsId}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Deregister specific AMS service
[
Arguments
]
${amsId}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
POST
${apiRoot}
/
${apiName}
/
${apiVersion}
/appMobilityServices/
${amsId}
/deregisterTask
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Create a new application mobility service
Create a new application mobility service
[
Arguments
]
${content}
[
Arguments
]
${content}
Should Be True
${PIC_AMS}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Authorization":"
${TOKEN}
"}
...
@@ -276,7 +417,6 @@ Create a new application mobility service
...
@@ -276,7 +417,6 @@ Create a new application mobility service
Get Subscriptions for registered AMS
Get Subscriptions for registered AMS
Should Be True
${PIC_AMS}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions
...
@@ -286,7 +426,6 @@ Get Subscriptions for registered AMS
...
@@ -286,7 +426,6 @@ Get Subscriptions for registered AMS
Get Subscriptions for registered AMS with wrong attbirube parameter
Get Subscriptions for registered AMS with wrong attbirube parameter
Should Be True
${PIC_AMS}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions?subscriptionTyp=
${SUBSCRIPTION_TYPE}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions?subscriptionTyp=
${SUBSCRIPTION_TYPE}
...
@@ -297,7 +436,6 @@ Get Subscriptions for registered AMS with wrong attbirube parameter
...
@@ -297,7 +436,6 @@ Get Subscriptions for registered AMS with wrong attbirube parameter
Post a new notification subscription
Post a new notification subscription
[
Arguments
]
${content}
[
Arguments
]
${content}
Should Be True
${PIC_AMS}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Authorization":"
${TOKEN}
"}
...
@@ -311,7 +449,6 @@ Post a new notification subscription
...
@@ -311,7 +449,6 @@ Post a new notification subscription
Get individual subscription for AMS services
Get individual subscription for AMS services
[
Arguments
]
${content}
[
Arguments
]
${content}
Should Be True
${PIC_AMS}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${content}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${content}
...
@@ -321,7 +458,7 @@ Get individual subscription for AMS services
...
@@ -321,7 +458,7 @@ Get individual subscription for AMS services
Delete individual subscription for AMS services
Delete individual subscription for AMS services
[
Arguments
]
${content}
[
Arguments
]
${content}
S
hould Be True
${PIC_AMS}
=
= 1
S
et Headers
{"Accept":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${content}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${content}
${output}
=
Output
response
${output}
=
Output
response
...
@@ -330,7 +467,6 @@ Delete individual subscription for AMS services
...
@@ -330,7 +467,6 @@ Delete individual subscription for AMS services
Update individual subscription for AMS services
Update individual subscription for AMS services
[
Arguments
]
${identifier}
${content}
[
Arguments
]
${identifier}
${content}
Should Be True
${PIC_AMS}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Authorization":"
${TOKEN}
"}
...
...
SRV/AMS/environment/variables.txt
View file @
ebc7ed76
...
@@ -15,7 +15,7 @@ ${APP_INS_ID} 5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f
...
@@ -15,7 +15,7 @@ ${APP_INS_ID} 5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f
${SUBSCRIPTION_TYPE} MobilityProcedureSubscription
${SUBSCRIPTION_TYPE} MobilityProcedureSubscription
${SUBSCRIPTION_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3
${SUBSCRIPTION_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3
${NON_EXISTENT_SUBSCRIPTION_ID} NON_EXISTENT_SUBSCRIPTION_ID
${NON_EXISTENT_SUBSCRIPTION_ID} NON_EXISTENT_SUBSCRIPTION_ID
${NON_EXISTENT_APP_MOBILITY_SERVICE_ID} NON_EXISTENT_APP_MOBILITY_SERVICE_ID
# Notifications variables
# Notifications variables
${MOCK_SERVER_JAR} ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar
${MOCK_SERVER_JAR} ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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