Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
MEC - Multi-access Edge Computing
MEC Robot Test Suite
Compare revisions
9a0b289ac4890afa6faf055cc9e5a151a0960df3...7b6322c98decdc095089c6bd430d7de1a75194fd
Commits (4)
Started implementation of TCs of Grant Operations in MEC010p2 v2.2.1 specification.
· e35a44f6
piscione
authored
Jan 05, 2022
e35a44f6
Implemented TCs for configure platform for App operation for MEC010p2 V2.2.1 specification.
· 416a9bcd
piscione
authored
Jan 05, 2022
416a9bcd
Minor fixes
· 26b35891
piscione
authored
Jan 05, 2022
26b35891
Implemented TCs for App Instance Management in MEC010p2 V2.2.1 specification.
· 7b6322c9
piscione
authored
Jan 05, 2022
7b6322c9
Expand all
Hide whitespace changes
Inline
Side-by-side
MEC010p2/MEO/GRANT/Grant.robot
View file @
7b6322c9
''[Documentation] robot --outputdir ./outputs ./
SRV/UETAG/PlatUeIdentity
.robot
''[Documentation] robot --outputdir ./outputs ./
Grant
.robot
...
Test
Suite
to
validate
UE
Identity
Tag
(UETAG)
operations.
...
Test
Suite
to
validate
Grant
operations.
*** Settings ***
*** Settings ***
Resource
environment/variables.txt
Resource
environment/variables.txt
...
@@ -11,12 +11,12 @@ Library OperatingSystem
...
@@ -11,12 +11,12 @@ Library OperatingSystem
*** Test Cases ***
*** Test Cases ***
T
C
_MEC_MEC010p2_MEO_GRANT_001_OK
T
P
_MEC_MEC010p2_MEO_GRANT_001_OK
[
Documentation
]
[
Documentation
]
...
Check that MEO sends a synchronous grant response when a grant request is requested
...
Check that MEO sends a synchronous grant response when a grant request is requested
...
ETSI GS MEC 010-2 2.
0
.1
0
, clause 7.
6
.1.3.1
...
ETSI GS MEC 010-2 2.
2
.1, clause 7.
5
.1.3.1
...
ETSI GS MEC 010-2 2.
0
.1
0
, Table 6.2.4.2.2-1 (GrantRequest)
...
ETSI GS MEC 010-2 2.
2
.1, Table 6.2.4.2.2-1 (GrantRequest)
...
ETSI GS MEC 010-2 2.
0
.1
0
, Table 6.2.4.4.2-1 (Grant)
...
ETSI GS MEC 010-2 2.
2
.1, Table 6.2.4.4.2-1 (Grant)
[
Tags
]
PIC_GRANTS_MANAGEMENT
INCLUDE_UNDEFINED_SCHEMAS
[
Tags
]
PIC_GRANTS_MANAGEMENT
INCLUDE_UNDEFINED_SCHEMAS
Create a GRANT request
grantRequest
Create a GRANT request
grantRequest
Check HTTP Response Status Code Is
201
Check HTTP Response Status Code Is
201
...
@@ -25,61 +25,57 @@ TC_MEC_MEC010p2_MEO_GRANT_001_OK
...
@@ -25,61 +25,57 @@ TC_MEC_MEC010p2_MEO_GRANT_001_OK
TC_MEC_MEC010p2_MEO_GRANT_001_BR
TP_MEC_MEC010p2_MEO_GRANT_001_BR
[
Documentation
]
TP_MEC_MEO_GRANT_001_BR
[
Documentation
]
TP_MEC_MEO_GRANT_001_BR
...
Check that MEO responds with an error when it receives a malformed request when a new grant request is performed
...
Check that MEO responds with an error when it receives a malformed request when a new grant request is performed
...
ETSI GS MEC 010-2 2.
0
.1
0
, clause 7.6.1.3.2
...
ETSI GS MEC 010-2 2.
2
.1, clause 7.6.1.3.2
...
ETSI GS MEC 010-2 2.
0
.1
0
, Table 6.2.4.4.2-1 (Grant)
...
ETSI GS MEC 010-2 2.
2
.1, Table 6.2.4.4.2-1 (Grant)
[
Tags
]
PIC_GRANTS_MANAGEMENT
INCLUDE_UNDEFINED_SCHEMAS
[
Tags
]
PIC_GRANTS_MANAGEMENT
INCLUDE_UNDEFINED_SCHEMAS
Create a GRANT request
grantRejectedRequest
Create a GRANT request
grantRejectedRequest
Check HTTP Response Status Code Is
400
Check HTTP Response Status Code Is
400
TC_MEC_MEC010p2_MEO_GRANT_002_OK
TP_MEC_MEC010p2_MEO_GRANT_002_OK
[
Documentation
]
TP_MEC_MEO_GRANT_002_OK
[
Documentation
]
TP_MEC_MEO_GRANT_002_OK
...
Check that MEO sends a asynchronous grant response when a grant request is requested
...
Check that MEO sends a asynchronous grant response when a grant request is requested
...
ETSI GS MEC 010-2 2.
0
.1
0
, clause 7.6.1.3.1
...
ETSI GS MEC 010-2 2.
2
.1, clause 7.6.1.3.1
...
ETSI GS MEC 010-2 2.
0
.1
0
, Table 6.2.4.4.2-1 (Grant)
...
ETSI GS MEC 010-2 2.
2
.1, Table 6.2.4.4.2-1 (Grant)
[
Tags
]
PIC_GRANTS_MANAGEMENT
INCLUDE_UNDEFINED_SCHEMAS
[
Tags
]
PIC_GRANTS_MANAGEMENT
INCLUDE_UNDEFINED_SCHEMAS
Create a GRANT request
grantRequest
Create a GRANT request
grantRequest
2
Check HTTP Response Status Code Is
20
2
Check HTTP Response Status Code Is
20
1
Check HTTP Response Header Contains
Location
Check HTTP Response Header Contains
Location
Check HTTP Response Body is Empty
Check HTTP Response Body Json Schema Is
Grant
TC_MEC_MEC010p2_MEO_GRANT_003_OK
TP_MEC_MEC010p2_MEO_GRANT_006_OK
[
Documentation
]
TP_MEC_MEO_GRANT_003_OK
[
Documentation
]
TP_MEC_MEO_GRANT_003_OK
...
Check that MEO sends the status of a grant request when a query on a granting ID is performed.
...
Check that MEO sends the status of a grant request when a query on a granting ID is performed.
...
The process of creating the grant is ongoing, no grant is available yet
...
The process of creating the grant is ongoing, no grant is available yet
...
ETSI GS MEC 010-2 2.
0
.1
0
, clause 7.6.1.3.2
...
ETSI GS MEC 010-2 2.
2
.1, clause 7.6.1.3.2
[
Tags
]
PIC_GRANTS_MANAGEMENT
INCLUDE_UNDEFINED_SCHEMAS
[
Tags
]
PIC_GRANTS_MANAGEMENT
INCLUDE_UNDEFINED_SCHEMAS
Get an individual grant
${
grantId
}
Get an individual grant
${
GRANT_ID
}
Check HTTP Response Status Code Is
20
2
Check HTTP Response Status Code Is
20
0
Check HTTP Response Header Contains
Location
Check HTTP Response Header Contains
Location
Check HTTP Response Body
is Empty
Check HTTP Response Body
Json Schema Is
Grant
T
C
_MEC_MEC010p2_MEO_GRANT_003_NF
T
P
_MEC_MEC010p2_MEO_GRANT_003_NF
[
Documentation
]
TP_MEC_MEO_GRANT_003_NF
[
Documentation
]
TP_MEC_MEO_GRANT_003_NF
...
Check that MEO responds with an error when it receives a request for returning a grant referred with a wrong ID
...
Check that MEO responds with an error when it receives a request for returning a grant referred with a wrong ID
...
ETSI GS MEC 010-2 2.
0
.1
0
, clause 7.6.1.3.2
...
ETSI GS MEC 010-2 2.
2
.1, clause 7.6.1.3.2
[
Tags
]
PIC_GRANTS_MANAGEMENT
INCLUDE_UNDEFINED_SCHEMAS
[
Tags
]
PIC_GRANTS_MANAGEMENT
INCLUDE_UNDEFINED_SCHEMAS
Get an individual grant
${
non_existant_grant_id
}
Get an individual grant
${
NOT_EXISTING_GRANT_ID
}
Check HTTP Response Status Code Is
404
Check HTTP Response Status Code Is
404
TC_MEC_MEC010p2_MEO_GRANT_004_OK
[
Documentation
]
TP_MEC_MEO_GRANT_004_OK
...
Check that MEO sends the status of a grant request when a query on a granting ID is performed
...
ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.2
...
ETSI GS MEC 010-2 2.0.10, Table 6.2.4.4.2-1
[
Tags
]
PIC_GRANTS_MANAGEMENT
INCLUDE_UNDEFINED_SCHEMAS
Get an individual grant
${grantId}
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
Grant
...
@@ -99,7 +95,7 @@ Create a GRANT request
...
@@ -99,7 +95,7 @@ Create a GRANT request
Get an individual grant
Get an individual grant
[
Arguments
]
${grantId}
[
Arguments
]
${grantId}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"
application/json
"}
Set Headers
{"Content-Type":"
*/*
"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/grants/
${grantId}
allow_redirects=false
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/grants/
${grantId}
allow_redirects=false
${output}
=
Output
response
${output}
=
Output
response
...
...
MEC010p2/MEO/GRANT/environment/variables.txt
View file @
7b6322c9
*** Variables ***
*** Variables ***
# Generic variables
# Generic variables
${MEO_SCHEMA} http
${MEO_SCHEMA} http
${MEO_HOST} 10.192.2.172
#${MEO_HOST} 10.192.2.172
${MEO_HOST} 127.0.0.1
${MEO_PORT} 8081
${MEO_PORT} 8081
${response} {}
${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
...
@@ -10,8 +11,8 @@ ${apiName} granting
...
@@ -10,8 +11,8 @@ ${apiName} granting
${apiVersion} v1
${apiVersion} v1
# Specific variables
# Specific variables
${
grantId
} e0deee2b-6e50-4f33-ab09-8bf0585025d3
${
GRANT_ID
} e0deee2b-6e50-4f33-ab09-8bf0585025d3
${
non_existant_grant_id}
non_existant_grant_id
${
NOT_EXISTING_GRANT_ID}
non_existant_grant_id
# Notifications variables
# Notifications variables
...
...
MEC010p2/MEO/GRANT/jsons/grantRejectedRequest.json
View file @
7b6322c9
{}
{
\ No newline at end of file
"id"
:
"123"
,
"appInstanceId"
:
"456"
,
"appLcmOpOccId"
:
"789"
,
"operationERROR"
:
"INSTANTIATE"
}
\ No newline at end of file
MEC010p2/MEO/GRANT/jsons/grantRequest.json
0 → 100644
View file @
7b6322c9
{
"id"
:
"123"
,
"appInstanceId"
:
"456"
,
"appLcmOpOccId"
:
"789"
,
"appDId"
:
"appDId"
,
"operation"
:
"INSTANTIATE"
,
"addResources"
:
[
{
"resourceDefinitionId"
:
"resourceDefinitionId"
,
"vimConnectionId"
:
"vimConnectionId"
,
"resourceGroupId"
:
"resourceGroupId"
,
"zoneId"
:
"zoneId"
}
],
"_links"
:
{
"appLcmOpOcc"
:
{
"href"
:
"https://anexample.ex/"
},
"appInstance"
:
{
"href"
:
"https://anexample.ex/"
}
}
}
\ No newline at end of file
MEC010p2/MEO/GRANT/jsons/grantRequest2.json
0 → 100644
View file @
7b6322c9
{
"id"
:
"123"
,
"appInstanceId"
:
"456"
,
"appLcmOpOccId"
:
"789"
,
"operation"
:
"OPERATE"
,
"_links"
:
{
"appLcmOpOcc"
:
{
"href"
:
"https://anexample.ex/"
},
"appInstance"
:
{
"href"
:
"https://anexample.ex/"
}
}
}
\ No newline at end of file
MEC010p2/MEO/GRANT/jsons/grantRequestInstantiate.json
0 → 100644
View file @
7b6322c9
{
"id"
:
"123"
,
"appInstanceId"
:
"456"
,
"appLcmOpOccId"
:
"789"
,
"operation"
:
"INSTANTIATE"
,
"_links"
:
{
"appLcmOpOcc"
:
{
"href"
:
"https://anexample.ex/"
},
"appInstance"
:
{
"href"
:
"https://anexample.ex/"
}
}
}
\ No newline at end of file
MEC010p2/MEO/GRANT/jsons/grantRequests.json
deleted
100644 → 0
View file @
9a0b289a
{
}
\ No newline at end of file
MEC010p2/MEO/GRANT/schemas/Grant.json
deleted
100644 → 0
View file @
9a0b289a
{}
\ No newline at end of file
MEC010p2/MEO/GRANT/schemas/Grant.schema.json
0 → 100644
View file @
7b6322c9
This diff is collapsed.
Click to expand it.
MEC010p2/MEPM/LCM/PlatformConfiguration.robot
0 → 100644
View file @
7b6322c9
''[Documentation] robot --outputdir ./outputs ./PlatformConfiguration.robot
...
Test
Suite
to
validate
Platform
Configuration
operations.
*** Settings ***
Resource
environment/variables.txt
Resource
../../../GenericKeywords.robot
Library
REST
${MEPM_SCHEMA}
://
${MEPM_HOST}
:
${MEPM_PORT}
ssl_verify=false
Library
BuiltIn
Library
OperatingSystem
*** Test Cases ***
TP_MEC_MEC010p2_MEPM_LCM_001_OK
[
Documentation
]
TP_MEC_MEC010p2_MEPM_LCM_001_OK
...
Check that MEC API provider has created the configuration information in AppD to the MEPM-V
...
ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1
...
ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1
#ConfigPlatformForAppRequest
Request to configure Platform
${APP_INSTANCE_ID}
ConfigPlatformForAppRequest
Check HTTP Response Status Code Is
202
Check Response Header contains
Location
TP_MEC_MEC010p2_MEPM_LCM_001_BR
[
Documentation
]
TP_MEC_MEC010p2_MEPM_LCM_001_BR
...
Check that MEC API provider sends an error when it receives a malformed request for the configuration information in AppD to the MEPM-V
...
ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1
...
ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1
#ConfigPlatformForAppRequest
Request to configure Platform
${APP_INSTANCE_ID}
ConfigPlatformForAppRequestBadRequest
Check HTTP Response Status Code Is
400
TP_MEC_MEC010p2_MEPM_LCM_001_NF
[
Documentation
]
TP_MEC_MEC010p2_MEPM_LCM_001_BR
...
"Check that MEC API provider sends an error when it receives a request
...
for the configuration information in AppD to the MEPM-V with not valid app instance ID
...
ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1
...
ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1
#ConfigPlatformForAppRequest
Request to configure Platform
${NOT_EXISTING_APP_INSTANCE_ID}
ConfigPlatformForAppRequest
Check HTTP Response Status Code Is
404
*** Keywords ***
Request to configure Platform
[
Argument
]
${appInstanceId}
${content}
Log
Request to configure platform
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
${file}
=
Catenate
SEPARATOR=
jsons/
${content}
.json
${body}
=
Get File
${file}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/app_instances/
${appInstanceId}
/configure_platform_for_app
${body}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
\ No newline at end of file
MEC010p2/MEPM/LCM/environment/variables.txt
0 → 100644
View file @
7b6322c9
*** Variables ***
# Generic variables
${MEPM_SCHEMA} http
${MEPM_HOST} 127.0.0.1
${MEPM_PORT} 8081
${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
${apiRoot}
${apiName} app_lcm
${apiVersion} v1
# Specific variables
${APP_INSTANCE_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3
${NOT_EXISTING_APP_INSTANCE_ID} NOT_EXISTING_APP_INSTANCE_ID
\ No newline at end of file
MEC010p2/MEX/LCM/AppInstanceMgmt.robot
0 → 100644
View file @
7b6322c9
This diff is collapsed.
Click to expand it.
MEC010p2/MEX/LCM/environment/variables.txt
0 → 100644
View file @
7b6322c9
*** Variables ***
# Generic variables
${MEPM_SCHEMA} http
${MEPM_HOST} 127.0.0.1
${MEPM_PORT} 8081
${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
${apiRoot}
${apiName} app_lcm
${apiVersion} v1
# Specific variables
${NOT_EXISTING_APP_INSTANCE_ID} NOT_EXISTING_APP_INSTANCE_ID
${APP_INSTANCE_ID} 5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f
${APPD_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3
${APP_LCM_OP_OCC_ID} abceee2b-6e50-4f33-ab09-8bf05850abcd
${NOT_EXISTING_APP_LCM_OP_OCC_ID} NOT_EXISTING_APP_LCM_OP_OCC_ID
${NON_EXISTENT_APP_PKG_ID} NON_EXISTENT_APP_PKG_ID
${OPERATION_VALUE} DISABLE
${CALLBACK_URI} https://callback.uri/path
${SUB_TYPE} AppInstanceStateChangeSubscription
${SUBSCRIPTION_ID} 01234e2b-6e50-4f33-ab09-8bf05850890
${NOT_EXISTING_SUBSCRIPTION_ID} NOT_EXISTING_SUBSCRIPTION_ID
\ No newline at end of file
MEC010p2/MEX/LCM/jsons/AppInstSubscriptionRequest.json
0 → 100644
View file @
7b6322c9
{
"subscriptionType"
:
"AppInstanceStateChangeSubscription"
,
"callbackUri"
:
"https://callback.uri/path"
}
\ No newline at end of file
MEC010p2/MEX/LCM/jsons/AppInstSubscriptionRequestBadRequest.json
0 → 100644
View file @
7b6322c9
{
"callbackERRORUri"
:
"AppInstanceStateChangeSubscription"
,
"callbackUri"
:
"https://callback.uri/path"
}
\ No newline at end of file
MEC010p2/MEX/LCM/jsons/CancelMode.json
0 → 100644
View file @
7b6322c9
{
"CancelMode"
:
"GRACEFUL"
}
\ No newline at end of file
MEC010p2/MEX/LCM/jsons/CancelModeBadRequest.json
0 → 100644
View file @
7b6322c9
{
"CancelMode"
:
"GRACEFULLL"
}
\ No newline at end of file
MEC010p2/MEX/LCM/jsons/CreateAppInstanceRequest.json
0 → 100644
View file @
7b6322c9
{
"appDId"
:
"e0deee2b-6e50-4f33-ab09-8bf0585025d3"
,
"appInstanceDescription"
:
"description"
,
"appInstanceName"
:
"name"
}
\ No newline at end of file
MEC010p2/MEX/LCM/jsons/CreateAppInstanceRequestBadRequest.json
0 → 100644
View file @
7b6322c9
{
"appDDDId"
:
"e0deee2b-6e50-4f33-ab09-8bf0585025d3"
,
"appInstanceDescription"
:
"description"
,
"appInstanceName"
:
"name"
}
\ No newline at end of file
MEC010p2/MEX/LCM/jsons/InstantiateAppRequest.json
0 → 100644
View file @
7b6322c9
{
"selectedMECHostInfo"
:
[{
"hostId"
:
{
"key1"
:
123
,
"key2"
:
456
},
"hostName"
:
"hostname"
}]
}
\ No newline at end of file
Prev
1
2
Next