Skip to content
Snippets Groups Projects
Commit 1f553222 authored by scivoletto's avatar scivoletto
Browse files

fixed some bugs in MEC016 draft

parent ab3921d4
No related branches found
No related tags found
1 merge request!3Merge of TT027 branch into master
......@@ -11,7 +11,7 @@ Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_v
*** Test Cases ***
TP_MEC_MEC016_MEO_UEAPPCTX_001_OK
TC_MEC_MEC016_MEO_UEAPPCTX_001_OK
[Documentation]
... Check that the IUT acknowledges the creation of the application context when requested by an UE Application
... Reference ETSI GS MEC 016 v2.2.1, clause 7.4.3.4
......@@ -26,18 +26,18 @@ TP_MEC_MEC016_MEO_UEAPPCTX_001_OK
Set Suite Variable ${contextId} ${response['body']['contextId']}
TP_MEC_MEC016_MEO_UEAPPCTX_001_BR
TC_MEC_MEC016_MEO_UEAPPCTX_001_BR
[Documentation]
... Check that the IUT responds with an error when a request with incorrect URL is sent by a MEC Application
... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
... Reference ETSI GS MEC 016 v2.2.1, clause 7.4.3.4
... Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Create application context AppContext_BR.json
Create application context AppContext_BR.json
Check HTTP Response Status Code Is 400
TP_MEC_MEC016_MEO_UEAPPCTX_001_NF
TC_MEC_MEC016_MEO_UEAPPCTX_001_NF
[Documentation]
... Check that the IUT responds with an error when a request with incorrect URL is sent by a MEC Application
... Reference ETSI GS MEC 016 v2.2.1, clause 7.4.3.4
......@@ -48,7 +48,7 @@ TP_MEC_MEC016_MEO_UEAPPCTX_001_NF
Check HTTP Response Status Code Is 404
TP_MEC_MEC016_MEO_UEAPPCTX_002_OK
TC_MEC_MEC016_MEO_UEAPPCTX_002_OK
[Documentation]
... Check that the IUT updates the application callback reference when commanded by an UE Application
... Reference ETSI GS MEC 016 v2.2.1, clause 7.5.3.2
......@@ -56,21 +56,21 @@ TP_MEC_MEC016_MEO_UEAPPCTX_002_OK
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
# Test Body
Update application context ${contextId} UpdateAppContext.json
Update application context ${context-id} UpdateAppContext.json
Check HTTP Response Status Code Is 204
TP_MEC_MEC016_MEO_UEAPPCTX_002_BR
TC_MEC_MEC016_MEO_UEAPPCTX_002_BR
[Documentation]
... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
... Reference ETSI GS MEC 016 v2.2.1, clause 7.5.3.2
... Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Update application context ${contextId} UpdateAppContext_BR.json
Update application context ${context-id} UpdateAppContext_BR.json
Check HTTP Response Status Code Is 400
TP_MEC_MEC016_MEO_UEAPPCTX_002_NF
TC_MEC_MEC016_MEO_UEAPPCTX_002_NF
[Documentation]
... Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application
... Reference ETSI GS MEC 016 2.2.1, clause 7.5.3.2
......@@ -78,11 +78,11 @@ TP_MEC_MEC016_MEO_UEAPPCTX_002_NF
# Preamble
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Update application context using wrong endpoint ${contextId} UpdateAppContext.json
Update application context using wrong endpoint ${context-id} UpdateAppContext.json
Check HTTP Response Status Code Is 404
TP_MEC_MEC016_MEO_UEAPPCTX_003_OK
TC_MEC_MEC016_MEO_UEAPPCTX_003_OK
[Documentation]
... Check that the IUT deletes the application context when commanded by an UE Application
... Reference ETSI GS MEC 016 2.2.1, clause 7.5.3.5
......@@ -90,11 +90,11 @@ TP_MEC_MEC016_MEO_UEAPPCTX_003_OK
# Preamble
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Delete application context ${contextId}
Delete application context ${context-id}
Check HTTP Response Status Code Is 204
TP_MEC_MEC016_MEO_UEAPPCTX_003_NF
TC_MEC_MEC016_MEO_UEAPPCTX_003_NF
[Documentation]
... Check that the IUT deletes the application context when commanded by an UE Application
... Reference ETSI GS MEC 016 2.2.1, clause 7.5.3.5
......
......@@ -4,10 +4,10 @@ ${apiName} dev_app
${apiVersion} v1
${MEC-APP_SCHEMA} http
${MEC-APP_HOST} 192.168.56.1
${MEC-APP_PORT} 8081
${MEC-APP_HOST} mockoon
${MEC-APP_PORT} 3003
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
${contextId}
${context-id} 1
${NON_EXISTING_CONTEXT_ID} NON_EXISTING_CONTEXT_ID
\ No newline at end of file
......@@ -4,8 +4,8 @@ ${apiName} dev_app
${apiVersion} v1
${MEC-APP_SCHEMA} http
${MEC-APP_HOST} 192.168.56.1
${MEC-APP_PORT} 8081
${MEC-APP_HOST} mockoon
${MEC-APP_PORT} 3003
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
......@@ -4,8 +4,8 @@ ${apiName} dev_app
${apiVersion} v1
${MEC-APP_SCHEMA} http
${MEC-APP_HOST} 192.168.56.1
${MEC-APP_PORT} 8081
${MEC-APP_HOST} mockoon
${MEC-APP_PORT} 3003
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
......
{
"properties": {
"appList": {
"description": "List of user applications available to the device application. As defined below.",
"items": {
"type": "object",
"properties": {
"appInfo": {
"description": "",
"properties": {
"appCharcs": {
"description": "Characteristics of the application. As defined below. The application characteristics relate to the system resources consumed by the application. A device application can use this information e.g. for estimating the cost of use of the application or for the expected user experience.",
"properties": {
"bandwidth": {
"description": "The required connection bandwidth in kbit/s for the use of the MEC application instance. ",
"format": "uint32",
"type": "integer",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "uint32"
},
"latency": {
"description": "The target round trip time in milliseconds supported by the MEC system for the MEC application instance.",
"format": "uint32",
"type": "integer",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "uint32"
},
"memory": {
"description": "The maximum size in Mbytes of the memory resource expected to be used by the MEC application instance in the MEC system.",
"format": "uint32",
"type": "integer",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "uint32"
},
"serviceCont": {
"description": "Required service continuity mode for this application. Permitted values: 0 = SERVICE_CONTINUITY_NOT_REQUIRED. 1 = SERVICE_CONTINUITY_REQUIRED.",
"enum": [
0,
1
],
"type": "integer",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "Enum"
},
"storage": {
"description": "The maximum size in Mbytes of the storage resource expected to be used by the MEC application instance in the MEC system.",
"format": "uint32",
"type": "integer",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "uint32"
}
},
"type": "object",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "Structure (inlined)"
},
"appDId": {
"description": "Identifier of this MEC application descriptor. It is equivalent to the appDId defined in clause 6.2.1.2 of ETSI GS MEC 0102 [1]. This attribute shall be globally unique.",
"type": "string",
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
},
"appDVersion": {
"description": "Identifies the version of the application descriptor. It is equivalent to the appDVersion defined in clause 6.2.1.2 of ETSI GS MEC 0102 [1].",
"type": "string",
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
},
"appDescription": {
"description": "Human readable description of the MEC application (see note 2).",
"type": "string",
"maxLength": 128,
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
},
"appLocation": {
"description": "Identifies the locations of the MEC application.",
"items": {
"properties": {
"appList": {
"description": "List of user applications available to the device application. As defined below.",
"area": {
"properties": {
"coordinates": {
"items": {
"items": {
"items": {
"type": "number",
"format": "float"
},
"type": "array"
},
"type": "array"
},
"minItems": 1,
"type": "array",
"x-etsi-mec-cardinality": 1,
"x-etsi-mec-origin-type": "array"
}
},
"type": "object"
},
"civicAddressElement": {
"description": "Zero or more elements comprising the civic address. Shall be absent if the \"area\" attribute is present.",
"items": {
"type": "object",
"properties": {
"appInfo": {
"description": "",
"properties": {
"appCharcs": {
"description": "Characteristics of the application. As defined below. The application characteristics relate to the system resources consumed by the application. A device application can use this information e.g. for estimating the cost of use of the application or for the expected user experience.",
"properties": {
"bandwidth": {
"description": "The required connection bandwidth in kbit/s for the use of the MEC application instance. ",
"format": "uint32",
"type": "integer",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "uint32"
},
"latency": {
"description": "The target round trip time in milliseconds supported by the MEC system for the MEC application instance.",
"format": "uint32",
"type": "integer",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "uint32"
},
"memory": {
"description": "The maximum size in Mbytes of the memory resource expected to be used by the MEC application instance in the MEC system.",
"format": "uint32",
"type": "integer",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "uint32"
},
"serviceCont": {
"description": "Required service continuity mode for this application. Permitted values: 0 = SERVICE_CONTINUITY_NOT_REQUIRED. 1 = SERVICE_CONTINUITY_REQUIRED.",
"enum": [
0,
1
],
"type": "integer",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "Enum"
},
"storage": {
"description": "The maximum size in Mbytes of the storage resource expected to be used by the MEC application instance in the MEC system.",
"format": "uint32",
"type": "integer",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "uint32"
}
},
"type": "object",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "Structure (inlined)"
},
"appDId": {
"description": "Identifier of this MEC application descriptor. It is equivalent to the appDId defined in clause 6.2.1.2 of ETSI GS MEC 0102 [1]. This attribute shall be globally unique.",
"type": "string",
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
},
"appDVersion": {
"description": "Identifies the version of the application descriptor. It is equivalent to the appDVersion defined in clause 6.2.1.2 of ETSI GS MEC 0102 [1].",
"type": "string",
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
},
"appDescription": {
"description": "Human readable description of the MEC application (see note 2).",
"type": "string",
"maxLength": 128,
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
},
"appLocation": {
"description": "Identifies the locations of the MEC application.",
"items": {
"properties": {
"area": {
"properties": {
"coordinates": {
"items": {
"items": {
"items": {
"type": "number",
"format": "float"
},
"type": "array"
},
"type": "array"
},
"minItems": 1,
"type": "array",
"x-etsi-mec-cardinality": 1,
"x-etsi-mec-origin-type": "array"
}
},
"type": "object"
},
"civicAddressElement": {
"description": "Zero or more elements comprising the civic address. Shall be absent if the \"area\" attribute is present.",
"items": {
"type": "object",
"properties": {
"caType": {
"description": "Describe the content type of caValue. The value of caType shall comply with section 3.4 of IETF RFC 4776 [6]. ",
"type": "integer",
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "Integer"
},
"caValue": {
"description": "Content of civic address element corresponding to the caType. The format caValue shall comply with section 3.4 of IETF RFC 4776 [6].",
"type": "string",
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
}
}
},
"minItems": 0,
"required": [
"caType",
"caValue"
],
"type": "array",
"x-etsi-mec-cardinality": "0..N",
"x-etsi-mec-origin-type": "array (Structure inlined)"
},
"countryCode": {
"description": "The two-letter ISO 3166 [7] country code in capital letters. Shall be present in case the \"area\" attribute is absent. May be absent if the \"area\" attribute is present (see note).",
"type": "string",
"maxLength": 2,
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "String"
}
},
"type": "object",
"x-etsi-notes": "NOTE:\tIf both \"countryCode\" and \"area\" are present, no conflicts should exist between the values of these two attributes. In case of conflicts, the API producer (e.g. MEO, MEAO) shall disregard parts of the geographic area signalled by \"area\" that are outside the boundaries of the country signalled by \"countryCode\". If \"countryCode\" is absent, it is solely the \"area\" attribute that defines the location constraint.",
"x-etsi-ref": "6.5.2"
},
"minItems": 0,
"type": "array",
"x-etsi-mec-cardinality": "0..N",
"x-etsi-mec-origin-type": "LocationConstraints"
},
"appName": {
"description": "Name of the MEC application. The length of the value shall not exceed 32 characters.",
"type": "string",
"maxLength": 32,
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
},
"appProvider": {
"description": "Provider of the MEC application. The length of the value shall not exceed 32 characters.",
"type": "string",
"maxLength": 32,
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
},
"appSoftVersion": {
"description": "Software version of the MEC application. The length of the value shall not exceed 32 characters.",
"type": "string",
"maxLength": 32,
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
}
},
"required": [
"appDId",
"appName",
"appProvider",
"appSoftVersion",
"appDVersion",
"appDescription"
],
"type": "object",
"caType": {
"description": "Describe the content type of caValue. The value of caType shall comply with section 3.4 of IETF RFC 4776 [6]. ",
"type": "integer",
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "Structure (inlined)"
"x-etsi-mec-origin-type": "Integer"
},
"vendorSpecificExt": {
"description": "Extension for vendor specific information (see note 1).",
"properties": {
"vendorId": {
"description": "Vendor identifier. The length of the value shall not exceed 32 characters. The rest of the structure of vendor specific extension is not defined.",
"type": "string",
"maxLength": 32,
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
}
},
"required": [
"vendorId"
],
"type": "object",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "Structure (inlined)"
"caValue": {
"description": "Content of civic address element corresponding to the caType. The format caValue shall comply with section 3.4 of IETF RFC 4776 [6].",
"type": "string",
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
}
}
},
"minItems": 0,
"required": [
"appInfo"
"caType",
"caValue"
],
"type": "array",
"x-etsi-mec-cardinality": "0..N",
"x-etsi-mec-origin-type": "Array (Structure (inlined))"
"x-etsi-mec-origin-type": "array (Structure inlined)"
},
"countryCode": {
"description": "The two-letter ISO 3166 [7] country code in capital letters. Shall be present in case the \"area\" attribute is absent. May be absent if the \"area\" attribute is present (see note).",
"type": "string",
"maxLength": 2,
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "String"
}
},
"type": "object",
"x-etsi-notes": "NOTE 1:\tThe vendor specific extension allows submitting information on the application lists that have been made available to the device application of the corresponding vendor.\nNOTE 2:\tThe language support may be limited. The length of the value shall not exceed 128 characters.",
"x-etsi-ref": "6.2.2"
}
\ No newline at end of file
"x-etsi-notes": "NOTE:\tIf both \"countryCode\" and \"area\" are present, no conflicts should exist between the values of these two attributes. In case of conflicts, the API producer (e.g. MEO, MEAO) shall disregard parts of the geographic area signalled by \"area\" that are outside the boundaries of the country signalled by \"countryCode\". If \"countryCode\" is absent, it is solely the \"area\" attribute that defines the location constraint.",
"x-etsi-ref": "6.5.2"
},
"minItems": 0,
"type": "array",
"x-etsi-mec-cardinality": "0..N",
"x-etsi-mec-origin-type": "LocationConstraints"
},
"appName": {
"description": "Name of the MEC application. The length of the value shall not exceed 32 characters.",
"type": "string",
"maxLength": 32,
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
},
"appProvider": {
"description": "Provider of the MEC application. The length of the value shall not exceed 32 characters.",
"type": "string",
"maxLength": 32,
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
},
"appSoftVersion": {
"description": "Software version of the MEC application. The length of the value shall not exceed 32 characters.",
"type": "string",
"maxLength": 32,
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
}
},
"required": [
"appDId",
"appName",
"appProvider",
"appSoftVersion",
"appDVersion",
"appDescription"
],
"type": "object",
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "Structure (inlined)"
},
"vendorSpecificExt": {
"description": "Extension for vendor specific information (see note 1).",
"properties": {
"vendorId": {
"description": "Vendor identifier. The length of the value shall not exceed 32 characters. The rest of the structure of vendor specific extension is not defined.",
"type": "string",
"maxLength": 32,
"x-etsi-mec-cardinality": "1",
"x-etsi-mec-origin-type": "String"
}
},
"required": [
"vendorId"
],
"type": "object",
"x-etsi-mec-cardinality": "0..1",
"x-etsi-mec-origin-type": "Structure (inlined)"
}
}
},
"minItems": 0,
"required": [
"appInfo"
],
"type": "array",
"x-etsi-mec-cardinality": "0..N",
"x-etsi-mec-origin-type": "Array (Structure (inlined))"
}
},
"type": "object",
"x-etsi-notes": "NOTE 1:\tThe vendor specific extension allows submitting information on the application lists that have been made available to the device application of the corresponding vendor.\nNOTE 2:\tThe language support may be limited. The length of the value shall not exceed 128 characters.",
"x-etsi-ref": "6.2.2"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment