From 634eab1270e88131db642188a9fcb4d5a8a9ce04 Mon Sep 17 00:00:00 2001 From: Muhammad Umair Khan Date: Mon, 3 Mar 2025 10:09:21 +0500 Subject: [PATCH 01/10] update MEC 014 reference version from v3.1.1. to v3.2.1 --- MEC014/SRV/UETAG/PlatUeIdentity.robot | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/MEC014/SRV/UETAG/PlatUeIdentity.robot b/MEC014/SRV/UETAG/PlatUeIdentity.robot index d7b7f0e..2520ae1 100644 --- a/MEC014/SRV/UETAG/PlatUeIdentity.robot +++ b/MEC014/SRV/UETAG/PlatUeIdentity.robot @@ -15,8 +15,8 @@ TC_MEC_MEC014_SRV_UETAG_001_OK ... Check that the IUT responds with the information on a UE Identity tag ... when queried by a MEC Application ... - ... Reference ETSI GS MEC 014 3.1.1, clause 6.2.2, - ... ETSI GS MEC 014 3.1.1, clause 7.3.3.1 + ... Reference ETSI GS MEC 014 3.2.1, clause 6.2.2, + ... ETSI GS MEC 014 3.2.1, clause 7.3.3.1 ... [Setup] Create new App Instance CreateAppInstanceRequest Get UE Identity Tag information ${APP_INSTANCE_ID} ${UE_IDENTITY_TAG} @@ -38,10 +38,10 @@ TC_MEC_MEC014_SRV_UETAG_001_BR ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application - ... Reference ETSI GS MEC 013 3.1.1 Clause 5.3.4, - ... ETSI GS MEC 013 3.1.1 Clause 6.3.9, - ... ETSI GS MEC 013 3.1.1 Clause 6.4.9, - ... ETSI GS MEC 013 3.1.1 Clause 7.14.3.4 + ... Reference ETSI GS MEC 013 3.2.1 Clause 5.3.4, + ... ETSI GS MEC 013 3.2.1 Clause 6.3.9, + ... ETSI GS MEC 013 3.2.1 Clause 6.4.9, + ... ETSI GS MEC 013 3.2.1 Clause 7.14.3.4 [Setup] Create new App Instance CreateAppInstanceRequest Get UE Identity Tag information using bad parameters ${APP_INSTANCE_ID} ${UE_IDENTITY_TAG} @@ -53,7 +53,7 @@ TC_MEC_MEC014_SRV_UETAG_001_BR TC_MEC_MEC014_SRV_UETAG_001_NF [Documentation] Request UE Identity Tag information using non-existent application instance ... Check that the IUT responds with an error when a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application - ... Reference ETSI GS MEC 014 V3.1.1, clause 7.3.3.1 + ... Reference ETSI GS MEC 014 V3.2.1, clause 7.3.3.1 [Setup] Delete APP Instance ${NON_EXISTENT_APP_INSTANCE_ID} Get UE Identity Tag information ${NON_EXISTENT_APP_INSTANCE_ID} ${UE_IDENTITY_TAG} Check HTTP Response Status Code Is 404 @@ -63,8 +63,8 @@ TC_MEC_MEC014_SRV_UETAG_002_OK [Documentation] Register an UE Identity Tag ... Check that the IUT registers a tag (representing a UE) or a list of tags when commanded by a MEC Application - ... Reference ETSI GS MEC 014 3.1.1, clause 6.2.2 - ... ETSI GS MEC 014 V3.1.1, clause 7.3.3.2 + ... Reference ETSI GS MEC 014 3.2.1, clause 6.2.2 + ... ETSI GS MEC 014 V3.2.1, clause 7.3.3.2 [Setup] Create new App Instance and Check User Identity Tag unregistered state CreateAppInstanceRequest ${APP_INSTANCE_ID} UeIdentityTag Update an UE Identity Tag ${APP_INSTANCE_ID} IdentityTag @@ -84,8 +84,8 @@ TC_MEC_MEC014_SRV_UETAG_002_OK TC_MEC_MEC014_SRV_UETAG_002_BR [Documentation] Register an UE Identity Tag using invalid state ... Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application - ... Reference ETSI GS MEC 014 3.1.1, clause 6.2.2, - ... ETSI GS MEC 014 3.1.1, clause 7.3.3.2 + ... Reference ETSI GS MEC 014 3.2.1, clause 6.2.2, + ... ETSI GS MEC 014 3.2.1, clause 7.3.3.2 [Setup] Create new App Instance CreateAppInstanceRequest Update an UE Identity Tag ${APP_INSTANCE_ID} IdentityTagBR Check HTTP Response Status Code Is 400 @@ -95,7 +95,7 @@ TC_MEC_MEC014_SRV_UETAG_002_BR TC_MEC_MEC014_SRV_UETAG_002_NF [Documentation] Register an UE Identity Tag using invalid state ... Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application - ... Reference ETSI GS MEC 014 3.1.1, clause 7.3.3.2 + ... Reference ETSI GS MEC 014 3.2.1, clause 7.3.3.2 #[Setup] Delete APP Instance ${NON_EXISTENT_APP_INSTANCE_ID} Update an UE Identity Tag ${NON_EXISTENT_APP_INSTANCE_ID} IdentityTag Check HTTP Response Status Code Is 404 @@ -105,7 +105,7 @@ TC_MEC_MEC014_SRV_UETAG_002_PF [Documentation] Unregister an UE Identity Tag already in unregistered state ... Check that the IUT responds with an error when ... a request sent by a MEC Application doesn't comply with a required condition - ... Reference ETSI GS MEC 014 V3.1.1, clause 7.3.3.2 + ... Reference ETSI GS MEC 014 V3.2.1, clause 7.3.3.2 [Setup] Create new App Instance CreateAppInstanceRequest Update an UE Identity Tag ${APP_INSTANCE_ID} IdentityTagPF Check HTTP Response Status Code Is 412 -- GitLab From c84e9b8ea689eb1d668be855ce6fc06bba3dad64 Mon Sep 17 00:00:00 2001 From: Muhammad Umair Khan Date: Mon, 3 Mar 2025 10:14:11 +0500 Subject: [PATCH 02/10] update MEC 015 as per version v3.1.1 --- MEC015/SRV/BW_SUB/BwEventSubscription.robot | 235 ++++++++++++++++++ MEC015/SRV/BW_SUB/environment/variables.txt | 35 +++ .../BW_SUB/jsons/BwChgEventSubscription.json | 9 + .../jsons/BwChgEventSubscription_BR.json | 9 + .../jsons/BwChgEventSubscription_BR_02.json | 13 + .../jsons/UpdateBwChgEventSubscription.json | 14 ++ .../BwChgEventNotification.schema.json | 92 +++++++ .../BwChgEventSubscription.schema.json | 90 +++++++ .../schemas/SubscriptionLinkList.schema.json | 57 +++++ .../BwEventSubscriptionLookup.robot | 179 +++++++++++++ .../BW_SUB_LOOKUP/environment/variables.txt | 25 ++ .../jsons/BwChgEventSubscription.json | 9 + .../BwChgEventSubscription.schema.json | 90 +++++++ .../schemas/SubscriptionLinkList.schema.json | 57 +++++ .../SRV/MTS/MultiAccessTrafficSteering.robot | 100 ++++---- MEC015/SRV/TM/TrafficManagement.robot | 126 +++++----- 16 files changed, 1027 insertions(+), 113 deletions(-) create mode 100644 MEC015/SRV/BW_SUB/BwEventSubscription.robot create mode 100644 MEC015/SRV/BW_SUB/environment/variables.txt create mode 100644 MEC015/SRV/BW_SUB/jsons/BwChgEventSubscription.json create mode 100644 MEC015/SRV/BW_SUB/jsons/BwChgEventSubscription_BR.json create mode 100644 MEC015/SRV/BW_SUB/jsons/BwChgEventSubscription_BR_02.json create mode 100644 MEC015/SRV/BW_SUB/jsons/UpdateBwChgEventSubscription.json create mode 100644 MEC015/SRV/BW_SUB/schemas/BwChgEventNotification.schema.json create mode 100644 MEC015/SRV/BW_SUB/schemas/BwChgEventSubscription.schema.json create mode 100644 MEC015/SRV/BW_SUB/schemas/SubscriptionLinkList.schema.json create mode 100644 MEC015/SRV/BW_SUB_LOOKUP/BwEventSubscriptionLookup.robot create mode 100644 MEC015/SRV/BW_SUB_LOOKUP/environment/variables.txt create mode 100644 MEC015/SRV/BW_SUB_LOOKUP/jsons/BwChgEventSubscription.json create mode 100644 MEC015/SRV/BW_SUB_LOOKUP/schemas/BwChgEventSubscription.schema.json create mode 100644 MEC015/SRV/BW_SUB_LOOKUP/schemas/SubscriptionLinkList.schema.json diff --git a/MEC015/SRV/BW_SUB/BwEventSubscription.robot b/MEC015/SRV/BW_SUB/BwEventSubscription.robot new file mode 100644 index 0000000..7510c39 --- /dev/null +++ b/MEC015/SRV/BW_SUB/BwEventSubscription.robot @@ -0,0 +1,235 @@ +''[Documentation] robot --outputdir ../../../outputs ./BwEventSubscription.robot +... Test Suite to validate Bandwidth Management Event Subscription (BW) operations. + +*** Settings *** +Resource environment/variables.txt +Resource ../../../pics.txt +Resource ../../../GenericKeywords.robot +Library Collections +Library String +Library OperatingSystem +Library MockServerLibrary +Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_verify=false + +*** Test Cases *** +TC_MEC_MEC015_SRV_BW_SUB_NOT_001_OK + [Documentation] + ... Check that the IUT acknowledges the creation of BWM change event subscription request when commanded by a MEC Application + ... Reference ETSI GS MEC 015 3.1.1, clause 6.2.6.2 + ... ETSI GS MEC 015 3.1.1, clause 7.3.2 + ... ETSI GS MEC 015 3.1.1, clause 8.5.3.4 + + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + + Create New Subscription Info BwChgEventSubscription + Check HTTP Response Status Code Is 200 + Check HTTP Response Header Contains Location + Check HTTP Response Body Json Schema Is BwChgEventSubscription + Set Suite Variable ${Location} ${response['headers']['Location']} + + Check Response Contains ${response['body']} subscriptionType ${SUB_TYPE} + Check Response Contains ${response['body']} callbackReference ${CALLBACK_URI} + Check Response Contains ${response['body']['filterCriteria']} appInsId ${appInsId} + Should Not Be Empty ${response['body']['_links']['self']['href']} + + [TearDown] Remove Subscription Info ${Location} + +TC_MEC_MEC015_SRV_BW_SUB_NOT_001_BR_01 + [Documentation] + ... Check that the IUT acknowledges the creation of BWM change event subscription request when commanded by a MEC Application + ... Reference ETSI GS MEC 015 3.1.1, clause 6.2.6.1 + ... ETSI GS MEC 015 3.1.1, clause 7.3.2 + ... ETSI GS MEC 015 3.1.1, clause 8.5.3.4 + + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + + Create New Subscription Info with Invalid subscriptionType BwChgEventSubscription + Check HTTP Response Status Code Is 400 + +TC_MEC_MEC015_SRV_BW_SUB_NOT_001_BR_02 + [Documentation] + ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - Both callbackReference and websockNotifConfig provided + ... Reference ETSI GS MEC 015 3.1.1, clause 6.2.6.1 + ... ETSI GS MEC 015 3.1.1, clause 7.3.2 + ... ETSI GS MEC 015 3.1.1, clause 8.5.3.4 + + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + + Create New Subscription Info BwChgEventSubscription_BR + Check HTTP Response Status Code Is 400 + +TC_MEC_MEC015_SRV_BW_SUB_NOT_001_BR_03 + [Documentation] + ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - Neither callbackReference nor websockNotifConfig provided + ... Reference ETSI GS MEC 015 3.1.1, clause 6.2.6.1 + ... ETSI GS MEC 015 3.1.1, clause 7.3.2 + ... ETSI GS MEC 015 3.1.1, clause 8.5.3.4 + + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + + Create New Subscription Info BwChgEventSubscription_BR_02 + Check HTTP Response Status Code Is 400 + + +TC_MEC_MEC015_SRV_BW_SUB_NOT_002_OK + [Documentation] + ... Check that the IUT acknowledges the update of BWM change event subscription request when commanded by a MEC Application + ... Reference ETSI GS MEC 015 3.1.1, clause 6.2.6.3 + ... ETSI GS MEC 015 3.1.1, clause 7.3.2 + ... ETSI GS MEC 015 3.1.1, clause 8.6.3.2 + + [Setup] Create New Subscription Info BwChgEventSubscription + Set Suite Variable ${Location} ${response['headers']['Location']} + ${elements} = Split String ${Location} / + ${SUBSCRIPTION_ID} = Get From List ${elements} -1 + Set Suite Variable ${SUBSCRIPTION_ID} ${SUBSCRIPTION_ID} + + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + + Modify existing subscription information ${SUBSCRIPTION_ID} UpdateBwChgEventSubscription + Check HTTP Response Status Code Is 200 + Check HTTP Response Header Contains Location + Check HTTP Response Body Json Schema Is UpdateBwChgEventSubscription + + ${callbackReference} Get value entry from JSON file UpdateBwChgEventSubscription callbackReference + ${filterCriteria} Get value entry from JSON file UpdateBwChgEventSubscription filterCriteria + + Check Response Contains ${response['body']} subscriptionType BwChgEventSubscription + Check Response Contains ${response['body']} callbackReference ${callbackReference} + Check Response Contains ${response['body']['filterCriteria']} appInsId ${filterCriteria['appInsId']} + Should Not Be Empty ${response['body']['_links']['self']['href']} + + [TearDown] Remove Subscription Info ${Location} + +TC_MEC_MEC015_SRV_BW_SUB_NOT_002_NF + [Documentation] + ... Check that the IUT acknowledges an error when a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application + ... Reference ETSI GS MEC 015 3.1.1, clause 6.2.6.3 + ... ETSI GS MEC 015 3.1.1, clause 7.3.2 + ... ETSI GS MEC 015 3.1.1, clause 8.6.3.2 + + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + + Modify existing subscription information ${NON_EXISTENT_SUB_ID} UpdateBwChgEventSubscription + Check HTTP Response Status Code Is 404 + +TC_MEC_MEC015_SRV_BW_SUB_NOT_003_OK + [Documentation] + ... Check that the IUT acknowledges the cancellation of BWM change event subscription request when commanded by a MEC Application + ... Reference ETSI GS MEC 015 3.1.1, clause 6.2.6.4 + ... ETSI GS MEC 015 3.1.1, clause 7.3.2 + ... ETSI GS MEC 015 3.1.1, clause 8.6.3.5 + + [Setup] Create New Subscription Info ${SUB_ID} + Set Suite Variable ${Location} ${response['headers']['Location']} + ${elements} = Split String ${Location} / + ${SUBSCRIPTION_ID} = Get From List ${elements} -1 + Set Suite Variable ${SUBSCRIPTION_ID} ${SUBSCRIPTION_ID} + + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + Remove existing subscription information ${SUBSCRIPTION_ID} + Check HTTP Response Status Code Is 204 + +TC_MEC_MEC015_SRV_BW_SUB_NOT_003_NF + [Documentation] + ... Check that the IUT responds with an error when a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application + ... Reference ETSI GS MEC 015 3.1.1, clause 6.2.6.4 + ... ETSI GS MEC 015 3.1.1, clause 7.3.2 + ... ETSI GS MEC 015 3.1.1, clause 8.6.3.5 + + Remove existing subscription information ${SUBSCRIPTION_ID} + Check HTTP Response Status Code Is 404 + +TP_MEC_MEC015_SRV_BW_SUB_NOT_004_OK + [Documentation] Post Bandwidth Change Event Notification + ... Check that the BWM service sends a notification about a bandwidth utility or the data volume + ... if the BWM service has an associated subscription and the event is generated" + ... Reference ETSI GS MEC 015 3.1.1, clause 6.2.6.2 + ... ETSI GS MEC 015 3.1.1, clause 7.3.2 + ... ETSI GS MEC 015 3.1.1, clause 8.7.3.4 + + ${json}= Get File schemas/BwChgEventNotification.schema.json + # Log Creating mock request and response to handle Bandwidth Change Event 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 + # Create Mock Expectation ${req} ${rsp} + # Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${req} + # Log Verifying results + # Verify Mock Expectation ${req} + # Log Cleaning the endpoint + # Clear Requests ${callback_endpoint} + +*** Keywords *** +Create New Subscription Info + [Arguments] ${content} + 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}/subscriptions ${body} + ${output}= Output response + Set Suite Variable ${response} ${output} + +Modify existing subscription information + [Arguments] ${SUB_ID} ${content} + 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} + ${json_data}= Evaluate json.loads('''${body}''') json + ${new_href}= Set Variable ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT}/${apiRoot}/${apiName}/${apiVersion}/subscriptions/${SUB_ID} + Set To Dictionary ${json_data["_links"]["self"]} href=${new_href} + ${modified_json_string}= Evaluate json.dumps(${json_data}) + + Put ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${SUB_ID} ${modified_json_string} + ${output}= Output response + Set Suite Variable ${response} ${output} + +Create New Subscription Info with Invalid subscriptionType + [Arguments] ${content} + 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} + + # Modify JSON: Change subscriptionType to an invalid value + ${body}= Evaluate json.loads('''${body}''') json + Set To Dictionary ${body} subscriptionType InvalidType + ${modified_json_string}= Evaluate json.dumps(${body}) + + POST ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${modified_json_string} + ${output}= Output response + Set Suite Variable ${response} ${output} + +Remove existing subscription information + [Arguments] ${SUB_ID} + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + Set Headers {"Accept":"application/json"} + Set Headers {"Content-Type":"*/*"} + Set Headers {"Authorization":"${TOKEN}"} + DELETE ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${SUB_ID} + ${output}= Output response + Set Suite Variable ${response} ${output} + +Remove Subscription Info + [Arguments] ${delete_url} + Set Headers {"Accept":"application/json"} + Set Headers {"Content-Type":"application/json"} + Set Headers {"Authorization":"${TOKEN}"} + + DELETE ${delete_url} \ No newline at end of file diff --git a/MEC015/SRV/BW_SUB/environment/variables.txt b/MEC015/SRV/BW_SUB/environment/variables.txt new file mode 100644 index 0000000..205dc37 --- /dev/null +++ b/MEC015/SRV/BW_SUB/environment/variables.txt @@ -0,0 +1,35 @@ +*** Variables *** +####Env variable for the ETSI MEC Sandbox +${apiRoot} +${apiName} bwm +${apiVersion} v1 + +${MEC-APP_SCHEMA} http +${MEC-APP_HOST} mockoon +${MEC-APP_PORT} 3001 + +${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l + + +# Specific variables +${appInsId} 5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f +${NON_EXISTENT_APP_INSTANCE_ID} NON_ESISTENT_APP_INSTANCE_ID + +${SUB_TYPE} BwChgEventSubscription + +${SUB_FILTER} bw_chg +${INVALID_SUB_FILTER} bw_chg_invalid + +${SUB_ID} 123 +${NON_EXISTENT_SUB_ID} + +${HREF} /bwm/v1/subscriptions/1 +${CALLBACK_URI} http://callback.uri/1 + + +${callback_port} 9091 +${callback_uri} http://172.22.1.7:${callback_port} +${callback_endpoint} /bwm/v1/subscriptions +${callback_endpoint_error} /subs_404 +${total_polling_time} 2 min +${polling_interval} 10 sec \ No newline at end of file diff --git a/MEC015/SRV/BW_SUB/jsons/BwChgEventSubscription.json b/MEC015/SRV/BW_SUB/jsons/BwChgEventSubscription.json new file mode 100644 index 0000000..f59f7c7 --- /dev/null +++ b/MEC015/SRV/BW_SUB/jsons/BwChgEventSubscription.json @@ -0,0 +1,9 @@ +{ + "subscriptionType": "BwChgEventSubscription", + "callbackReference": "http://callback.uri/1", + "filterCriteria": [ + { + "appInsId": "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f" + } + ] +} diff --git a/MEC015/SRV/BW_SUB/jsons/BwChgEventSubscription_BR.json b/MEC015/SRV/BW_SUB/jsons/BwChgEventSubscription_BR.json new file mode 100644 index 0000000..b5d8b73 --- /dev/null +++ b/MEC015/SRV/BW_SUB/jsons/BwChgEventSubscription_BR.json @@ -0,0 +1,9 @@ +{ + "subscriptionType": "BwChgEventSubscription", + "filterCriteria": [ + { + "appInsId": "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f" + } + ] + } + \ No newline at end of file diff --git a/MEC015/SRV/BW_SUB/jsons/BwChgEventSubscription_BR_02.json b/MEC015/SRV/BW_SUB/jsons/BwChgEventSubscription_BR_02.json new file mode 100644 index 0000000..9ae5715 --- /dev/null +++ b/MEC015/SRV/BW_SUB/jsons/BwChgEventSubscription_BR_02.json @@ -0,0 +1,13 @@ +{ + "subscriptionType": "BwChgEventSubscription", + "callbackReference": "http://callback.uri/1", + "websockNotifConfig": { + "websocketUri ": "someuri", + "requestWebsocketUri": true + }, + "filterCriteria": [ + { + "appInsId": "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f" + } + ] +} \ No newline at end of file diff --git a/MEC015/SRV/BW_SUB/jsons/UpdateBwChgEventSubscription.json b/MEC015/SRV/BW_SUB/jsons/UpdateBwChgEventSubscription.json new file mode 100644 index 0000000..a7a63ed --- /dev/null +++ b/MEC015/SRV/BW_SUB/jsons/UpdateBwChgEventSubscription.json @@ -0,0 +1,14 @@ +{ + "subscriptionType": "BwChgEventSubscription", + "callbackReference": "http://callback.uri/1", + "_links": { + "self": { + "href": "https://example.com/bwchgeventsubscription/12" + } + }, + "filterCriteria": [ + { + "appInsId": "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f" + } + ] +} \ No newline at end of file diff --git a/MEC015/SRV/BW_SUB/schemas/BwChgEventNotification.schema.json b/MEC015/SRV/BW_SUB/schemas/BwChgEventNotification.schema.json new file mode 100644 index 0000000..2fafe7a --- /dev/null +++ b/MEC015/SRV/BW_SUB/schemas/BwChgEventNotification.schema.json @@ -0,0 +1,92 @@ +{ + "properties": { + "notificationType": { + "description": "Shall be set to 'BwChgEventNotification'.", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + }, + "timeStamp": { + "description": "Time stamp to indicate when the corresponding information elements are sent.", + "properties": { + "seconds": { + "description": "The seconds part of the Time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC.", + "format": "uint32", + "type": "integer", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "Uint32" + }, + "nanoSeconds": { + "description": "The nanoseconds part of the Time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC.", + "format": "uint32", + "type": "integer", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "Uint32" + } + }, + "type": "object", + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "Structure (inlined)" + }, + "dataVolDispersion": { + "items": { + "properties": { + "dataVol": { + "description": "Sum of data volume (UL/DL) exchanged per UE per applications, ETSI TS 123 288 [i.4].", + "format": "uint32", + "type": "integer", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "Uint32" + }, + "appInsId": { + "description": "Application instance identifier.", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + }, + "ueIp": { + "description": "Source address identity of session.", + "type": "string", + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "String" + } + }, + "required": [ + "dataVol", + "appInsId" + ], + "type": "object" + }, + "type": "array", + "x-etsi-mec-cardinality": "1..N", + "x-etsi-mec-origin-type": "Structure (inlined)" + }, + "_links": { + "description": "Link to resource related to this notification.", + "properties": { + "subscription": { + "properties": { + "href": { + "description": "A link to related subscription.", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "LinkType" + } + }, + "required": [ + "href" + ], + "type": "object" + } + }, + "type": "object", + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "Structure (inlined)" + } + }, + "required": [ + "notificationType", + "dataVolDispersion" + ], + "type": "object" +} \ No newline at end of file diff --git a/MEC015/SRV/BW_SUB/schemas/BwChgEventSubscription.schema.json b/MEC015/SRV/BW_SUB/schemas/BwChgEventSubscription.schema.json new file mode 100644 index 0000000..e512296 --- /dev/null +++ b/MEC015/SRV/BW_SUB/schemas/BwChgEventSubscription.schema.json @@ -0,0 +1,90 @@ +{ + "properties": { + "subscriptionType": { + "description": "Shall be set to 'BwChgEventSubscription'.", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + }, + "callbackReference": { + "description": "URI exposed by the client on which to receive notifications via HTTP.", + "type": "string", + "format": "uri", + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "URI" + }, + "websockNotifConfig": { + "properties": { + "requestWebsocketUri": { + "description": "Set to true by the service consumer to indicate that Websocket delivery is requested.", + "type": "boolean", + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "Boolean" + }, + "websocketUri": { + "description": "Set by location server to indicate to the service consumer the Websocket URI to be used for delivering notifications.", + "format": "uri", + "type": "string", + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "Uri" + } + }, + "type": "object", + "x-etsi-ref": "7.5.3" + }, + "_links": { + "description": "Hyperlink related to the resource. This shall be only included in the HTTP responses and in HTTP PUT requests.", + "type": "object", + "properties": { + "self": { + "description": "Self-referring URI. The URI shall be unique within the BWM API as it acts as an ID for the subscription.", + "type": "object", + "properties": { + "href": { + "type": "string", + "format": "uri", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + } + }, + "required": [ + "href" + ], + "x-etsi-ref": "7.5.2" + } + }, + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "Structure (inlined)" + }, + "filterCriteria": { + "description": "List of filtering criteria for the BW change event subscription.", + "type": "array", + "items": { + "type": "object", + "properties": { + "appInsId": { + "description": "Application instance identifier.", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + }, + "ueIp": { + "description": "Source address identity of session.", + "type": "string", + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "String" + } + }, + "required": [ + "appInsId" + ] + }, + "x-etsi-mec-cardinality": "1..N", + "x-etsi-mec-origin-type": "Structure (inlined)" + } + }, + "required": [ + "subscriptionType", + "filterCriteria" + ] +} \ No newline at end of file diff --git a/MEC015/SRV/BW_SUB/schemas/SubscriptionLinkList.schema.json b/MEC015/SRV/BW_SUB/schemas/SubscriptionLinkList.schema.json new file mode 100644 index 0000000..0e9229a --- /dev/null +++ b/MEC015/SRV/BW_SUB/schemas/SubscriptionLinkList.schema.json @@ -0,0 +1,57 @@ +{ + "properties": { + "_links": { + "description": "Hyperlink related to the resource. This shall be only included in the HTTP responses and in HTTP PUT requests.", + "type": "object", + "properties": { + "self": { + "type": "object", + "properties": { + "href": { + "description": "URI referring to a resource", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + } + }, + "required": [ + "href" + ], + "x-etsi-ref": "7.5.2" + }, + "subscriptions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "href": { + "description": "The URI referring to the subscription.", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + }, + "subscriptionType": { + "description": "Type of the subscription. The string shall be set according to the 'subscriptionType' attribute of the associated subscription data type event defined in clause 7.3.", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + } + }, + "required": [ + "href", + "subscriptionType" + ] + }, + "x-etsi-mec-cardinality": "0..N", + "x-etsi-mec-origin-type": "Structure (inlined)" + } + }, + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "Structure (inlined)" + } + }, + "required": [ + "_links" + ], + "type": "object" +} \ No newline at end of file diff --git a/MEC015/SRV/BW_SUB_LOOKUP/BwEventSubscriptionLookup.robot b/MEC015/SRV/BW_SUB_LOOKUP/BwEventSubscriptionLookup.robot new file mode 100644 index 0000000..9787e2b --- /dev/null +++ b/MEC015/SRV/BW_SUB_LOOKUP/BwEventSubscriptionLookup.robot @@ -0,0 +1,179 @@ +''[Documentation] robot --outputdir ../../../outputs ./BwEventSubscription.robot +... Test Suite to validate Bandwidth Management Event Subscription (BW) operations. + +*** Settings *** +Resource environment/variables.txt +Resource ../../../pics.txt +Resource ../../../GenericKeywords.robot +Library Collections +Library String +Library OperatingSystem +Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_verify=false + +*** Test Cases *** +TC_MEC_MEC015_SRV_BWSUBLOOKUP_001_OK + [Documentation] + ... Check that the IUT responds with a list of BWM change event susbsciption when queried by a MEC Application + ... Reference ETSI GS MEC 015 3.1.1, clause 7.3.3 + ... ETSI GS MEC 015 3.1.1, clause 8.5.3.1 + + [Setup] Create New Subscription Info BwChgEventSubscription + Set Suite Variable ${Location} ${response['headers']['Location']} + + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + Retrieve the list of subscription information + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is SubscriptionLinkList + + [TearDown] Remove Subscription Info ${Location} + +TC_MEC_MEC015_SRV_BWSUBLOOKUP_001_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 015 3.1.1, clause 7.3.3 + ... ETSI GS MEC 015 3.1.1, clause 8.5.3.1 + + [Setup] Create New Subscription Info BwChgEventSubscription + Set Suite Variable ${Location} ${response['headers']['Location']} + + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + Get list of subscriptions using query parameters ${INVALID_SUB_FILTER} + Check HTTP Response Status Code Is 400 + + [TearDown] Remove Subscription Info ${Location} + +TC_MEC_MEC015_SRV_BWSUBLOOKUP_001_NF + [Documentation] + ... Check that the IUT responds with an error when no subscription are created + ... Reference ETSI GS MEC 015 3.1.1, clause 7.3.3 + ... ETSI GS MEC 015 3.1.1, clause 8.5.3.1 + + Retrieve the list of subscription information + Check HTTP Response Status Code Is 404 + +TC_MEC_MEC015_SRV_BWSUBLOOKUP_002_OK + [Documentation] + ... Check that the IUT responds with a list of subscriptions for notifications on services availability when queried by a MEC Application - Filter on subscription_type + ... Reference ETSI GS MEC 015 3.1.1, clause 6.2.6 + ... ETSI GS MEC 015 3.1.1, clause 7.3.3 + ... ETSI GS MEC 015 3.1.1, clause 8.5.3.1 + + [Setup] Create New Subscription Info BwChgEventSubscription + Set Suite Variable ${Location} ${response['headers']['Location']} + + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + Get list of subscriptions using query parameters ${SUB_FILTER} + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is SubscriptionLinkList + + [TearDown] Remove Subscription Info ${Location} + +TC_MEC_MEC015_SRV_BWSUBLOOKUP_002_NF + [Documentation] + ... Check that the IUT responds with with an error when no subscription matches with the filter - Filter on subscription_type + ... Reference ETSI GS MEC 015 3.1.1, clause 6.2.6 + ... ETSI GS MEC 015 3.1.1, clause 7.3.3 + ... ETSI GS MEC 015 3.1.1, clause 8.5.3.1 + + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + Get list of subscriptions using query parameters ${SUB_FILTER} + Check HTTP Response Status Code Is 404 + + +TC_MEC_MEC015_SRV_BWSUBLOOKUP_003_OK + [Documentation] + ... Check that the IUT responds with a BWM change event susbsciption when queried by a MEC Application + ... Reference ETSI GS MEC 015 3.1.1, clause 7.3.2 + ... ETSI GS MEC 015 3.1.1, clause 8.6.3.1 + + [Setup] Create New Subscription Info BwChgEventSubscription + + Set Suite Variable ${Location} ${response['body']['_links']['self']['href']} + ${elements} = Split String ${Location} / + ${SUBSCRIPTION_ID} = Get From List ${elements} -1 + Set Suite Variable ${SUBSCRIPTION_ID} ${SUBSCRIPTION_ID} + + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + + Retrieve existing subscription information ${SUBSCRIPTION_ID} + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is BwChgEventSubscription + + ${subscription_type} Get value entry from JSON file BwChgEventSubscription subscriptionType + ${callbackReference} Get value entry from JSON file BwChgEventSubscription callbackReference + ${filterCriteria} Get value entry from JSON file BwChgEventSubscription filterCriteria + + Should Be Equal As Strings ${response['body']['subscriptionType']} ${subscription_type} + Should Be Equal As Strings ${response['body']['callbackReference']} ${callbackReference} + Should Be Equal As Strings ${response['body']['filterCriteria']['appInsId']} ${filterCriteria['appInsId']} + + [TearDown] Remove Subscription Info ${Location} + +TC_MEC_MEC015_SRV_BWSUBLOOKUP_003_NF + [Documentation] + ... Check that the IUT responds with an error when a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application + ... Reference ETSI GS MEC 015 3.1.1, clause 7.3.2 + ... ETSI GS MEC 015 3.1.1, clause 8.6.3.1 + + Retrieve existing subscription information ${SUB_ID} + Check HTTP Response Status Code Is 404 + + +*** Keywords *** +Retrieve the list of subscription information + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + Set Headers {"Accept":"application/json"} + Set Headers {"Content-Type":"*/*"} + Set Headers {"Authorization":"${TOKEN}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions + ${output}= Output response + Set Suite Variable ${response} ${output} + +Retrieve existing subscription information + [Arguments] ${SUB_ID} + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + Set Headers {"Accept":"application/json"} + Set Headers {"Content-Type":"*/*"} + Set Headers {"Authorization":"${TOKEN}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${SUB_ID} + ${output}= Output response + Set Suite Variable ${response} ${output} + +Get list of subscriptions using query parameters + [Arguments] ${subscription_type} + Should Be True ${PIC_MEC_SYSTEM} == 1 + Should Be True ${PIC_SERVICES} == 1 + Set Headers {"Accept":"application/json"} + Set Headers {"Content-Type":"*/*"} + Set Headers {"Authorization":"${TOKEN}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?subscription_type=${subscription_type} + ${output}= Output response + Set Suite Variable ${response} ${output} + +Create New Subscription Info + [Arguments] ${content} + 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}/subscriptions ${body} + ${output}= Output response + Set Suite Variable ${response} ${output} + +Remove Subscription Info + [Arguments] ${delete_url} + Set Headers {"Accept":"application/json"} + Set Headers {"Content-Type":"application/json"} + Set Headers {"Authorization":"${TOKEN}"} + + DELETE ${delete_url} \ No newline at end of file diff --git a/MEC015/SRV/BW_SUB_LOOKUP/environment/variables.txt b/MEC015/SRV/BW_SUB_LOOKUP/environment/variables.txt new file mode 100644 index 0000000..48f3045 --- /dev/null +++ b/MEC015/SRV/BW_SUB_LOOKUP/environment/variables.txt @@ -0,0 +1,25 @@ +*** Variables *** +####Env variable for the ETSI MEC Sandbox +${apiRoot} +${apiName} bwm +${apiVersion} v1 + +${MEC-APP_SCHEMA} http +${MEC-APP_HOST} mockoon +${MEC-APP_PORT} 3001 + +${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l + + +# Specific variables +${appInsId} 5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f +${NON_EXISTENT_APP_INSTANCE_ID} NON_ESISTENT_APP_INSTANCE_ID + +${SUB_TYPE} BwChgEventSubscription + +${SUB_FILTER} bw_chg +${INVALID_SUB_FILTER} bw_chg_invalid + +${SUB_ID} 123 +${HREF} /bwm/v1/subscriptions/1 +${CALLBACK_URI} http://callback.uri/1 diff --git a/MEC015/SRV/BW_SUB_LOOKUP/jsons/BwChgEventSubscription.json b/MEC015/SRV/BW_SUB_LOOKUP/jsons/BwChgEventSubscription.json new file mode 100644 index 0000000..f59f7c7 --- /dev/null +++ b/MEC015/SRV/BW_SUB_LOOKUP/jsons/BwChgEventSubscription.json @@ -0,0 +1,9 @@ +{ + "subscriptionType": "BwChgEventSubscription", + "callbackReference": "http://callback.uri/1", + "filterCriteria": [ + { + "appInsId": "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f" + } + ] +} diff --git a/MEC015/SRV/BW_SUB_LOOKUP/schemas/BwChgEventSubscription.schema.json b/MEC015/SRV/BW_SUB_LOOKUP/schemas/BwChgEventSubscription.schema.json new file mode 100644 index 0000000..e512296 --- /dev/null +++ b/MEC015/SRV/BW_SUB_LOOKUP/schemas/BwChgEventSubscription.schema.json @@ -0,0 +1,90 @@ +{ + "properties": { + "subscriptionType": { + "description": "Shall be set to 'BwChgEventSubscription'.", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + }, + "callbackReference": { + "description": "URI exposed by the client on which to receive notifications via HTTP.", + "type": "string", + "format": "uri", + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "URI" + }, + "websockNotifConfig": { + "properties": { + "requestWebsocketUri": { + "description": "Set to true by the service consumer to indicate that Websocket delivery is requested.", + "type": "boolean", + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "Boolean" + }, + "websocketUri": { + "description": "Set by location server to indicate to the service consumer the Websocket URI to be used for delivering notifications.", + "format": "uri", + "type": "string", + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "Uri" + } + }, + "type": "object", + "x-etsi-ref": "7.5.3" + }, + "_links": { + "description": "Hyperlink related to the resource. This shall be only included in the HTTP responses and in HTTP PUT requests.", + "type": "object", + "properties": { + "self": { + "description": "Self-referring URI. The URI shall be unique within the BWM API as it acts as an ID for the subscription.", + "type": "object", + "properties": { + "href": { + "type": "string", + "format": "uri", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + } + }, + "required": [ + "href" + ], + "x-etsi-ref": "7.5.2" + } + }, + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "Structure (inlined)" + }, + "filterCriteria": { + "description": "List of filtering criteria for the BW change event subscription.", + "type": "array", + "items": { + "type": "object", + "properties": { + "appInsId": { + "description": "Application instance identifier.", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + }, + "ueIp": { + "description": "Source address identity of session.", + "type": "string", + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "String" + } + }, + "required": [ + "appInsId" + ] + }, + "x-etsi-mec-cardinality": "1..N", + "x-etsi-mec-origin-type": "Structure (inlined)" + } + }, + "required": [ + "subscriptionType", + "filterCriteria" + ] +} \ No newline at end of file diff --git a/MEC015/SRV/BW_SUB_LOOKUP/schemas/SubscriptionLinkList.schema.json b/MEC015/SRV/BW_SUB_LOOKUP/schemas/SubscriptionLinkList.schema.json new file mode 100644 index 0000000..0e9229a --- /dev/null +++ b/MEC015/SRV/BW_SUB_LOOKUP/schemas/SubscriptionLinkList.schema.json @@ -0,0 +1,57 @@ +{ + "properties": { + "_links": { + "description": "Hyperlink related to the resource. This shall be only included in the HTTP responses and in HTTP PUT requests.", + "type": "object", + "properties": { + "self": { + "type": "object", + "properties": { + "href": { + "description": "URI referring to a resource", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + } + }, + "required": [ + "href" + ], + "x-etsi-ref": "7.5.2" + }, + "subscriptions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "href": { + "description": "The URI referring to the subscription.", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + }, + "subscriptionType": { + "description": "Type of the subscription. The string shall be set according to the 'subscriptionType' attribute of the associated subscription data type event defined in clause 7.3.", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "String" + } + }, + "required": [ + "href", + "subscriptionType" + ] + }, + "x-etsi-mec-cardinality": "0..N", + "x-etsi-mec-origin-type": "Structure (inlined)" + } + }, + "x-etsi-mec-cardinality": "0..1", + "x-etsi-mec-origin-type": "Structure (inlined)" + } + }, + "required": [ + "_links" + ], + "type": "object" +} \ No newline at end of file diff --git a/MEC015/SRV/MTS/MultiAccessTrafficSteering.robot b/MEC015/SRV/MTS/MultiAccessTrafficSteering.robot index 46bf70e..7e10162 100644 --- a/MEC015/SRV/MTS/MultiAccessTrafficSteering.robot +++ b/MEC015/SRV/MTS/MultiAccessTrafficSteering.robot @@ -15,9 +15,9 @@ TC_MEC_MEC015_SRV_MTS_001_OK ... Check that the IUT responds with the Multi-access Traffic Steering information ... when queried by a MEC Application ... - ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.4, - ... ETSI GS MEC 015 V2.2.1, clause 9.3.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.6, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.4, + ... ETSI GS MEC 015 v3.1.1, clause 9.3.3.1 Retrieve MTS capability information Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is MtsCapabilityInfo @@ -28,9 +28,9 @@ TC_MEC_MEC015_SRV_MTS_002_OK_01 ... Check that the IUT responds with the list of configured Multi-access Traffic Steering ... when queried by a MEC Application - none ... - ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, - ... ETSI GS MEC 015 V2.2.1, clause 9.3.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.6, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5, + ... ETSI GS MEC 015 v3.1.1, clause 9.3.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] @@ -45,9 +45,9 @@ TC_MEC_MEC015_SRV_MTS_002_OK_02 ... Check that the IUT responds with the list of configured Multi-access Traffic Steering ... when queried by a MEC Application - app_instance_id ... - ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, - ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.6, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5, + ... ETSI GS MEC 015 v3.1.1, clause 9.5.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] @@ -66,9 +66,9 @@ TC_MEC_MEC015_SRV_MTS_002_OK_03 ... Check that the IUT responds with the list of configured Multi-access Traffic Steering ... when queried by a MEC Application - app_name ... - ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, - ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.6, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5, + ... ETSI GS MEC 015 v3.1.1, clause 9.5.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific Retrieve MTS session list information using filter ${APP_NAME_FILTER} ${APP_NAME} @@ -81,9 +81,9 @@ TC_MEC_MEC015_SRV_MTS_002_OK_03 ... Check that the IUT responds with the list of configured Multi-access Traffic Steering ... when queried by a MEC Application - session_id ... - ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, - ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.6, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5, + ... ETSI GS MEC 015 v3.1.1, clause 9.5.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific Retrieve MTS session list information using filter ${SESSION_ID_FILTER} ${SESSION_ID} Check HTTP Response Status Code Is 200 @@ -97,9 +97,9 @@ TC_MEC_MEC015_SRV_MTS_002_BR ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, - ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.6, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5, + ... ETSI GS MEC 015 v3.1.1, clause 9.5.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] @@ -113,7 +113,7 @@ TC_MEC_MEC015_SRV_MTS_002_NF [Documentation] ... Check that the IUT responds with an error ... when a request with an unknown resource URI is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 9.5.3.1 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml [Setup] Delete APP Instance ${NOT_EXISTING_APP_INSTANCE_ID} Retrieve MTS session list information using filter ${CORRECT_FILTER} ${NOT_EXISTING_APP_INSTANCE_ID} @@ -125,9 +125,9 @@ TC_MEC_MEC015_SRV_MTS_003_OK_01 [Documentation] ... Check that the IUT creates a MTS session when queried by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, - ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.2 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.6, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5, + ... ETSI GS MEC 015 v3.1.1, clause 9.5.3.2 [Setup] Create new App Instance CreateAppInstanceRequest Register MTS session MtsSessionInfoApplicationSpecific @@ -150,9 +150,9 @@ TC_MEC_MEC015_SRV_MTS_003_OK_02 [Documentation] ... Check that the IUT creates a MTS session when queried by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.7 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 - ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.2 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.7 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5 + ... ETSI GS MEC 015 v3.1.1, clause 9.5.3.2 #[Setup] Create new App Instance CreateAppInstanceRequest Register MTS session MtsSessionInfoSessionSpecific Check HTTP Response Status Code Is 201 @@ -177,9 +177,9 @@ TC_MEC_MEC015_SRV_MTS_003_BR ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.7 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 - ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.2 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.7 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5 + ... ETSI GS MEC 015 v3.1.1, clause 9.5.3.2 [Setup] Create new App Instance CreateAppInstanceRequest Register MTS session MtsSessionInfoApplicationSpecific_BR Check HTTP Response Status Code Is 400 @@ -190,9 +190,9 @@ TC_MEC_MEC015_SRV_MTS_004_OK ... Check that the IUT responds with a configured Multi-access Traffic Steering session ... when queried by a MEC Application ... - ... ETSI GS MEC 015 V2.2.1, clause 6.2.10 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 - ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.10 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5 + ... ETSI GS MEC 015 v3.1.1, clause 9.4.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] @@ -215,9 +215,9 @@ TC_MEC_MEC015_SRV_MTS_004_BR ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application ... - ... ETSI GS MEC 015 V2.2.1, clause 6.2.10 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 - ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.10 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5 + ... ETSI GS MEC 015 v3.1.1, clause 9.4.3.1 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml Retrieve single MTS session ${WRONG_SESSION_ID} Check HTTP Response Status Code Is 404 @@ -226,7 +226,7 @@ TC_MEC_MEC015_SRV_MTS_004_NF [Documentation] ... Check that the IUT responds with an error ... when a request with an unknown resource URI is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 9.4.3.1 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml [Setup] Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} Retrieve single MTS session ${NOT_EXISTING_SESSION_ID} @@ -237,9 +237,9 @@ TC_MEC_MEC015_SRV_MTS_005_OK [Documentation] ... Check that the IUT updates the information about an individual MTS session ... when commanded by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.9 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 - ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.2 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.9 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5 + ... ETSI GS MEC 015 v3.1.1, clause 9.4.3.2 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] @@ -260,9 +260,9 @@ TC_MEC_MEC015_SRV_MTS_005_OK TC_MEC_MEC015_SRV_MTS_005_BR [Documentation] ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.9 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 - ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.2 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.9 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5 + ... ETSI GS MEC 015 v3.1.1, clause 9.4.3.2 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / @@ -275,9 +275,9 @@ TC_MEC_MEC015_SRV_MTS_005_BR TC_MEC_MEC015_SRV_MTS_005_NF [Documentation] ... Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.9 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 - ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.2 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.9 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5 + ... ETSI GS MEC 015 v3.1.1, clause 9.4.3.2 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml #[Setup] Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} Update requested requirements on the MTS Service ${NOT_EXISTING_SESSION_ID} MtsSessionInfoApplicationSpecificUpdate @@ -289,9 +289,9 @@ TC_MEC_MEC015_SRV_MTS_006_OK ... Check that the IUT deregisters a MTS session ... when commanded by a MEC Application ... - ... ETSI GS MEC 015 V2.2.1, clause 6.2.8 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 - ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.3 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.8 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5 + ... ETSI GS MEC 015 v3.1.1, clause 9.4.3.3 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] @@ -303,9 +303,9 @@ TC_MEC_MEC015_SRV_MTS_006_NF ... Check that the IUT deregisters a MTS session ... when commanded by a MEC Application ... - ... ETSI GS MEC 015 V2.2.1, clause 6.2.8 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 - ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.3 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.8 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.5 + ... ETSI GS MEC 015 v3.1.1, clause 9.4.3.3 [Setup] Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} Check HTTP Response Status Code Is 404 diff --git a/MEC015/SRV/TM/TrafficManagement.robot b/MEC015/SRV/TM/TrafficManagement.robot index 18d908a..184f810 100644 --- a/MEC015/SRV/TM/TrafficManagement.robot +++ b/MEC015/SRV/TM/TrafficManagement.robot @@ -15,9 +15,9 @@ TC_MEC_MEC015_SRV_TM_001_OK_01 [Documentation] ... Check that the IUT responds with the list of configured bandwidth allocations ... when queried by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.5, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2, + ... ETSI GS MEC 015 v3.1.1, clause 8.4.3.1 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Retrieve the list of configured bandwidth allocations Check HTTP Response Status Code Is 200 @@ -29,9 +29,9 @@ TC_MEC_MEC015_SRV_TM_001_OK_02 [Documentation] ... Check that the IUT responds with the list of configured bandwidth allocations ... when queried by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.5, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2, + ... ETSI GS MEC 015 v3.1.1, clause 8.4.3.1 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Retrieve the list of configured bandwidth using filter ${CORRECT_FILTER} ${APP_INSTANCE_ID} Check HTTP Response Status Code Is 200 @@ -48,9 +48,9 @@ TC_MEC_MEC015_SRV_TM_001_OK_03 [Documentation] ... Check that the IUT responds with a configured bandwidth allocation ... when queried by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.5, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2, + ... ETSI GS MEC 015 v3.1.1, clause 8.4.3.1 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Retrieve the list of configured bandwidth using filter ${APP_NAME_FILTER} ${APP_NAME} Check HTTP Response Status Code Is 200 @@ -61,9 +61,9 @@ TC_MEC_MEC015_SRV_TM_001_OK_04 [Documentation] ... Check that the IUT responds with a configured bandwidth allocation ... when queried by a MEC Application - session_id - ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.5, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2, + ... ETSI GS MEC 015 v3.1.1, clause 8.4.3.1 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Retrieve the list of configured bandwidth using filter ${SESSION_ID_FILTER} ${SESSION_ID} Check HTTP Response Status Code Is 200 @@ -76,7 +76,7 @@ TC_MEC_MEC015_SRV_TM_001_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 015 V2.2.1, clause 8.4.3.1 + ... Reference ETSI GS MEC 015 v3.1.1, clause 8.4.3.1 ... Reference https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.json [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Retrieve the list of configured bandwidth using filter ${BAD_FILTER} ${APP_INSTANCE_ID} @@ -88,9 +88,9 @@ TC_MEC_MEC015_SRV_TM_001_NF_01 [Documentation] ... Check that the IUT responds with an error when ... a request with an unknown resource URI is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.5, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2, + ... ETSI GS MEC 015 v3.1.1, clause 8.4.3.1 Retrieve the list of configured bandwidth using filter ${CORRECT_FILTER} ${NON_EXISTENT_APP_INSTANCE_ID} Check HTTP Response Status Code Is 404 @@ -98,9 +98,9 @@ TC_MEC_MEC015_SRV_TM_001_NF_02 [Documentation] ... Check that the IUT responds with an error ... when a request with an unknown resource URI is sent by a MEC Application - app_name - ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.5, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2, + ... ETSI GS MEC 015 v3.1.1, clause 8.4.3.1 Retrieve the list of configured bandwidth using filter ${APP_NAME_FILTER} ${NON_EXISTENT_APP_NAME} Check HTTP Response Status Code Is 404 @@ -108,9 +108,9 @@ TC_MEC_MEC015_SRV_TM_001_NF_03 [Documentation] ... Check that the IUT responds with an error ... when a request with an unknown resource URI is sent by a MEC Application - session_id - ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.5, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2, + ... ETSI GS MEC 015 v3.1.1, clause 8.4.3.1 Retrieve the list of configured bandwidth using filter ${SESSION_ID_FILTER} ${NON_EXISTENT_SESSION_ID} Check HTTP Response Status Code Is 404 @@ -118,9 +118,9 @@ TC_MEC_MEC015_SRV_TM_001_NF_03 TC_MEC_MEC015_SRV_TM_002_OK [Documentation] ... Check that the IUT acknowledges a creation of a bandwidthAllocation resource - ... ETSI GS MEC 015 V2.2.1, clause 6.2.2, - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.4 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.2, + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2, + ... ETSI GS MEC 015 v3.1.1, clause 8.4.3.4 [Setup] Create new App Instance CreateAppInstanceRequest Registration for bandwidth services ${APP_INSTANCE_ID} BwInfoApplicationSpecific Check HTTP Response Status Code Is 201 @@ -140,7 +140,7 @@ TC_MEC_MEC015_SRV_TM_002_BR_01 [Documentation] ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.4 + ... ETSI GS MEC 015 v3.1.1, clause 8.4.3.4 ... Reference https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.json [Setup] Create new App Instance CreateAppInstanceRequest Registration for bandwidth services ${APP_INSTANCE_ID} BwInfo_BR @@ -151,7 +151,7 @@ TC_MEC_MEC015_SRV_TM_002_BR_02 [Documentation] ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.4 + ... ETSI GS MEC 015 v3.1.1, clause 8.4.3.4 ... Reference https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.json [Setup] Create new App Instance CreateAppInstanceRequest Registration for bandwidth services ${APP_INSTANCE_ID} BwInfo_BR2 @@ -164,9 +164,9 @@ TC_MEC_MEC015_SRV_TM_003_OK [Documentation] ... Check that the IUT responds with the configured bandwidth allocation ... when queried by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.5 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.5 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2 + ... ETSI GS MEC 015 v3.1.1, clause 8.3.3.1 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Get a bandwidth allocation ${ALLOCATION_ID} Check HTTP Response Status Code Is 200 @@ -179,9 +179,9 @@ TC_MEC_MEC015_SRV_TM_003_NF [Documentation] ... Check that the IUT responds with an error ... when a request for an unknown URI is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.5 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.1 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.5 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2 + ... ETSI GS MEC 015 v3.1.1, clause 8.3.3.1 [Setup] Unregister Bandwidth Management Service ${NON_EXISTENT_ALLOCATION_ID} Get a bandwidth allocation ${NON_EXISTENT_ALLOCATION_ID} Check HTTP Response Status Code Is 404 @@ -192,9 +192,9 @@ TC_MEC_MEC015_SRV_TM_004_OK [Documentation] ... Check that the IUT updates the requested bandwidth requirements ... when commanded by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.2 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.4 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2 + ... ETSI GS MEC 015 v3.1.1, clause 8.3.3.2 #[Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Update a bandwidth allocation ${ALLOCATION_ID} BwInfoUpdate ${appInsId} Get value entry from JSON file BwInfoUpdate appInsId @@ -211,9 +211,9 @@ TC_MEC_MEC015_SRV_TM_004_OK TC_MEC_MEC015_SRV_TM_004_BR_01 [Documentation] ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.2 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.4 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2 + ... ETSI GS MEC 015 v3.1.1, clause 8.3.3.2 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Update a bandwidth allocation ${ALLOCATION_ID} BwInfoUpdate_BR Check HTTP Response Status Code Is 400 @@ -223,9 +223,9 @@ TC_MEC_MEC015_SRV_TM_004_BR_01 TC_MEC_MEC015_SRV_TM_004_BR_02 [Documentation] ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.2 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.4 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2 + ... ETSI GS MEC 015 v3.1.1, clause 8.3.3.2 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Update a bandwidth allocation ${ALLOCATION_ID} BwInfoUpdate_BR2 Check HTTP Response Status Code Is 400 @@ -235,9 +235,9 @@ TC_MEC_MEC015_SRV_TM_004_BR_02 TC_MEC_MEC015_SRV_TM_004_NF [Documentation] ... Check that the IUT responds with an error when a request sent by a MEC Application doesn't comply with a required condition - ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.2 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.4 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2 + ... ETSI GS MEC 015 v3.1.1, clause 8.3.3.2 #[Setup] Delete APP Instance ${NON_EXISTENT_ALLOCATION_ID} Update a bandwidth allocation ${NON_EXISTENT_ALLOCATION_ID} BwInfoUpdate @@ -248,9 +248,9 @@ TC_MEC_MEC015_SRV_TM_005_OK [Documentation] ... Check that the IUT when provided with just the changes (deltas) ... updates the requested bandwidth requirements when commanded by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.3 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.4 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2 + ... ETSI GS MEC 015 v3.1.1, clause 8.3.3.3 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Request a deltas changes ${ALLOCATION_ID} BwInfoDeltas @@ -268,9 +268,9 @@ TC_MEC_MEC015_SRV_TM_005_BR_01 [Documentation] ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.3 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.4 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2 + ... ETSI GS MEC 015 v3.1.1, clause 8.3.3.3 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Request a deltas changes ${ALLOCATION_ID} BwInfoDeltas_BR Check HTTP Response Status Code Is 400 @@ -279,9 +279,9 @@ TC_MEC_MEC015_SRV_TM_005_BR_02 [Documentation] ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be present - ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.3 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.4 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2 + ... ETSI GS MEC 015 v3.1.1, clause 8.3.3.3 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Request a deltas changes ${ALLOCATION_ID} BwInfoDeltas_BR2 Check HTTP Response Status Code Is 400 @@ -290,9 +290,9 @@ TC_MEC_MEC015_SRV_TM_005_BR_02 TC_MEC_MEC015_SRV_TM_005_NF [Documentation] ... Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.3 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.4 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2 + ... ETSI GS MEC 015 v3.1.1, clause 8.3.3.3 [Setup] Delete APP Instance ${NON_EXISTENT_ALLOCATION_ID} Request a deltas changes ${NON_EXISTENT_ALLOCATION_ID} BwInfoDeltas Check HTTP Response Status Code Is 404 @@ -301,9 +301,9 @@ TC_MEC_MEC015_SRV_TM_005_NF TC_MEC_MEC015_SRV_TM_006_OK [Documentation] ... Check that the IUT unregisters from the Bandwidth Management Service when commanded by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.3 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.5 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.3 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2 + ... ETSI GS MEC 015 v3.1.1, clause 8.3.3.5 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Unregister Bandwidth Management Service ${ALLOCATION_ID} Check HTTP Response Status Code Is 204 @@ -312,9 +312,9 @@ TC_MEC_MEC015_SRV_TM_006_OK TC_MEC_MEC015_SRV_TM_006_NF [Documentation] ... Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application - ... ETSI GS MEC 015 V2.2.1, clause 6.2.3 - ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.5 + ... ETSI GS MEC 015 v3.1.1, clause 6.2.3 + ... ETSI GS MEC 015 v3.1.1, clause 7.2.2 + ... ETSI GS MEC 015 v3.1.1, clause 8.3.3.5 [Setup] Unregister Bandwidth Management Service ${NON_EXISTENT_ALLOCATION_ID} Unregister Bandwidth Management Service ${NON_EXISTENT_ALLOCATION_ID} Check HTTP Response Status Code Is 404 -- GitLab From c863e7198305d9e997460c1de722ad988fb1b413 Mon Sep 17 00:00:00 2001 From: Muhammad Umair Khan Date: Mon, 3 Mar 2025 10:15:18 +0500 Subject: [PATCH 03/10] update MEC 016 reference version from v2.2.1 to v3.1.1 --- MEC016/MEO/UEAPPCTX/SysUeAppsContext.robot | 16 ++++++++-------- .../MEO/UEAPPLOC/SysUeApplicationsLocation.robot | 6 +++--- MEC016/MEO/UEAPPS/SysUeApplications.robot | 8 ++++---- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/MEC016/MEO/UEAPPCTX/SysUeAppsContext.robot b/MEC016/MEO/UEAPPCTX/SysUeAppsContext.robot index 5766d4b..736322e 100644 --- a/MEC016/MEO/UEAPPCTX/SysUeAppsContext.robot +++ b/MEC016/MEO/UEAPPCTX/SysUeAppsContext.robot @@ -14,7 +14,7 @@ Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_v 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 + ... Reference ETSI GS MEC 016 v3.1.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 @@ -31,7 +31,7 @@ TC_MEC_MEC016_MEO_UEAPPCTX_001_OK TC_MEC_MEC016_MEO_UEAPPCTX_001_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.4.3.4 + ... Reference ETSI GS MEC 016 v3.1.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 @@ -42,7 +42,7 @@ TC_MEC_MEC016_MEO_UEAPPCTX_001_BR 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 + ... Reference ETSI GS MEC 016 v3.1.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 @@ -53,7 +53,7 @@ TC_MEC_MEC016_MEO_UEAPPCTX_001_NF 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 + ... Reference ETSI GS MEC 016 v3.1.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 @@ -71,7 +71,7 @@ TC_MEC_MEC016_MEO_UEAPPCTX_002_OK 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 ETSI GS MEC 016 v3.1.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 @@ -88,7 +88,7 @@ TC_MEC_MEC016_MEO_UEAPPCTX_002_BR 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 + ... Reference ETSI GS MEC 016 3.1.1, clause 7.5.3.2 ... Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml # Preamble Should Be True ${PIC_MEC_SYSTEM} == 1 @@ -101,7 +101,7 @@ TC_MEC_MEC016_MEO_UEAPPCTX_002_NF 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 + ... Reference ETSI GS MEC 016 3.1.1, clause 7.5.3.5 ... Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext # Preamble Should Be True ${PIC_MEC_SYSTEM} == 1 @@ -117,7 +117,7 @@ TC_MEC_MEC016_MEO_UEAPPCTX_003_OK 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 + ... Reference ETSI GS MEC 016 3.1.1, clause 7.5.3.5 ... Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext # Preamble Should Be True ${PIC_MEC_SYSTEM} == 1 diff --git a/MEC016/MEO/UEAPPLOC/SysUeApplicationsLocation.robot b/MEC016/MEO/UEAPPLOC/SysUeApplicationsLocation.robot index 34a03d6..e58b290 100644 --- a/MEC016/MEO/UEAPPLOC/SysUeApplicationsLocation.robot +++ b/MEC016/MEO/UEAPPLOC/SysUeApplicationsLocation.robot @@ -13,7 +13,7 @@ Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_v TP_MEC_MEC016_MEO_UEAPPLOC_001_OK [Documentation] ... Check that the IUT sends the locations available for instantiation of a specific user application when requested by an UE Application - ... Reference ETSI GS MEC 016 2.2.1, clause 7.6.3.4 + ... Reference ETSI GS MEC 016 3.1.1, clause 7.6.3.4 ... Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 @@ -26,7 +26,7 @@ TP_MEC_MEC016_MEO_UEAPPLOC_001_OK TP_MEC_MEC016_MEO_UEAPPLOC_001_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 2.2.1, clause 7.6.3.4 + ... Reference ETSI GS MEC 016 3.1.1, clause 7.6.3.4 ... Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 @@ -37,7 +37,7 @@ TP_MEC_MEC016_MEO_UEAPPLOC_001_BR TP_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 2.2.1, clause 7.6.3.4 + ... Reference ETSI GS MEC 016 3.1.1, clause 7.6.3.4 ... Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 diff --git a/MEC016/MEO/UEAPPS/SysUeApplications.robot b/MEC016/MEO/UEAPPS/SysUeApplications.robot index 8b9f1e6..f001b08 100644 --- a/MEC016/MEO/UEAPPS/SysUeApplications.robot +++ b/MEC016/MEO/UEAPPS/SysUeApplications.robot @@ -14,7 +14,7 @@ Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_v TP_MEC_MEC016_MEO_UEAPPS_001_OK [Documentation] ... Check that the IUT responds with the list of user applications available when requested by an UE Application - ... Reference ETSI GS MEC 016 v2.2.1, clause 7.3.3.1 + ... Reference ETSI GS MEC 016 v3.1.1, clause 7.3.3.1 ... Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 @@ -31,7 +31,7 @@ TP_MEC_MEC016_MEO_UEAPPS_001_OK TP_MEC_MEC016_MEO_UEAPPS_001_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 v2.2.1, clause 7.3.3.1 + ... Reference ETSI GS MEC 016 v3.1.1, clause 7.3.3.1 ... Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 @@ -42,7 +42,7 @@ TP_MEC_MEC016_MEO_UEAPPS_001_NF TP_MEC_MEC016_MEO_UEAPPS_002_OK [Documentation] ... Check that the IUT responds with the list of user applications available when requested by an UE Application - ... Reference ETSI GS MEC 016 2.2.1, clause 7.3.3.1 + ... Reference ETSI GS MEC 016 3.1.1, clause 7.3.3.1 ... Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 @@ -58,7 +58,7 @@ TP_MEC_MEC016_MEO_UEAPPS_002_OK TP_MEC_MEC016_MEO_UEAPPS_002_BR [Documentation] ... Check that the IUT responds with the list of user applications available when requested by an UE Application - ... Reference ETSI GS MEC 016 2.2.1, clause 7.3.3.1 + ... Reference ETSI GS MEC 016 3.1.1, clause 7.3.3.1 ... Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList Should Be True ${PIC_MEC_SYSTEM} == 1 Should Be True ${PIC_SERVICES} == 1 -- GitLab From a332bb4bb4cbfb84fea85d62122e9955931df7b5 Mon Sep 17 00:00:00 2001 From: Umair Zafar Date: Wed, 9 Apr 2025 12:46:47 +0500 Subject: [PATCH 04/10] add onboarding state onboarded variable --- MEC010p2/MEO/PKGM/environment/variables.txt | 1 + MEC010p2/MEPM/PKGM/environment/variables.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/MEC010p2/MEO/PKGM/environment/variables.txt b/MEC010p2/MEO/PKGM/environment/variables.txt index e377698..4917dbd 100644 --- a/MEC010p2/MEO/PKGM/environment/variables.txt +++ b/MEC010p2/MEO/PKGM/environment/variables.txt @@ -23,6 +23,7 @@ ${APP_NAME} appName ${CHECKSUM} SHA-256 ${OPERATIONAL_STATE} ENABLED ${ONBOARDING_STATE} CREATED +${ONBOARDING_STATE_ONBOARDED} ONBOARDED ${USAGE_STATE} NOT_IN_USE ${APP_PKG_ID} 01234782-2c70-4e47-9a4e-0ee3a1a00123 ${ON_BOARDED_APP_PKG_ID} 5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f diff --git a/MEC010p2/MEPM/PKGM/environment/variables.txt b/MEC010p2/MEPM/PKGM/environment/variables.txt index fa58be8..3c8e44d 100644 --- a/MEC010p2/MEPM/PKGM/environment/variables.txt +++ b/MEC010p2/MEPM/PKGM/environment/variables.txt @@ -24,6 +24,7 @@ ${NON_EXISTENT_APP_PKG_ID} NON_EXISTENT_APP_PKG_ID ${NON_EXISTENT_SUBSCRIPTION_ID} NON_EXISTENT_SUBSCRIPTION_ID ${NON_EXISTENT_APPD_ID} NON_EXISTENT_APPD_ID ${ONBOARDING_STATE} CREATED +${ONBOARDING_STATE_ONBOARDED} ONBOARDED ##Notification Server variables -- GitLab From cdeb7fd2b309658b02267cc11e97bbebf52cf659 Mon Sep 17 00:00:00 2001 From: Umair Zafar Date: Wed, 9 Apr 2025 12:48:56 +0500 Subject: [PATCH 05/10] add function for getting all onboarded app packages --- MEC010p2/MEPM/PKGM/AppPkgMgt.robot | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MEC010p2/MEPM/PKGM/AppPkgMgt.robot b/MEC010p2/MEPM/PKGM/AppPkgMgt.robot index 711a7e5..cc191af 100644 --- a/MEC010p2/MEPM/PKGM/AppPkgMgt.robot +++ b/MEC010p2/MEPM/PKGM/AppPkgMgt.robot @@ -388,6 +388,15 @@ GET all app Packages ${output}= Output response Set Suite Variable ${response} ${output} +GET all onboarded app Packages + Log Getting all App Packages + Set Headers {"Accept":"application/json"} + Set Headers {"Content-Type":"*/*"} + Set Headers {"Authorization":"${TOKEN}"} + Get ${apiRoot}/${apiName}/${apiVersion}/onboarded_app_packages + ${output}= Output response + Set Suite Variable ${response} ${output} + GET all app Packages with filter [Arguments] ${key} ${value} Log Getting all App Packages using filtering parameters -- GitLab From b017d52fcf97c15a6c038aa5a9f96e204b86eece Mon Sep 17 00:00:00 2001 From: Umair Zafar Date: Wed, 9 Apr 2025 12:51:52 +0500 Subject: [PATCH 06/10] add schema for onboarded AppPkgInfo data model --- .../schemas/OnboardedAppPkgInfo.schema.json | 169 ++++++++++++++++++ .../schemas/OnboardedAppPkgInfo.schema.json | 169 ++++++++++++++++++ 2 files changed, 338 insertions(+) create mode 100644 MEC010p2/MEO/PKGM/schemas/OnboardedAppPkgInfo.schema.json create mode 100644 MEC010p2/MEPM/PKGM/schemas/OnboardedAppPkgInfo.schema.json diff --git a/MEC010p2/MEO/PKGM/schemas/OnboardedAppPkgInfo.schema.json b/MEC010p2/MEO/PKGM/schemas/OnboardedAppPkgInfo.schema.json new file mode 100644 index 0000000..3a9a469 --- /dev/null +++ b/MEC010p2/MEO/PKGM/schemas/OnboardedAppPkgInfo.schema.json @@ -0,0 +1,169 @@ +{ + "description": "'The data type AppPkgInfo represents the parameters for an application package resource'", + "type": "object", + "required": [ + "id", + "appDId", + "appName", + "appSoftwareVersion", + "appDVersion", + "checksum", + "softwareImages", + "onboardingState", + "operationalState", + "usageState", + "mecInfo", + "_links" + ], + "properties": { + "id": { + "description": "Identifier of the onboarded application package.", + "type": "string" + }, + "appDId": { + "description": "Identifier of this MEC application descriptor. This attribute shall be globally unique.", + "type": "string" + }, + "appProvider": { + "description": "Provider of the application and of the AppD.", + "type": "string" + }, + "appName": { + "description": "Name to identify the MEC application.", + "type": "string" + }, + "appSoftwareVersion": { + "description": "Software version of the application. This is updated when there is any change to the software in the onboarded application package.", + "type": "string" + }, + "appDVersion": { + "description": "Identifies the version of the application descriptor.", + "type": "string" + }, + "checksum": { + "description": "", + "properties": { + "algorithm": { + "description": " Name of the algorithm used to generate the checksum, as defined in ETSI GS NFV-SOL 004. For example, SHA-256, SHA-512.", + "type": "string" + }, + "hash": { + "description": "'String 1 The hexadecimal value of the checksum'", + "type": "string" + } + }, + "required": [ + "algorithm", + "hash" + ], + "type": "object" + }, + "softwareImages": { + "description": "Information of application software image in application package. Type is TBD" + }, + "additionalArtifacts": { + "description": "Additional information of application package artifacts that are not application software images. Type is TBD" + }, + "onboardingState": { + "description": "Onboarding state of application package", + "type": "string", + "format": "enum", + "enum": [ + "CREATED", + "UPLOADING", + "PROCESSING", + "ONBOARDED" + ] + }, + "operationalState": { + "description": "Operational state of the onboarded application package: •ENABLED: the application package can be used for instantiation of new application instances. •DISABLED: the application package cannot be used for further application instantiation requests.", + "type": "string", + "enum": [ + "ENABLED", + "DISABLED" + ] + }, + "usageState": { + "description": "Usage state of the onboarded instance of the application package", + "type": "string", + "format": "enum", + "enum": [ + "IN_USE", + "NOT_IN_USE" + ] + }, + "mecInfo": { + "description": "", + "type": "array", + "items": { + "type": "string" + } + }, + + + "userDefinedData": { + "description": "'This data type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key-value pairs is represented as an object. It shall comply with the provisions defined in clause 4 of IETF RFC 8259'", + "type": "object", + "additionalProperties": true + }, + "_links": { + "description": "Links to resources related to this resource.", + "type": "object", + "required": [ + "self", + "appD", + "appPkgContent" + ], + "properties": { + "self": { + "properties": { + "href": { + "description": "URI referring to a resource", + "format": "uri", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "URI" + } + }, + "required": [ + "href" + ], + "type": "object", + "x-etsi-ref": "6.5.2" + }, + "appD": { + "properties": { + "href": { + "description": "URI referring to a resource", + "format": "uri", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "URI" + } + }, + "required": [ + "href" + ], + "type": "object", + "x-etsi-ref": "6.5.2" + }, + "appPkgContent": { + "properties": { + "href": { + "description": "URI referring to a resource", + "format": "uri", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "URI" + } + }, + "required": [ + "href" + ], + "type": "object", + "x-etsi-ref": "6.5.2" + } + } + } + } +} \ No newline at end of file diff --git a/MEC010p2/MEPM/PKGM/schemas/OnboardedAppPkgInfo.schema.json b/MEC010p2/MEPM/PKGM/schemas/OnboardedAppPkgInfo.schema.json new file mode 100644 index 0000000..3a9a469 --- /dev/null +++ b/MEC010p2/MEPM/PKGM/schemas/OnboardedAppPkgInfo.schema.json @@ -0,0 +1,169 @@ +{ + "description": "'The data type AppPkgInfo represents the parameters for an application package resource'", + "type": "object", + "required": [ + "id", + "appDId", + "appName", + "appSoftwareVersion", + "appDVersion", + "checksum", + "softwareImages", + "onboardingState", + "operationalState", + "usageState", + "mecInfo", + "_links" + ], + "properties": { + "id": { + "description": "Identifier of the onboarded application package.", + "type": "string" + }, + "appDId": { + "description": "Identifier of this MEC application descriptor. This attribute shall be globally unique.", + "type": "string" + }, + "appProvider": { + "description": "Provider of the application and of the AppD.", + "type": "string" + }, + "appName": { + "description": "Name to identify the MEC application.", + "type": "string" + }, + "appSoftwareVersion": { + "description": "Software version of the application. This is updated when there is any change to the software in the onboarded application package.", + "type": "string" + }, + "appDVersion": { + "description": "Identifies the version of the application descriptor.", + "type": "string" + }, + "checksum": { + "description": "", + "properties": { + "algorithm": { + "description": " Name of the algorithm used to generate the checksum, as defined in ETSI GS NFV-SOL 004. For example, SHA-256, SHA-512.", + "type": "string" + }, + "hash": { + "description": "'String 1 The hexadecimal value of the checksum'", + "type": "string" + } + }, + "required": [ + "algorithm", + "hash" + ], + "type": "object" + }, + "softwareImages": { + "description": "Information of application software image in application package. Type is TBD" + }, + "additionalArtifacts": { + "description": "Additional information of application package artifacts that are not application software images. Type is TBD" + }, + "onboardingState": { + "description": "Onboarding state of application package", + "type": "string", + "format": "enum", + "enum": [ + "CREATED", + "UPLOADING", + "PROCESSING", + "ONBOARDED" + ] + }, + "operationalState": { + "description": "Operational state of the onboarded application package: •ENABLED: the application package can be used for instantiation of new application instances. •DISABLED: the application package cannot be used for further application instantiation requests.", + "type": "string", + "enum": [ + "ENABLED", + "DISABLED" + ] + }, + "usageState": { + "description": "Usage state of the onboarded instance of the application package", + "type": "string", + "format": "enum", + "enum": [ + "IN_USE", + "NOT_IN_USE" + ] + }, + "mecInfo": { + "description": "", + "type": "array", + "items": { + "type": "string" + } + }, + + + "userDefinedData": { + "description": "'This data type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key-value pairs is represented as an object. It shall comply with the provisions defined in clause 4 of IETF RFC 8259'", + "type": "object", + "additionalProperties": true + }, + "_links": { + "description": "Links to resources related to this resource.", + "type": "object", + "required": [ + "self", + "appD", + "appPkgContent" + ], + "properties": { + "self": { + "properties": { + "href": { + "description": "URI referring to a resource", + "format": "uri", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "URI" + } + }, + "required": [ + "href" + ], + "type": "object", + "x-etsi-ref": "6.5.2" + }, + "appD": { + "properties": { + "href": { + "description": "URI referring to a resource", + "format": "uri", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "URI" + } + }, + "required": [ + "href" + ], + "type": "object", + "x-etsi-ref": "6.5.2" + }, + "appPkgContent": { + "properties": { + "href": { + "description": "URI referring to a resource", + "format": "uri", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "URI" + } + }, + "required": [ + "href" + ], + "type": "object", + "x-etsi-ref": "6.5.2" + } + } + } + } +} \ No newline at end of file -- GitLab From 60b60aec8b72d76e782940347f57655bc2047ed4 Mon Sep 17 00:00:00 2001 From: Umair Zafar Date: Wed, 9 Apr 2025 12:54:26 +0500 Subject: [PATCH 07/10] update schema of AppPkgInfo data model --- .../MEO/PKGM/schemas/AppPkgInfo.schema.json | 31 --- .../MEPM/PKGM/schemas/AppPkgInfo.schema.json | 259 ++++++++---------- 2 files changed, 109 insertions(+), 181 deletions(-) diff --git a/MEC010p2/MEO/PKGM/schemas/AppPkgInfo.schema.json b/MEC010p2/MEO/PKGM/schemas/AppPkgInfo.schema.json index 06783a7..ca194e5 100644 --- a/MEC010p2/MEO/PKGM/schemas/AppPkgInfo.schema.json +++ b/MEC010p2/MEO/PKGM/schemas/AppPkgInfo.schema.json @@ -3,12 +3,7 @@ "type": "object", "required": [ "id", - "appDId", - "appName", - "appSoftwareVersion", - "appDVersion", "checksum", - "softwareImages", "onboardingState", "operationalState", "usageState", @@ -19,26 +14,6 @@ "description": "Identifier of the onboarded application package.", "type": "string" }, - "appDId": { - "description": "Identifier of this MEC application descriptor. This attribute shall be globally unique.", - "type": "string" - }, - "appProvider": { - "description": "Provider of the application and of the AppD.", - "type": "string" - }, - "appName": { - "description": "Name to identify the MEC application.", - "type": "string" - }, - "appSoftwareVersion": { - "description": "Software version of the application. This is updated when there is any change to the software in the onboarded application package.", - "type": "string" - }, - "appDVersion": { - "description": "Identifies the version of the application descriptor.", - "type": "string" - }, "checksum": { "description": "", "properties": { @@ -57,12 +32,6 @@ ], "type": "object" }, - "softwareImages": { - "description": "Information of application software image in application package. Type is TBD" - }, - "additionalArtifacts": { - "description": "Additional information of application package artifacts that are not application software images. Type is TBD" - }, "onboardingState": { "description": "Onboarding state of application package", "type": "string", diff --git a/MEC010p2/MEPM/PKGM/schemas/AppPkgInfo.schema.json b/MEC010p2/MEPM/PKGM/schemas/AppPkgInfo.schema.json index 3a9a469..9bd4a5b 100644 --- a/MEC010p2/MEPM/PKGM/schemas/AppPkgInfo.schema.json +++ b/MEC010p2/MEPM/PKGM/schemas/AppPkgInfo.schema.json @@ -2,168 +2,127 @@ "description": "'The data type AppPkgInfo represents the parameters for an application package resource'", "type": "object", "required": [ - "id", - "appDId", - "appName", - "appSoftwareVersion", - "appDVersion", - "checksum", - "softwareImages", - "onboardingState", - "operationalState", - "usageState", - "mecInfo", - "_links" + "id", + "checksum", + "onboardingState", + "operationalState", + "usageState", + "_links" ], "properties": { - "id": { - "description": "Identifier of the onboarded application package.", + "id": { + "description": "Identifier of the onboarded application package.", + "type": "string" + }, + "checksum": { + "description": "", + "properties": { + "algorithm": { + "description": " Name of the algorithm used to generate the checksum, as defined in ETSI GS NFV-SOL 004. For example, SHA-256, SHA-512.", "type": "string" - }, - "appDId": { - "description": "Identifier of this MEC application descriptor. This attribute shall be globally unique.", - "type": "string" - }, - "appProvider": { - "description": "Provider of the application and of the AppD.", - "type": "string" - }, - "appName": { - "description": "Name to identify the MEC application.", - "type": "string" - }, - "appSoftwareVersion": { - "description": "Software version of the application. This is updated when there is any change to the software in the onboarded application package.", + }, + "hash": { + "description": "'String 1 The hexadecimal value of the checksum'", "type": "string" + } }, - "appDVersion": { - "description": "Identifies the version of the application descriptor.", - "type": "string" - }, - "checksum": { - "description": "", + "required": [ + "algorithm", + "hash" + ], + "type": "object" + }, + "onboardingState": { + "description": "Onboarding state of application package", + "type": "string", + "format": "enum", + "enum": [ + "CREATED", + "UPLOADING", + "PROCESSING", + "ONBOARDED" + ] + }, + "operationalState": { + "description": "Operational state of the onboarded application package: •ENABLED: the application package can be used for instantiation of new application instances. •DISABLED: the application package cannot be used for further application instantiation requests.", + "type": "string", + "enum": [ + "ENABLED", + "DISABLED" + ] + }, + "usageState": { + "description": "Usage state of the onboarded instance of the application package", + "type": "string", + "format": "enum", + "enum": [ + "IN_USE", + "NOT_IN_USE" + ] + }, + "userDefinedData": { + "description": "'This data type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key-value pairs is represented as an object. It shall comply with the provisions defined in clause 4 of IETF RFC 8259'", + "type": "object", + "additionalProperties": true + }, + "_links": { + "description": "Links to resources related to this resource.", + "type": "object", + "required": [ + "self", + "appD", + "appPkgContent" + ], + "properties": { + "self": { "properties": { - "algorithm": { - "description": " Name of the algorithm used to generate the checksum, as defined in ETSI GS NFV-SOL 004. For example, SHA-256, SHA-512.", - "type": "string" - }, - "hash": { - "description": "'String 1 The hexadecimal value of the checksum'", - "type": "string" - } + "href": { + "description": "URI referring to a resource", + "format": "uri", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "URI" + } }, "required": [ - "algorithm", - "hash" + "href" ], - "type": "object" - }, - "softwareImages": { - "description": "Information of application software image in application package. Type is TBD" - }, - "additionalArtifacts": { - "description": "Additional information of application package artifacts that are not application software images. Type is TBD" - }, - "onboardingState": { - "description": "Onboarding state of application package", - "type": "string", - "format": "enum", - "enum": [ - "CREATED", - "UPLOADING", - "PROCESSING", - "ONBOARDED" - ] - }, - "operationalState": { - "description": "Operational state of the onboarded application package: •ENABLED: the application package can be used for instantiation of new application instances. •DISABLED: the application package cannot be used for further application instantiation requests.", - "type": "string", - "enum": [ - "ENABLED", - "DISABLED" - ] - }, - "usageState": { - "description": "Usage state of the onboarded instance of the application package", - "type": "string", - "format": "enum", - "enum": [ - "IN_USE", - "NOT_IN_USE" - ] - }, - "mecInfo": { - "description": "", - "type": "array", - "items": { - "type": "string" - } - }, - - - "userDefinedData": { - "description": "'This data type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key-value pairs is represented as an object. It shall comply with the provisions defined in clause 4 of IETF RFC 8259'", - "type": "object", - "additionalProperties": true - }, - "_links": { - "description": "Links to resources related to this resource.", "type": "object", + "x-etsi-ref": "6.5.2" + }, + "appD": { + "properties": { + "href": { + "description": "URI referring to a resource", + "format": "uri", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "URI" + } + }, "required": [ - "self", - "appD", - "appPkgContent" + "href" ], + "type": "object", + "x-etsi-ref": "6.5.2" + }, + "appPkgContent": { "properties": { - "self": { - "properties": { - "href": { - "description": "URI referring to a resource", - "format": "uri", - "type": "string", - "x-etsi-mec-cardinality": "1", - "x-etsi-mec-origin-type": "URI" - } - }, - "required": [ - "href" - ], - "type": "object", - "x-etsi-ref": "6.5.2" - }, - "appD": { - "properties": { - "href": { - "description": "URI referring to a resource", - "format": "uri", - "type": "string", - "x-etsi-mec-cardinality": "1", - "x-etsi-mec-origin-type": "URI" - } - }, - "required": [ - "href" - ], - "type": "object", - "x-etsi-ref": "6.5.2" - }, - "appPkgContent": { - "properties": { - "href": { - "description": "URI referring to a resource", - "format": "uri", - "type": "string", - "x-etsi-mec-cardinality": "1", - "x-etsi-mec-origin-type": "URI" - } - }, - "required": [ - "href" - ], - "type": "object", - "x-etsi-ref": "6.5.2" - } - } + "href": { + "description": "URI referring to a resource", + "format": "uri", + "type": "string", + "x-etsi-mec-cardinality": "1", + "x-etsi-mec-origin-type": "URI" + } + }, + "required": [ + "href" + ], + "type": "object", + "x-etsi-ref": "6.5.2" + } } + } } -} \ No newline at end of file + } \ No newline at end of file -- GitLab From 8ff17a116a026165ea8903d26af8a6139df11dfc Mon Sep 17 00:00:00 2001 From: Umair Zafar Date: Wed, 9 Apr 2025 12:56:37 +0500 Subject: [PATCH 08/10] update schema of appD data model as per v3.2.1 --- MEC010p2/MEO/PKGM/schemas/AppD.schema.json | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/MEC010p2/MEO/PKGM/schemas/AppD.schema.json b/MEC010p2/MEO/PKGM/schemas/AppD.schema.json index c322452..fc7a9c8 100644 --- a/MEC010p2/MEO/PKGM/schemas/AppD.schema.json +++ b/MEC010p2/MEO/PKGM/schemas/AppD.schema.json @@ -554,9 +554,6 @@ "x-etsi-mec-cardinality": "1", "x-etsi-mec-origin-type": "String" }, - "tunnelSpecificData": { - "type": "string" - }, "tunnelSrcAddress": { "description": "Source address of the tunnel.", "type": "string", @@ -612,6 +609,14 @@ "x-etsi-mec-cardinality": "0..1", "x-etsi-mec-origin-type": "Int" }, + "direction": { + "description": "Identifies the direction of the data flow when the value of 'filterType' is 'per FLOW'. See note. Permitted values: 00= Downlink (towards the UE), 01 = Uplink (away from the UE)", + "type": "string", + "enum": [ + "00", + "01" + ] + }, "dstAddress": { "description": "A IP address or a range of IP addresses.For IPv4, the IP address could be an IP address plus mask, or an individual IP address, or a range of IP addresses.For IPv6, the IP address could be an IP prefix, or a range of IP prefixes.", "items": { @@ -748,7 +753,8 @@ "action" ], "type": "object", - "x-etsi-ref": "6.2.1.9" + "x-etsi-ref": "6.2.1.9", + "x-etsi-notes": "NOTE:\tWhen direction, srcAddress, dstAddress, srcPort, dstPort and protocol are combined to describe a IP flow traffic filter which is transferred to 5G core network by MEC system, this group of attributes follows the rules specified in the clause 5.3.8 of ETSI TS 129 214 [22]." }, "minItems": 0, "type": "array", -- GitLab From 86422b9c9e92941bbce2f8dd417300fee67507a0 Mon Sep 17 00:00:00 2001 From: Umair Zafar Date: Wed, 9 Apr 2025 13:03:03 +0500 Subject: [PATCH 09/10] update AppPkgInfo retrieval tests by splitting schemas based on onboardingState --- MEC010p2/MEO/PKGM/AppPkgMgt.robot | 8 ++++---- MEC010p2/MEPM/PKGM/AppPkgMgt.robot | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/MEC010p2/MEO/PKGM/AppPkgMgt.robot b/MEC010p2/MEO/PKGM/AppPkgMgt.robot index 67ab59a..f09af11 100644 --- a/MEC010p2/MEO/PKGM/AppPkgMgt.robot +++ b/MEC010p2/MEO/PKGM/AppPkgMgt.robot @@ -58,7 +58,7 @@ TC_MEC_MEC010p2_MEO_PKGM_002_01_OK TC_MEC_MEC010p2_MEO_PKGM_002_02_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_002_02_OK - ... Check that MEO returns the list of App Packages when requested - Note 3 + ... Check that MEO returns the list of on-boarded App Packages when requested - Note 3 ... ETSI GS MEC 010-2 3.1.1, clause 7.3.1.3.2 ... ETSI GS MEC 010-2 3.1.1, Table 6.2.3.3.2 Note 3 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS @@ -66,8 +66,8 @@ TC_MEC_MEC010p2_MEO_PKGM_002_02_OK GET all onboarded app Packages Check HTTP Response Status Code Is 200 FOR ${onBoardedAppPkgInfo} IN @{response['body']} - Validate Json AppPkgInfo.schema.json ${onBoardedAppPkgInfo} - Should Be Equal As Strings ${onBoardedAppPkgInfo['onboardingState']} ${ONBOARDING_STATE} + Validate Json OnboardedAppPkgInfo.schema.json ${onBoardedAppPkgInfo} + Should Be Equal As Strings ${onBoardedAppPkgInfo['onboardingState']} ${ONBOARDING_STATE_ONBOARDED} END [Teardown] Test TearDown ${setup_response['body']['id']} ${None} ${REMOVE_ACTION} @@ -106,7 +106,7 @@ TC_MEC_MEC010p2_MEO_PKGM_003_02_OK [Setup] Test Setup ${None} CreateAppPackage ${REGISTER_ACTION} GET an onboarded app Package identified by ${ON_BOARDED_APP_PKG_ID} Check HTTP Response Status Code Is 200 - Check HTTP Response Body Json Schema Is AppPkgInfo + Check HTTP Response Body Json Schema Is OnboardedAppPkgInfo Should Be Equal As Strings ${response['body']['id']} ${ON_BOARDED_APP_PKG_ID} [Teardown] Test TearDown ${setup_response['body']['id']} ${None} ${REMOVE_ACTION} diff --git a/MEC010p2/MEPM/PKGM/AppPkgMgt.robot b/MEC010p2/MEPM/PKGM/AppPkgMgt.robot index cc191af..5cfd565 100644 --- a/MEC010p2/MEPM/PKGM/AppPkgMgt.robot +++ b/MEC010p2/MEPM/PKGM/AppPkgMgt.robot @@ -38,14 +38,14 @@ TC_MEC_MEC010p2_MEPM_PKGM_001_02_OK Set Suite Variable ${APP_PKG_ID} ${response['body']['id']} Set Suite Variable ${APPD_ID} ${response['body']['appDId']} - GET all app Packages + GET all onboarded app Packages Check HTTP Response Status Code Is 200 FOR ${onBoardedAppPkgInfo} IN @{response['body']} - Validate Json AppPkgInfo.schema.json ${onBoardedAppPkgInfo} + Validate Json OnboardedAppPkgInfo.schema.json ${onBoardedAppPkgInfo} Should Contain ${onBoardedAppPkgInfo['_links']['self']['href']} ${APP_PKG_ID} Should Contain ${onBoardedAppPkgInfo['_links']['appD']['href']} ${APPD_ID} Should Contain ${onBoardedAppPkgInfo['_links']['appPkgContent']['href']} ${APPD_ID} - Should Be Equal As Strings ${onBoardedAppPkgInfo['onboardingState']} ${ONBOARDING_STATE} + Should Be Equal As Strings ${onBoardedAppPkgInfo['onboardingState']} ${ONBOARDING_STATE_ONBOARDED} END [Teardown] Delete an individual APP Package identified by ID ${APP_PKG_ID} @@ -86,7 +86,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_002_01_OK TC_MEC_MEC010p2_MEPM_PKGM_002_02_OK [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_002_02_OK - ... Check that MEPM returns the an App Package when requested - Note 3 + ... Check that MEPM returns the an on-boarded App Package when requested - Note 3 ... ETSI GS MEC 010-2 3.1.1, clause 7.3.2.3.2 ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.3.2 ##AppPkgInfo [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS @@ -95,11 +95,11 @@ TC_MEC_MEC010p2_MEPM_PKGM_002_02_OK Set Suite Variable ${APPD_ID} ${response['body']['appDId']} Get an individual APP Package identified by ID ${APPD_ID} Check HTTP Response Status Code Is 200 - Validate Json AppPkgInfo.schema.json ${response['body']} + Validate Json OnboardedAppPkgInfo.schema.json ${response['body']} Should Contain ${response['body']['_links']['self']['href']} ${APP_PKG_ID} Should Contain ${response['body']['_links']['appD']['href']} ${APPD_ID} Should Contain ${response['body']['_links']['appPkgContent']['href']} ${APPD_ID} - Should Be Equal As Strings ${response['body']['onboardingState']} ${ONBOARDING_STATE} + Should Be Equal As Strings ${response['body']['onboardingState']} ${ONBOARDING_STATE_ONBOARDED} [Teardown] Delete an individual APP Package identified by ID ${APP_PKG_ID} -- GitLab From 77337fee6eb8ffc56be6e9565472c87f72ccfa60 Mon Sep 17 00:00:00 2001 From: Umair Zafar Date: Wed, 9 Apr 2025 13:10:42 +0500 Subject: [PATCH 10/10] update MEC010-2 v3.1.1 to v3.2.1 --- MEC010p2/MEO/GRANT/Grant.robot | 40 ++-- MEC010p2/MEO/PKGM/AppPkgMgt.robot | 108 +++++------ MEC010p2/MEPM/LCM/PlatformConfiguration.robot | 12 +- MEC010p2/MEPM/PKGM/AppPkgMgt.robot | 64 +++---- MEC010p2/MEX/LCM/AppInstanceMgmt.robot | 172 +++++++++--------- 5 files changed, 198 insertions(+), 198 deletions(-) diff --git a/MEC010p2/MEO/GRANT/Grant.robot b/MEC010p2/MEO/GRANT/Grant.robot index 3c9fc0e..209aa2b 100644 --- a/MEC010p2/MEO/GRANT/Grant.robot +++ b/MEC010p2/MEO/GRANT/Grant.robot @@ -16,10 +16,10 @@ Test Teardown Test TearDown ${GRANT_ID_PLACEHOLDER} grantRequest ${ TC_MEC_MEC010p2_MEO_GRANT_001_OK [Documentation] TP_MEC_MEC010p2_MEO_GRANT_001_OK ... Check that MEO sends a synchronous grant response when a grant request is requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.5.1.3.1 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.4.2.2-1 (GrantRequest) - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.4.2.2-1 Note 2 (GrantRequest) - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.4.4.2-1 (Grant) + ... ETSI GS MEC 010-2 3.2.1, clause 7.5.1.3.1 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.4.2.2-1 (GrantRequest) + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.4.2.2-1 Note 2 (GrantRequest) + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.4.4.2-1 (Grant) [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Create a GRANT request grantRequest Check HTTP Response Status Code Is 201 @@ -29,8 +29,8 @@ TC_MEC_MEC010p2_MEO_GRANT_001_OK TC_MEC_MEC010p2_MEO_GRANT_001_BR [Documentation] TP_MEC_MEC010p2_MEO_GRANT_001_BR ... 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 3.1.1, clause 7.6.1.3.2 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.4.4.2-1 (Grant) + ... ETSI GS MEC 010-2 3.2.1, clause 7.6.1.3.2 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.4.4.2-1 (Grant) [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Create a GRANT request grantBadRequest Check HTTP Response Status Code Is 400 @@ -38,9 +38,9 @@ TC_MEC_MEC010p2_MEO_GRANT_001_BR TC_MEC_MEC010p2_MEO_GRANT_002_OK [Documentation] TP_MEC_MEC010p2_MEO_GRANT_002_OK ... Check that MEO sends a synchronous grant response when a grant request is requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.5.1.3.1 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.4.2.2-1 //GrantRequest - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.4.4.2-1 + ... ETSI GS MEC 010-2 3.2.1, clause 7.5.1.3.1 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.4.2.2-1 //GrantRequest + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.4.4.2-1 [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Create a GRANT request grantRequest2 Check HTTP Response Status Code Is 201 @@ -51,10 +51,10 @@ TC_MEC_MEC010p2_MEO_GRANT_002_OK TC_MEC_MEC010p2_MEO_GRANT_003_OK [Documentation] TP_MEC_MEC010p2_MEO_GRANT_003_OK ... Check that MEO sends an asynchronous grant response when a grant request is requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.5.1.3.1 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.4.2.2-1 (GrantRequest) - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.4.2.2-1 Note 2 (GrantRequest) - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.4.4.2-1 (Grant) + ... ETSI GS MEC 010-2 3.2.1, clause 7.5.1.3.1 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.4.2.2-1 (GrantRequest) + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.4.2.2-1 Note 2 (GrantRequest) + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.4.4.2-1 (Grant) [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS ${GRANT_ID_VALUE} Get value entry from JSON file grantRequestAsynchronous id Create a GRANT request grantRequestAsynchronous @@ -65,9 +65,9 @@ TC_MEC_MEC010p2_MEO_GRANT_003_OK TC_MEC_MEC010p2_MEO_GRANT_004_OK [Documentation] TP_MEC_MEC010p2_MEO_GRANT_004_OK ... Check that MEO sends an asynchronous grant response when a grant request is requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.5.1.3.1 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.4.2.2-1 (GrantRequest) - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.4.4.2-1 (Grant) + ... ETSI GS MEC 010-2 3.2.1, clause 7.5.1.3.1 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.4.2.2-1 (GrantRequest) + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.4.4.2-1 (Grant) [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS ${GRANT_ID_VALUE} Get value entry from JSON file grantRequestAsynchronous2 id Create a GRANT request grantRequestAsynchronous2 @@ -79,8 +79,8 @@ TC_MEC_MEC010p2_MEO_GRANT_005_OK [Documentation] TP_MEC_MEC010p2_MEO_GRANT_005_OK ... 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 - ... ETSI GS MEC 010-2 3.1.1, clause 7.5.2.3.2 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.4.4.2-1 + ... ETSI GS MEC 010-2 3.2.1, clause 7.5.2.3.2 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.4.4.2-1 [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Test Setup ${None} grantRequestAsynchronous ${REGISTER_ACTION} ${GRANT_ID_VALUE} Get value entry from JSON file grantRequestAsynchronous id @@ -95,8 +95,8 @@ TC_MEC_MEC010p2_MEO_GRANT_006_OK [Documentation] TP_MEC_MEC010p2_MEO_GRANT_006_OK ... 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 - ... ETSI GS MEC 010-2 3.1.1, clause 7.5.2.3.2 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.4.4.2-1 + ... ETSI GS MEC 010-2 3.2.1, clause 7.5.2.3.2 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.4.4.2-1 [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Test Setup ${None} grantRequest ${REGISTER_ACTION} Get an individual grant ${setup_response['body']['id']} diff --git a/MEC010p2/MEO/PKGM/AppPkgMgt.robot b/MEC010p2/MEO/PKGM/AppPkgMgt.robot index f09af11..2aa91ec 100644 --- a/MEC010p2/MEO/PKGM/AppPkgMgt.robot +++ b/MEC010p2/MEO/PKGM/AppPkgMgt.robot @@ -17,9 +17,9 @@ Test Teardown Test TearDown ${APP_PKG_ID_PLACEHOLDER} AppPkgInfo ${ TC_MEC_MEC010p2_MEO_PKGM_001_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_001_OK ... Check that MEO creates a new App Package when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.1.3.1 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.3.3.2-1 (OnboardedAppPkgInfo) - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.3.2.2-1 (AppPkg) + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.1.3.1 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.3.3.2-1 (OnboardedAppPkgInfo) + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.3.2.2-1 (AppPkg) [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Post Request to create new App Package Resource CreateAppPackage.json Check HTTP Response Status Code Is 201 @@ -32,8 +32,8 @@ TC_MEC_MEC010p2_MEO_PKGM_001_OK TC_MEC_MEC010p2_MEO_PKGM_001_BR [Documentation] TP_MEC_MEC010p2_MEO_PKGM_001_BR ... Check that MEO creates a new App Package when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.1.3.1 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.3.2.2-1 (AppPkg) + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.1.3.1 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.3.2.2-1 (AppPkg) [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Post Request to create new App Package Resource CreateAppPackageBadRequest.json Check HTTP Response Status Code Is 400 @@ -43,8 +43,8 @@ TC_MEC_MEC010p2_MEO_PKGM_001_BR TC_MEC_MEC010p2_MEO_PKGM_002_01_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_002_01_OK ... Check that MEO returns the list of App Packages when requested - Note 3 - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.1.3.2 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.3.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.1.3.2 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.3.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Test Setup ${None} CreateAppPackage ${REGISTER_ACTION} GET all app Packages @@ -59,8 +59,8 @@ TC_MEC_MEC010p2_MEO_PKGM_002_01_OK TC_MEC_MEC010p2_MEO_PKGM_002_02_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_002_02_OK ... Check that MEO returns the list of on-boarded App Packages when requested - Note 3 - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.1.3.2 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.3.3.2 Note 3 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.1.3.2 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.3.3.2 Note 3 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Test Setup ${None} CreateAppPackage ${REGISTER_ACTION} GET all onboarded app Packages @@ -76,7 +76,7 @@ TC_MEC_MEC010p2_MEO_PKGM_002_BR [Documentation] TP_MEC_MEO_PKGM_002_BR ... Check that MEO responds with an error when it receives ... a malformed request for retrieving the list of existing App Packages - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.1.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.1.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS GET all APP Packages with filters ${MALFORMED_FILTER_NAME} ${FILTER_VALUE} Check HTTP Response Status Code Is 400 @@ -85,8 +85,8 @@ TC_MEC_MEC010p2_MEO_PKGM_002_BR TC_MEC_MEC010p2_MEO_PKGM_003_01_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_003_01_OK ... Check that MEO returns the an App Package when requested - Note 3 - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.2.3.2 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.2.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Test Setup ${None} CreateAppPackage ${REGISTER_ACTION} GET an app Package identified by ${ON_BOARDED_APP_PKG_ID} @@ -100,8 +100,8 @@ TC_MEC_MEC010p2_MEO_PKGM_003_01_OK TC_MEC_MEC010p2_MEO_PKGM_003_02_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_003_02_OK ... Check that MEO returns the an onboarded App Package when requested - Note 3 - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.2.3.2 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.3.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.2.3.2 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.3.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Test Setup ${None} CreateAppPackage ${REGISTER_ACTION} GET an onboarded app Package identified by ${ON_BOARDED_APP_PKG_ID} @@ -116,8 +116,8 @@ TC_MEC_MEC010p2_MEO_PKGM_003_NF [Documentation] TP_MEC_MEC010p2_MEO_PKGM_003_NF ... Check that MEO responds with an error when it receives ... a request for retrieving a App Package referred with a wrong ID - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.2.3.2 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.3.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.2.3.2 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.3.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS GET an APP Package identified by ${NON_EXISTENT_APP_PKG_ID} Check HTTP Response Status Code Is 404 @@ -126,7 +126,7 @@ TC_MEC_MEC010p2_MEO_PKGM_003_NF TC_MEC_MEC010p2_MEO_PKGM_004_OK [Documentation] TP_MEC_MEO_PKGM_004_OK ... Check that MEO deletes an App Package when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.2.3.4 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.2.3.4 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Test Setup ${None} CreateAppPackage ${REGISTER_ACTION} Delete an individual APP Package identified by ${setup_response['body']['id']} @@ -139,7 +139,7 @@ TC_MEC_MEC010p2_MEO_PKGM_004_NF [Documentation] TP_MEC_MEO_PKGM_004_NF ... Check that MEO responds with an error when it receives ... a request for deleting an App Package referred with a wrong ID - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.2.3.4 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.2.3.4 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Test Setup ${NON_EXISTENT_APP_PKG_ID} ${None} ${REMOVE_ACTION} Delete an individual APP Package identified by ${NON_EXISTENT_APP_PKG_ID} @@ -149,8 +149,8 @@ TC_MEC_MEC010p2_MEO_PKGM_004_NF TC_MEC_MEC010p2_MEO_PKGM_005_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_005_OK ... Check that MEO updates the operational state of an individual application package resource - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.2.3.5 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.8.2" //AppPkgInfoModifications + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.2.3.5 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.8.2" //AppPkgInfoModifications [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Test Setup ${None} CreateAppPackage ${REGISTER_ACTION} Update Operational State for an app Package ${ON_BOARDED_APP_PKG_ID} AppPkgInfoModifications.json @@ -163,8 +163,8 @@ TC_MEC_MEC010p2_MEO_PKGM_005_OK TC_MEC_MEC010p2_MEO_PKGM_005_BR [Documentation] TP_MEC_MEC010p2_MEO_PKGM_005_BR ... Check that MEO sends an error when it receives a malformed request to modify the operational state of an application package - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.2.3.5 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.8.2" //AppPkgInfoModifications + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.2.3.5 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.8.2" //AppPkgInfoModifications [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Test Setup ${None} CreateAppPackage ${REGISTER_ACTION} Update Operational State for an app Package ${ON_BOARDED_APP_PKG_ID} AppPkgInfoModificationsBadRequest.json @@ -175,8 +175,8 @@ TC_MEC_MEC010p2_MEO_PKGM_005_NF [Documentation] TP_MEC_MEC010p2_MEO_PKGM_005_NF ... Check that MEO responds with an error when it receives ... a request for updating an App Package referred with a wrong ID - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.2.3.5 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.8.2" //AppPkgInfoModifications + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.2.3.5 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.8.2" //AppPkgInfoModifications [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Test Setup ${NON_EXISTENT_APP_PKG_ID} ${None} ${REMOVE_ACTION} Update Operational State for an app Package ${NON_EXISTENT_APP_PKG_ID} AppPkgInfoModificationsBadRequest.json @@ -186,9 +186,9 @@ TC_MEC_MEC010p2_MEO_PKGM_005_NF TC_MEC_MEC010p2_MEO_PKGM_006_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_006_OK ... Check that MEO service returns an application package subscription when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.3.3.1 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.7 ##Type: AppPkgSubscription - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.4 ##Type: AppPkgSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.3.3.1 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.7 ##Type: AppPkgSubscription + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.4 ##Type: AppPkgSubscriptionInfo [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Delete an App Package Subscription identified by ${SUBSCRIPTION_ID} Send a request for a subscription AppPkgSubscription.json @@ -202,9 +202,9 @@ TC_MEC_MEC010p2_MEO_PKGM_006_OK TC_MEC_MEC010p2_MEO_PKGM_006_BR [Documentation] TP_MEC_MEC010p2_MEO_PKGM_006_BR ... Check that MEO service sends an error when it receives a malformed request for creating a new subscription on AppPackages - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.3.3.1 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.7 ##Type: AppPkgSubscription - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.4 ##Type: AppPkgSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.3.3.1 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.7 ##Type: AppPkgSubscription + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.4 ##Type: AppPkgSubscriptionInfo [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Send a request for a subscription AppPkgSubscriptionBadRequest.json Check HTTP Response Status Code Is 400 @@ -214,8 +214,8 @@ TC_MEC_MEC010p2_MEO_PKGM_007_OK_01 [Documentation] TP_MEC_MEC010p2_MEO_PKGM_007_OK_01 ... Check that MEO service returns the list of Application Package ... Subscriptions when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.3.3.2 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.5.2 ##AppPkgSubscriptionLinkList + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.3.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.5.2 ##AppPkgSubscriptionLinkList [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Send a request for a subscription AppPkgSubscription.json Get all APP Package subscriptions @@ -228,8 +228,8 @@ TC_MEC_MEC010p2_MEO_PKGM_007_OK_02 [Documentation] TP_MEC_MEC010p2_MEO_PKGM_007_OK_02 ... Check that MEO service returns the list of Application Package ... Subscriptions when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.3.3.2 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.5.2 ##AppPkgSubscriptionLinkList + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.3.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.5.2 ##AppPkgSubscriptionLinkList [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Send a request for a subscription AppPkgSubscription.json Get all APP Package subscriptions @@ -242,8 +242,8 @@ TC_MEC_MEC010p2_MEO_PKGM_007_OK_02 TC_MEC_MEC010p2_MEO_PKGM_008_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_008_OK ... Check that MEO service returns an Application Package Subscription when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.4.3.2 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.4.2 ##AppPkgSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.4.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.4.2 ##AppPkgSubscriptionInfo [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Send a request for a subscription AppPkgSubscription.json Get an individual APP Package subscriptions ${SUBSCRIPTION_ID} @@ -255,8 +255,8 @@ TC_MEC_MEC010p2_MEO_PKGM_008_OK TC_MEC_MEC010p2_MEO_PKGM_008_NF [Documentation] TP_MEC_MEC010p2_MEO_PKGM_008_NF ... Check that MEO service sends an error when it receives a query for a subscription on AppPackages with a wrong identifier - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.4.3.2 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.4.2 ##AppPkgSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.4.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.4.2 ##AppPkgSubscriptionInfo [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Delete an App Package Subscription identified by ${NON_EXISTENT_SUBSCRIPTION_ID} Get an individual APP Package subscriptions ${NON_EXISTENT_SUBSCRIPTION_ID} @@ -266,7 +266,7 @@ TC_MEC_MEC010p2_MEO_PKGM_008_NF TC_MEC_MEC010p2_MEO_PKGM_009_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_009_OK ... Check that MEO service deletes an Application Package Subscription when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.4.3.4 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.4.3.4 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Send a request for a subscription AppPkgSubscription.json Delete an App Package Subscription identified by ${SUBSCRIPTION_ID} @@ -278,7 +278,7 @@ TC_MEC_MEC010p2_MEO_PKGM_009_NF [Documentation] TP_MEC_MEC010p2_MEO_PKGM_009_NF ... Check that MEO service sends an error when it receives a deletion request for a subscription on AppPackages ... with a wrong identifier - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.4.3.4 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.4.3.4 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Delete an App Package Subscription identified by NON_EXISTENT_SUBSCRIPTION_ID Delete an App Package Subscription identified by ${NON_EXISTENT_SUBSCRIPTION_ID} @@ -289,8 +289,8 @@ TC_MEC_MEC010p2_MEO_PKGM_010_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_009_NF ... Check that the MEO service sends a application package notification ... if the MEO service has an associated subscription and the event is generated - ... "ETSI GS MEC 010-2 3.1.1, clause 7.3.5.3.1", - ... "ETSI GS MEC 010-2 3.1.1, clause 6.2.3.6.2" ##AppPkgNotification + ... "ETSI GS MEC 010-2 3.2.1, clause 7.3.5.3.1", + ... "ETSI GS MEC 010-2 3.2.1, clause 6.2.3.6.2" ##AppPkgNotification [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Send a request for a subscription AppPkgSubscription.json Spawn Notification Server AppPkgNotification @@ -300,8 +300,8 @@ TC_MEC_MEC010p2_MEO_PKGM_010_OK TC_MEC_MEC010p2_MEO_PKGM_011_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_011_OK ... Check that MEO reads the content of the AppD of on-boarded individual application package resources when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.6.3.2 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.1.2.2 ##AppD + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.6.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.1.2.2 ##AppD [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Post Request to create new App Package Resource CreateAppPackage.json Get an AppD from App Package identified by ${ON_BOARDED_APP_PKG_ID} @@ -313,7 +313,7 @@ TC_MEC_MEC010p2_MEO_PKGM_011_NF [Documentation] TP_MEC_MEC010p2_MEO_PKGM_011_NF ... Check that MEO responds with an error when it receives ... a request to retrieve an application descriptor referred with a wrong app package ID - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.6.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.6.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Delete an individual APP Package identified by ${NON_EXISTING_APPD_ID} Get an AppD from App Package identified by ${NON_EXISTING_APPD_ID} @@ -323,7 +323,7 @@ TC_MEC_MEC010p2_MEO_PKGM_011_NF TC_MEC_MEC010p2_MEO_PKGM_012_01_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_012_01_OK ... Check that MEO fetches the application package content identified by appPkgId when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.7.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.7.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Post Request to create new App Package Resource CreateAppPackage.json Get app Package identified by ${ON_BOARDED_APP_PKG_ID} ${ACCEPTED_CONTENT_TYPE_ZIP} @@ -334,7 +334,7 @@ TC_MEC_MEC010p2_MEO_PKGM_012_01_OK TC_MEC_MEC010p2_MEO_PKGM_012_02_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_012_02_OK ... Check that MEO fetches the application package content identified by appPkgId when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.7.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.7.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Post Request to create new App Package Resource CreateAppPackage.json Get onboarded app Package identified by ${ON_BOARDED_APP_PKG_ID} ${ACCEPTED_CONTENT_TYPE_ZIP} @@ -345,7 +345,7 @@ TC_MEC_MEC010p2_MEO_PKGM_012_02_OK TC_MEC_MEC010p2_MEO_PKGM_012_BR [Documentation] TP_MEC_MEC010p2_MEO_PKGM_012_BR ... Check that MEO service sends an error when it receives a malformed request - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.7.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.7.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Get app Package identified by ${ON_BOARDED_APP_PKG_ID} ${WRONG_CONTENT_TYPE} Check HTTP Response Status Code Is 400 @@ -354,7 +354,7 @@ TC_MEC_MEC010p2_MEO_PKGM_012_BR TC_MEC_MEC010p2_MEO_PKGM_012_01_NF [Documentation] TP_MEC_MEC010p2_MEO_PKGM_012_01_NF ... Check that MEO service sends an error when it receives a request referring a wrong appPkgId - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.7.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.7.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Delete an individual APP Package identified by ${NOT_EXISTING_APP_PKG_ID} Get onboarded app Package identified by ${NOT_EXISTING_APP_PKG_ID} ${ACCEPTED_CONTENT_TYPE_ZIP} @@ -364,7 +364,7 @@ TC_MEC_MEC010p2_MEO_PKGM_012_01_NF TC_MEC_MEC010p2_MEO_PKGM_012_02_NF [Documentation] TP_MEC_MEC010p2_MEO_PKGM_012_01_NF ... Check that MEO service sends an error when it receives a request referring a wrong appPkgId - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.7.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.7.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Delete an individual APP Package identified by ${NON_EXISTING_ON_BOARDED_APPD_ID} Get onboarded app Package identified by ${NON_EXISTING_ON_BOARDED_APPD_ID} ${ACCEPTED_CONTENT_TYPE_ZIP} @@ -374,8 +374,8 @@ TC_MEC_MEC010p2_MEO_PKGM_012_02_NF TC_MEC_MEC010p2_MEO_PKGM_013_OK [Documentation] TP_MEC_MEC010p2_MEO_PKGM_013_OK ... Check that MEO accepts application package when submitted - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.7.3.3 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.1.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.7.3.3 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.1.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Delete an individual APP Package identified by ${APP_PKG_ID} Submit application package ${APP_PKG_ID} @@ -386,8 +386,8 @@ TC_MEC_MEC010p2_MEO_PKGM_013_OK TC_MEC_MEC010p2_MEO_PKGM_013_NF [Documentation] TP_MEC_MEC010p2_MEO_PKGM_013_NF ... Check that MEO returns an error when an application package with wrong id is submitted - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.7.3.3 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.1.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.7.3.3 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.1.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Delete an individual APP Package identified by ${NOT_EXISTING_APP_PKG_ID} Submit application package ${NOT_EXISTING_APP_PKG_ID} diff --git a/MEC010p2/MEPM/LCM/PlatformConfiguration.robot b/MEC010p2/MEPM/LCM/PlatformConfiguration.robot index 1606af0..d9dbf77 100644 --- a/MEC010p2/MEPM/LCM/PlatformConfiguration.robot +++ b/MEC010p2/MEPM/LCM/PlatformConfiguration.robot @@ -13,8 +13,8 @@ Library OperatingSystem TC_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 3.1.1, clause 7.7.6.3.1 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.2.21.2 #ConfigPlatformForAppRequest + ... ETSI GS MEC 010-2 3.2.1, clause 7.7.6.3.1 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.2.21.2 #ConfigPlatformForAppRequest [Setup] Create new App Instance CreateAppInstanceRequest ${APPD_ID_SET} Get value entry from JSON file CreateAppInstanceRequest appDId Request to configure Platform ${APP_INSTANCE_ID} ConfigPlatformForAppRequest @@ -26,8 +26,8 @@ TC_MEC_MEC010p2_MEPM_LCM_001_OK TC_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 3.1.1, clause 7.7.6.3.1 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.2.21.2 #ConfigPlatformForAppRequest + ... ETSI GS MEC 010-2 3.2.1, clause 7.7.6.3.1 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.2.21.2 #ConfigPlatformForAppRequest Request to configure Platform ${APP_INSTANCE_ID} ConfigPlatformForAppRequestBadRequest Check HTTP Response Status Code Is 400 @@ -38,8 +38,8 @@ TC_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 3.1.1, clause 7.7.6.3.1 - ... ETS3.1.1MEC 010-2 3.1.1, Table 6.2.2.21.2-1 #ConfigPlatformForAppRequest + ... ETSI GS MEC 010-2 3.2.1, clause 7.7.6.3.1 + ... ETS3.2.1MEC 010-2 3.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 diff --git a/MEC010p2/MEPM/PKGM/AppPkgMgt.robot b/MEC010p2/MEPM/PKGM/AppPkgMgt.robot index 5cfd565..f0710b1 100644 --- a/MEC010p2/MEPM/PKGM/AppPkgMgt.robot +++ b/MEC010p2/MEPM/PKGM/AppPkgMgt.robot @@ -14,8 +14,8 @@ Library libraries/Server.py TC_MEC_MEC010p2_MEPM_PKGM_001_01_OK [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_001_01_OK ... Check that MEO creates a new App Package when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.1.3.1 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.2.2 ##AppPkgInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.1.3.1 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.2.2 ##AppPkgInfo [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Create new App Package CreateAppPackage.json Set Suite Variable ${APP_PKG_ID} ${response['body']['id']} @@ -31,8 +31,8 @@ TC_MEC_MEC010p2_MEPM_PKGM_001_01_OK TC_MEC_MEC010p2_MEPM_PKGM_001_02_OK [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_002_01_OK ... Check that MEPM returns the list of on-boarded App Packages when requested - Note 3 - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.1.3.1 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.2.2 ##AppPkgInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.1.3.1 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.2.2 ##AppPkgInfo [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Create new App Package CreateAppPackage.json @@ -53,7 +53,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_001_BR [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_001_BR ... Check that MEPM responds with an error when it receives ... a malformed request for requesting the list of existing App Packages - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.1.3.1 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.1.3.1 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Create new App Package CreateAppPackage.json Set Suite Variable ${APP_PKG_ID} ${response['body']['id']} @@ -67,8 +67,8 @@ TC_MEC_MEC010p2_MEPM_PKGM_001_BR TC_MEC_MEC010p2_MEPM_PKGM_002_01_OK [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_002_01_OK ... Check that MEPM returns the an App Package when requested - Note 3 - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.2.3.2 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.3.2 ##AppPkgInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.2.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.3.2 ##AppPkgInfo [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Create new App Package CreateAppPackage.json Set Suite Variable ${APP_PKG_ID} ${response['body']['id']} @@ -87,8 +87,8 @@ TC_MEC_MEC010p2_MEPM_PKGM_002_01_OK TC_MEC_MEC010p2_MEPM_PKGM_002_02_OK [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_002_02_OK ... Check that MEPM returns the an on-boarded App Package when requested - Note 3 - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.2.3.2 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.3.2 ##AppPkgInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.2.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.3.2 ##AppPkgInfo [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Create new App Package CreateAppPackage.json Set Suite Variable ${APP_PKG_ID} ${response['body']['id']} @@ -107,7 +107,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_002_NF [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_002_NF ... Check that MEPM responds with an error when it receives ... a request for returning a App Package referred with a wrong ID - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.2.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.2.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Delete an individual APP Package identified by ID ${NON_EXISTENT_APP_PKG_ID} Get an individual APP Package identified by ID ${NON_EXISTENT_APP_PKG_ID} @@ -117,9 +117,9 @@ TC_MEC_MEC010p2_MEPM_PKGM_002_NF TC_MEC_MEC010p2_MEPM_PKGM_003_OK [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_003_OK ... Check that MEPM service returns an application package subscription when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.3.3.1 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.7.2 ##AppPkgSubscription - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.4.2 ##AppPkgSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.3.3.1 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.7.2 ##AppPkgSubscription + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.4.2 ##AppPkgSubscriptionInfo [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Create a subscription AppPkgSubscription.json Set Suite Variable ${SUBSCRIPTION_ID} ${response['body']['id']} @@ -132,7 +132,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_003_BR [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_003_BR ... Check that MEPM service sends an error when it receives a ... malformed request for creating a new subscription on AppPackages - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.3.3.1 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.3.3.1 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Create a subscription AppPkgSubscriptionBadRequest.json Check HTTP Response Status Code Is 400 @@ -141,7 +141,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_004_OK [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_004_OK ... Check that MEPM service returns the list of Application ... Package Subscriptions when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.3.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.3.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Create a subscription AppPkgSubscription.json Set Suite Variable ${SUBSCRIPTION_ID} ${response['body']['id']} @@ -155,8 +155,8 @@ TC_MEC_MEC010p2_MEPM_PKGM_004_OK TC_MEC_MEC010p2_MEPM_PKGM_005_OK [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_005_OK ... Check that MEPM service returns an Application Package Subscription when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.4.3.2 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.4.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.4.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.4.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Create a subscription AppPkgSubscription.json Set Suite Variable ${SUBSCRIPTION_ID} ${response['body']['id']} @@ -170,7 +170,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_005_NF [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_005_NF ... C"Check that MEPM service sends an error when ... it receives a query for a subscription on AppPackages with a wrong identifier - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.4.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.4.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Delete a subscription ${NON_EXISTENT_SUBSCRIPTION_ID} Get an individual subscription ${NON_EXISTENT_SUBSCRIPTION_ID} @@ -180,7 +180,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_005_NF TC_MEC_MEC010p2_MEPM_PKGM_006_OK [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_006_OK ... Check that MEPM service deletes an Application Package Subscription when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.4.3.4 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.4.3.4 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Create a subscription AppPkgSubscription.json Set Suite Variable ${SUBSCRIPTION_ID} ${response['body']['id']} @@ -192,7 +192,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_006_NF ... Check that MEPM service sends an error ... when it receives a deletion request for a subscription on AppPackages ... with a wrong identifier - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.4.3.4 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.4.3.4 [Tags] PIC_APP_PACKAGE_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS [Setup] Delete a subscription ${NON_EXISTENT_SUBSCRIPTION_ID} Delete a subscription ${NON_EXISTENT_SUBSCRIPTION_ID} @@ -203,8 +203,8 @@ TC_MEC_MEC010p2_MEPM_PKGM_007_OK [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_007_OK ... Check that the MEPM service sends a application package notification ... if the MEPM service has an associated subscription and the event is generated - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.5.3.1, - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.3.6.2 ##AppPkgNotification + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.5.3.1, + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.3.6.2 ##AppPkgNotification [Tags] PIC_APP_PACKAGE_NOTIFICATIONS [Setup] Create a subscription AppPkgSubscription.json Set Suite Variable ${SUBSCRIPTION_ID} ${response['body']['id']} @@ -219,7 +219,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_008_NA [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_008_NA ... Check that MEPM responds with an error when it receives ... a POST request referring an application descriptor AppD - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.6.3.1 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.6.3.1 [Tags] PIC_APP_PACKAGE_MANAGEMENT [Setup] Create new App Package CreateAppPackage.json @@ -236,8 +236,8 @@ TC_MEC_MEC010p2_MEPM_PKGM_008_NA TC_MEC_MEC010p2_MEPM_PKGM_009_OK [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_009_OK ... Check that MEPM returns the Application Descriptor contained on an on-boarded Application Package when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.6.3.2 - ... ETSI GS MEC 010-2 3.1.1, clause 6.2.1.2.2 ##AppD + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.6.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 6.2.1.2.2 ##AppD [Tags] PIC_APP_PACKAGE_MANAGEMENT [Setup] Create new App Package CreateAppPackage.json Set Suite Variable ${APP_PKG_ID} ${response['body']['id']} @@ -251,7 +251,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_009_NF [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_009_NF ... Check that MEPM responds with an error when it receives ... a request for returning a App Descriptor referred with a wrong App Package ID - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.6.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.6.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT [Setup] Delete an AppD by ID ${NON_EXISTENT_APP_PKG_ID} Get an AppD identified by ${NON_EXISTENT_APP_PKG_ID} @@ -262,7 +262,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_010_FO [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_010_FO ... Check that MEPM responds with an error when it receives ... a PUT request referring an application descriptor AppD - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.6.3.3 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.6.3.3 [Tags] PIC_APP_PACKAGE_MANAGEMENT [Setup] Create new App Package CreateAppPackage.json Set Suite Variable ${APP_PKG_ID} ${response['body']['id']} @@ -276,7 +276,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_011_NA [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_011_NA ... Check that MEPM responds with an error when it receives ... a DELETE request referring an application descriptor AppD - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.6.3.4 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.6.3.4 [Tags] PIC_APP_PACKAGE_MANAGEMENT [Setup] Create new App Package CreateAppPackage.json Set Suite Variable ${APP_PKG_ID} ${response['body']['id']} @@ -289,7 +289,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_011_NA TC_MEC_MEC010p2_MEPM_PKGM_012_01_OK [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_012_01_OK ... Check that MEPM fetches the on-boarded application package content identified by appPkgId when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.7.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.7.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT [Setup] Create new App Package CreateAppPackage.json Set Suite Variable ${APP_PKG_ID} ${response['body']['id']} @@ -300,7 +300,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_012_01_OK TC_MEC_MEC010p2_MEPM_PKGM_012_02_OK [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_012_02_OK ... heck that MEPM fetches the on-boarded application package content identified by appDId when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.7.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.7.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT [Setup] Create new App Package CreateAppPackage.json Set Suite Variable ${APP_PKG_ID} ${response['body']['id']} @@ -314,7 +314,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_012_02_OK TC_MEC_MEC010p2_MEPM_PKGM_012_01_NF [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_012_01_NF ... Check that MEPM fetches the on-boarded application package content identified by appPkgId when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.7.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.7.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT [Setup] Delete an individual APP Package identified by ID ${NON_EXISTENT_APP_PKG_ID} GET all app Packages content by appPkgId ${NON_EXISTENT_APP_PKG_ID} @@ -325,7 +325,7 @@ TC_MEC_MEC010p2_MEPM_PKGM_012_01_NF TC_MEC_MEC010p2_MEPM_PKGM_012_02_NF [Documentation] TP_MEC_MEC010p2_MEPM_PKGM_012_02_NF ... Check that MEPM service sends an error when it receives a query with an application package with a wrong identifier - ... ETSI GS MEC 010-2 3.1.1, clause 7.3.7.3.2 + ... ETSI GS MEC 010-2 3.2.1, clause 7.3.7.3.2 [Tags] PIC_APP_PACKAGE_MANAGEMENT [Setup] Delete an individual APP Package identified by ID ${NON_EXISTENT_APPD_ID} GET all app Packages content by appPkgId ${NON_EXISTENT_APPD_ID} diff --git a/MEC010p2/MEX/LCM/AppInstanceMgmt.robot b/MEC010p2/MEX/LCM/AppInstanceMgmt.robot index 302f017..f5f9406 100644 --- a/MEC010p2/MEX/LCM/AppInstanceMgmt.robot +++ b/MEC010p2/MEX/LCM/AppInstanceMgmt.robot @@ -14,9 +14,9 @@ Library String TC_MEC_MEC010p2_MEX_LCM_001_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_001_OK ... Check that MEC API provider creates a new App Package when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.1.3.1 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.2.3.2-1 #CreateAppInstanceRequest - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.2.4.2-1 #AppInstanceInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.1.3.1 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.2.3.2-1 #CreateAppInstanceRequest + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.2.4.2-1 #AppInstanceInfo Create new App Instance CreateAppInstanceRequest ${APPD_ID_SET} Get value entry from JSON file CreateAppInstanceRequest appDId Check HTTP Response Status Code Is 201 @@ -30,9 +30,9 @@ TC_MEC_MEC010p2_MEX_LCM_001_OK TC_MEC_MEC010p2_MEX_LCM_001_BR [Documentation] TP_MEC_MEC010p2_MEX_LCM_001_BR ... Check that MEC API provider sends an error when it receives a malformed request for the creation of a new App Instance - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.1.3.1 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.2.3.2-1 #CreateAppInstanceRequest - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.2.4.2-1 #AppInstanceInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.1.3.1 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.2.3.2-1 #CreateAppInstanceRequest + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.2.4.2-1 #AppInstanceInfo Create new App Instance CreateAppInstanceRequestBadRequest Check HTTP Response Status Code Is 400 @@ -40,8 +40,8 @@ TC_MEC_MEC010p2_MEX_LCM_001_BR TC_MEC_MEC010p2_MEX_LCM_002_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_002_OK ... Check that MEC API provider retrieves the list of App instances when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.1.3.2 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.2.4.2-1 #AppInstanceInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.1.3.2 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.2.4.2-1 #AppInstanceInfo [Setup] Create new App Instance CreateAppInstanceRequest Set Test Variable ${NEW_APP_INSTANCE_ID} ${response['body']['id']} GET all APP Instances @@ -61,8 +61,8 @@ TC_MEC_MEC010p2_MEX_LCM_002_OK TC_MEC_MEC010p2_MEX_LCM_003_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_003_OK ... Check that MEC API provider retrieves an App Package when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.2.3.2 - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.2.4.2-1 #AppInstanceInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.2.3.2 + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.2.4.2-1 #AppInstanceInfo [Setup] Create new App Instance CreateAppInstanceRequest Set Test Variable ${NEW_APP_INSTANCE_ID} ${response['body']['id']} GET APP Instance ${NEW_APP_INSTANCE_ID} @@ -75,7 +75,7 @@ TC_MEC_MEC010p2_MEX_LCM_003_OK TC_MEC_MEC010p2_MEX_LCM_003_NF [Documentation] TP_MEC_MEC010p2_MEX_LCM_003_NF ... Check that MEC API provider fails on deletion of an App Instance when requested using wrong appInstanceId - ... ETSI GS MEC 010-2 3.1.1, Table 6.2.2.4.2-1 #AppInstanceInfo + ... ETSI GS MEC 010-2 3.2.1, Table 6.2.2.4.2-1 #AppInstanceInfo [Setup] Delete APP Instance ${NOT_EXISTING_APP_INSTANCE_ID} GET APP Instance ${NOT_EXISTING_APP_INSTANCE_ID} Check HTTP Response Status Code Is 404 @@ -83,7 +83,7 @@ TC_MEC_MEC010p2_MEX_LCM_003_NF TC_MEC_MEC010p2_MEX_LCM_004_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_003_OK ... Check that MEC API provider service deletes an App Instance when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.2.3.4 + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.2.3.4 [Setup] Create new App Instance CreateAppInstanceRequest Set Test Variable ${NEW_APP_INSTANCE_ID} ${response['body']['id']} Delete APP Instance ${NEW_APP_INSTANCE_ID} @@ -92,7 +92,7 @@ TC_MEC_MEC010p2_MEX_LCM_004_OK TC_MEC_MEC010p2_MEX_LCM_004_NF [Documentation] TP_MEC_MEC010p2_MEX_LCM_004_NF ... Check that MEC API provider fails on deletion of an App Instance when requested using wrong appInstanceId - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.2.3.4 + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.2.3.4 [Setup] Delete APP Instance ${NOT_EXISTING_APP_INSTANCE_ID} Delete APP Instance ${NOT_EXISTING_APP_INSTANCE_ID} Check HTTP Response Status Code Is 404 @@ -101,8 +101,8 @@ TC_MEC_MEC010p2_MEX_LCM_004_NF TC_MEC_MEC010p2_MEX_LCM_005_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_005_OK ... Check that MEC API provider service instantiates an App Instance when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.6.3.1 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.7.2-1 #InstantiateAppRequest + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.6.3.1 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.7.2-1 #InstantiateAppRequest [Setup] Create new App Instance CreateAppInstanceRequest Set Test Variable ${NEW_APP_INSTANCE_ID} ${response['body']['id']} Instantiate App Request ${NEW_APP_INSTANCE_ID} InstantiateAppRequest @@ -114,8 +114,8 @@ TC_MEC_MEC010p2_MEX_LCM_005_OK TC_MEC_MEC010p2_MEX_LCM_005_BR [Documentation] TP_MEC_MEC010p2_MEX_LCM_005_BR ... Check that MEC API provider service fails to instantiate an App Instance when it receives a malformed request - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.6.3.1 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.7.2-1 #InstantiateAppRequest + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.6.3.1 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.7.2-1 #InstantiateAppRequest Instantiate App Request ${APP_INSTANCE_ID} InstantiateAppRequestBadRequest Check HTTP Response Status Code Is 400 @@ -124,8 +124,8 @@ TC_MEC_MEC010p2_MEX_LCM_005_BR TC_MEC_MEC010p2_MEX_LCM_005_NF [Documentation] TP_MEC_MEC010p2_MEX_LCM_005_NF ... Check that MEC API provider service fails to instantiate an App Instance when it receives a request related to a not existing App Instance - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.6.3.1 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.7.2-1 #InstantiateAppRequest + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.6.3.1 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.7.2-1 #InstantiateAppRequest [Setup] Delete APP Instance ${NOT_EXISTING_APP_INSTANCE_ID} Instantiate App Request ${NOT_EXISTING_APP_INSTANCE_ID} InstantiateAppRequest Check HTTP Response Status Code Is 404 @@ -135,8 +135,8 @@ TC_MEC_MEC010p2_MEX_LCM_005_NF TC_MEC_MEC010p2_MEX_LCM_006_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_006_OK ... Check that MEC API provider service terminates an App Instance when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.7.3.1 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.9.2-1 #TerminateAppRequest + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.7.3.1 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.9.2-1 #TerminateAppRequest [Setup] Create and Instantiate App Instance CreateAppInstanceRequest InstantiateAppRequest Sleep 5 ##Change it according to your need Terminate App Request ${APP_ID} TerminateAppRequest @@ -148,8 +148,8 @@ TC_MEC_MEC010p2_MEX_LCM_006_OK TC_MEC_MEC010p2_MEX_LCM_006_BR [Documentation] TP_MEC_MEC010p2_MEX_LCM_006_OK ... Check that MEC API provider service fails to terminate an App Instance when it receives a malformed request - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.7.3.1 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.9.2-1 #TerminateAppRequest + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.7.3.1 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.9.2-1 #TerminateAppRequest Terminate App Request ${APP_INSTANCE_ID} TerminateAppRequestBadRequest Check HTTP Response Status Code Is 400 @@ -157,8 +157,8 @@ TC_MEC_MEC010p2_MEX_LCM_006_BR TC_MEC_MEC010p2_MEX_LCM_006_NF [Documentation] TP_MEC_MEC010p2_MEX_LCM_006_NF ... Check that MEC API provider service fails to terminate an App Instance when it receives a request related to a not existing App Instance - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.7.3.1 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.9.2-1 #TerminateAppRequest + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.7.3.1 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.9.2-1 #TerminateAppRequest [Setup] Delete APP Instance ${NOT_EXISTING_APP_INSTANCE_ID} Terminate App Request ${NOT_EXISTING_APP_INSTANCE_ID} TerminateAppRequest Check HTTP Response Status Code Is 404 @@ -170,8 +170,8 @@ TC_MEC_MEC010p2_MEX_LCM_007_OK ... The following combinations INITIAL_STATE - FINAL_STATE are supported: ... - STARTED/STOP ... - STOPPED/STARTCheck that MEC API provider service terminates an App Instance when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.8.3.1 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.8.2-1 #OperateAppRequest + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.8.3.1 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.8.2-1 #OperateAppRequest [Setup] Create and Instantiate App Instance CreateAppInstanceRequest InstantiateAppRequest ##TODO sleep for a while because the instantiation is not immediate Operate App Request ${APP_INSTANCE_ID} OperateAppRequest @@ -183,16 +183,16 @@ TC_MEC_MEC010p2_MEX_LCM_007_OK TC_MEC_MEC010p2_MEX_LCM_007_BR [Documentation] TP_MEC_MEC010p2_MEX_LCM_007_BR ... Check that MEC API provider service fails to operate on an App Instance when it receives a malformed request - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.8.3.1 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.8.2-1 #OperateAppRequest + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.8.3.1 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.8.2-1 #OperateAppRequest Operate App Request ${APP_INSTANCE_ID} OperateAppRequestBadRequest Check HTTP Response Status Code Is 400 TC_MEC_MEC010p2_MEX_LCM_007_NF [Documentation] TP_MEC_MEC010p2_MEX_LCM_007_NF ... Check that MEC API provider service fails to change the status of an App Instance when it receives a request related to a not existing App Instance - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.8.3.1 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.8.2-1 #OperateAppRequest + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.8.3.1 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.8.2-1 #OperateAppRequest Operate App Request ${NOT_EXISTING_APP_INSTANCE_ID} OperateAppRequest Check HTTP Response Status Code Is 404 @@ -201,8 +201,8 @@ TC_MEC_MEC010p2_MEX_LCM_007_NF TC_MEC_MEC010p2_MEX_LCM_008_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_008_OK ... Check that MEC API provider service retrieves info about LCM Operation Occurrence on App Instances when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.9.3.2 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.13.2-1 #AppLcmOpOcc + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.9.3.2 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.13.2-1 #AppLcmOpOcc [Setup] Create and Instantiate App Instance CreateAppInstanceRequest InstantiateAppRequest GET all App LCM op Occs Check HTTP Response Status Code Is 200 @@ -214,8 +214,8 @@ TC_MEC_MEC010p2_MEX_LCM_008_OK TC_MEC_MEC010p2_MEX_LCM_009_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_009_OK ... Check that MEC API provider service retrieves info about LCM Operation Occurrence on an App Instance when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.10.3.2 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.13.2-1 #AppLcmOpOcc + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.10.3.2 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.13.2-1 #AppLcmOpOcc [Setup] Create and Instantiate App Instance CreateAppInstanceRequest InstantiateAppRequest GET App LCM op Occ ${APP_LCM_OP_OCCS_ID} Check HTTP Response Status Code Is 200 @@ -226,8 +226,8 @@ TC_MEC_MEC010p2_MEX_LCM_009_OK TC_MEC_MEC010p2_MEX_LCM_009_NF [Documentation] TP_MEC_MEC010p2_MEX_LCM_009_NF ... Check that MEC API provider service sends an error when it receives a query for a not existing LCM Operation Occurence - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.10.3.2 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.13.2-1 #AppLcmOpOcc + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.10.3.2 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.13.2-1 #AppLcmOpOcc GET App LCM op Occ ${NOT_EXISTING_APP_LCM_OP_OCC_ID} Check HTTP Response Status Code Is 404 @@ -238,15 +238,15 @@ TC_MEC_MEC010p2_MEX_LCM_010_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_010_OK ... Check that MEC API provider service creates a LCM Subscription when requested, where the subscription request can ... have SUBSCRIPTION_TYPE AppInstanceStateChangeSubscription or AppLcmOpOccStateChangeSubscription - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.3.3.1, - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.12.2-1 #AppInstSubscriptionRequest - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.14.2-1 #AppLcmOpOccSubscriptionRequest - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.25.2-1 #AppInstIdCreationSubscriptionRequest - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.28.2-1 #AppInstIdDeletionSubscriptionRequest - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.10.2-1 #AppInstSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.15.2-1 #AppLcmOpOccSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.26.2-1 #AppInstIdCreationSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.29.2-1 #AppInstIdDeletionSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.3.3.1, + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.12.2-1 #AppInstSubscriptionRequest + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.14.2-1 #AppLcmOpOccSubscriptionRequest + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.25.2-1 #AppInstIdCreationSubscriptionRequest + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.28.2-1 #AppInstIdDeletionSubscriptionRequest + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.10.2-1 #AppInstSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.15.2-1 #AppLcmOpOccSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.26.2-1 #AppInstIdCreationSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.29.2-1 #AppInstIdDeletionSubscriptionInfo Send a request for a subscription AppInstSubscriptionRequest Check HTTP Response Status Code Is 201 @@ -263,15 +263,15 @@ TC_MEC_MEC010p2_MEX_LCM_010_OK TC_MEC_MEC010p2_MEX_LCM_010_BR [Documentation] TP_MEC_MEC010p2_MEX_LCM_010_BR ... Check that MEC API provider service sends an error when it receives a malformed request to create a LCM Subscription - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.3.3.1, - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.12.2-1 #AppInstSubscriptionRequest - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.14.2-1 #AppLcmOpOccSubscriptionRequest - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.25.2-1 #AppInstIdCreationSubscriptionRequest - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.28.2-1 #AppInstIdDeletionSubscriptionRequest - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.10.2-1 #AppInstSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.15.2-1 #AppLcmOpOccSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.26.2-1 #AppInstIdCreationSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.29.2-1 #AppInstIdDeletionSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.3.3.1, + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.12.2-1 #AppInstSubscriptionRequest + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.14.2-1 #AppLcmOpOccSubscriptionRequest + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.25.2-1 #AppInstIdCreationSubscriptionRequest + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.28.2-1 #AppInstIdDeletionSubscriptionRequest + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.10.2-1 #AppInstSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.15.2-1 #AppLcmOpOccSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.26.2-1 #AppInstIdCreationSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.29.2-1 #AppInstIdDeletionSubscriptionInfo Send a request for a subscription AppInstSubscriptionRequestBadRequest Check HTTP Response Status Code Is 400 @@ -281,15 +281,15 @@ TC_MEC_MEC010p2_MEX_LCM_010_BR TC_MEC_MEC010p2_MEX_LCM_011_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_011_OK ... Check that MEC API provider service sends the list of LCM Subscriptions when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.3.3.2, - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.12.2-1 #AppInstSubscriptionRequest - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.14.2-1 #AppLcmOpOccSubscriptionRequest - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.25.2-1 #AppInstIdCreationSubscriptionRequest - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.28.2-1 #AppInstIdDeletionSubscriptionRequest - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.10.2-1 #AppInstSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.15.2-1 #AppLcmOpOccSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.26.2-1 #AppInstIdCreationSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.29.2-1 #AppInstIdDeletionSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.3.3.2, + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.12.2-1 #AppInstSubscriptionRequest + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.14.2-1 #AppLcmOpOccSubscriptionRequest + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.25.2-1 #AppInstIdCreationSubscriptionRequest + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.28.2-1 #AppInstIdDeletionSubscriptionRequest + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.10.2-1 #AppInstSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.15.2-1 #AppLcmOpOccSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.26.2-1 #AppInstIdCreationSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.29.2-1 #AppInstIdDeletionSubscriptionInfo [Setup] Send a request for a subscription AppInstSubscriptionRequest Set Test Variable ${SUB_ID} ${response['body']['id']} @@ -302,11 +302,11 @@ TC_MEC_MEC010p2_MEX_LCM_011_OK TC_MEC_MEC010p2_MEX_LCM_012_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_012_OK ... Check that MEC API provider service sends the information about an existing LCM subscription when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.4.3.2 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.10.2-1 #AppInstSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.15.2-1 #AppLcmOpOccSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.26.2-1 #AppInstIdCreationSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.29.2-1 #AppInstIdDeletionSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.4.3.2 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.10.2-1 #AppInstSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.15.2-1 #AppLcmOpOccSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.26.2-1 #AppInstIdCreationSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.29.2-1 #AppInstIdDeletionSubscriptionInfo [Setup] Send a request for a subscription AppInstSubscriptionRequest Set Test Variable ${SUB_ID} ${response['body']['id']} Send a request for retrieving a subscription ${SUB_ID} @@ -318,11 +318,11 @@ TC_MEC_MEC010p2_MEX_LCM_012_OK TC_MEC_MEC010p2_MEX_LCM_012_NF [Documentation] TP_MEC_MEC010p2_MEX_LCM_012_NF ... Check that MEC API provider service sends an error when it receives a query for a not existing LCM Subscription - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.4.3.2 - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.10.2-1 #AppInstSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.15.2-1 #AppLcmOpOccSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.26.2-1 #AppInstIdCreationSubscriptionInfo - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.29.2-1 #AppInstIdDeletionSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.4.3.2 + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.10.2-1 #AppInstSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.15.2-1 #AppLcmOpOccSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.26.2-1 #AppInstIdCreationSubscriptionInfo + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.29.2-1 #AppInstIdDeletionSubscriptionInfo [Setup] Send a request for deleting a subscription ${NOT_EXISTING_SUBSCRIPTION_ID} Send a request for retrieving a subscription ${NOT_EXISTING_SUBSCRIPTION_ID} Check HTTP Response Status Code Is 404 @@ -331,7 +331,7 @@ TC_MEC_MEC010p2_MEX_LCM_012_NF TC_MEC_MEC010p2_MEX_LCM_013_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_013_OK ... Check that MEC API provider service delete an existing LCM Subscription when requested - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.3.3.4 + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.3.3.4 [Setup] Send a request for a subscription AppInstSubscriptionRequest Set Test Variable ${SUB_ID} ${response['body']['id']} @@ -342,7 +342,7 @@ TC_MEC_MEC010p2_MEX_LCM_013_OK TC_MEC_MEC010p2_MEX_LCM_013_NF [Documentation] TP_MEC_MEC010p2_MEX_LCM_013_NF ... Check that MEC API provider service sends an error when it receives a deletion request for a not existing LCM Subscription - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.3.3.4 + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.3.3.4 [Setup] Send a request for deleting a subscription ${NOT_EXISTING_SUBSCRIPTION_ID} Send a request for deleting a subscription ${NOT_EXISTING_SUBSCRIPTION_ID} @@ -353,8 +353,8 @@ TC_MEC_MEC010p2_MEX_LCM_013_NF TC_MEC_MEC010p2_MEX_LCM_014_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_014_OK ... Check that MEC API provider service cancels an on going LCM Operation - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.11.3.1", - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.32.2-1" #CancelMode + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.11.3.1", + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.32.2-1" #CancelMode [Setup] Create and Instantiate App Instance CreateAppInstanceRequest InstantiateAppRequest Cancel on going LCM Operation ${APP_LCM_OP_OCCS_ID} CancelMode Check HTTP Response Status Code Is 202 @@ -365,8 +365,8 @@ TC_MEC_MEC010p2_MEX_LCM_014_OK TC_MEC_MEC010p2_MEX_LCM_014_BR [Documentation] TP_MEC_MEC010p2_MEX_LCM_014_BR ... Check that MEC API provider service fails to cancel an on going LCM Operation when it receives a malformed request - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.11.3.1", - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.32.2-1" #CancelMode + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.11.3.1", + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.32.2-1" #CancelMode [Setup] Create and Instantiate App Instance CreateAppInstanceRequest InstantiateAppRequest Cancel on going LCM Operation ${APP_LCM_OP_OCCS_ID} CancelModeBadRequest Check HTTP Response Status Code Is 400 @@ -376,8 +376,8 @@ TC_MEC_MEC010p2_MEX_LCM_014_BR TC_MEC_MEC010p2_MEX_LCM_014_NF [Documentation] TP_MEC_MEC010p2_MEX_LCM_014_NF ... Check that MEC API provider service fails to cancel an on going LCM Operation when it receives a request related to a not existing application LCM Operation - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.11.3.1", - ... ETSI GS MEC 010-2 3.1.1, table 6.2.2.32.2-1" #CancelMode + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.11.3.1", + ... ETSI GS MEC 010-2 3.2.1, table 6.2.2.32.2-1" #CancelMode Cancel on going LCM Operation ${NOT_EXISTING_APP_LCM_OP_OCC_ID} CancelMode Check HTTP Response Status Code Is 404 @@ -386,7 +386,7 @@ TC_MEC_MEC010p2_MEX_LCM_014_NF TC_MEC_MEC010p2_MEX_LCM_015_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_015_OK ... Check that MEC API provider service makes failed an on going LCM Operation - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.12.3.1 + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.12.3.1 [Setup] Create and Instantiate App Instance CreateAppInstanceRequest InstantiateAppRequest Fail on going LCM Operation ${APP_LCM_OP_OCCS_ID} Check HTTP Response Status Code Is 200 @@ -397,7 +397,7 @@ TC_MEC_MEC010p2_MEX_LCM_015_OK TC_MEC_MEC010p2_MEX_LCM_015_NF [Documentation] TP_MEC_MEC010p2_MEX_LCM_015_NF ... Check that MEC API provider service makes failed an on going LCM Operation - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.12.3.1 + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.12.3.1 Fail on going LCM Operation ${NOT_EXISTING_APP_LCM_OP_OCC_ID} Check HTTP Response Status Code Is 404 @@ -405,7 +405,7 @@ TC_MEC_MEC010p2_MEX_LCM_015_NF TC_MEC_MEC010p2_MEX_LCM_016_OK [Documentation] TP_MEC_MEC010p2_MEX_LCM_016_OK ... Check that MEC API provider service retries an on going LCM Operation - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.13.3.1 + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.13.3.1 [Setup] Create and Instantiate App Instance CreateAppInstanceRequest InstantiateAppRequest Retry on going LCM Operation ${APP_LCM_OP_OCC_ID} Check HTTP Response Status Code Is 202 @@ -415,7 +415,7 @@ TC_MEC_MEC010p2_MEX_LCM_016_OK TC_MEC_MEC010p2_MEX_LCM_016_NF [Documentation] TP_MEC_MEC010p2_MEX_LCM_016_NF ... Check that MEC API provider service fails to retry an LCM Operation when it receives a request related to a not existing application LCM Operation - ... ETSI GS MEC 010-2 3.1.1, clause 7.4.13.3.1 + ... ETSI GS MEC 010-2 3.2.1, clause 7.4.13.3.1 Retry on going LCM Operation ${NOT_EXISTING_APP_LCM_OP_OCC_ID} Check HTTP Response Status Code Is 404 -- GitLab