Loading MEC010p2/MEO/GRANT/Grant.robot +32 −36 Original line number Diff line number Diff line ''[Documentation] robot --outputdir ./outputs ./SRV/UETAG/PlatUeIdentity.robot ... Test Suite to validate UE Identity Tag (UETAG) operations. ''[Documentation] robot --outputdir ./outputs ./Grant.robot ... Test Suite to validate Grant operations. *** Settings *** Resource environment/variables.txt Loading @@ -11,12 +11,12 @@ Library OperatingSystem *** Test Cases *** TC_MEC_MEC010p2_MEO_GRANT_001_OK TP_MEC_MEC010p2_MEO_GRANT_001_OK [Documentation] ... Check that MEO sends a synchronous grant response when a grant request is requested ... ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.1 ... ETSI GS MEC 010-2 2.0.10, Table 6.2.4.2.2-1 (GrantRequest) ... ETSI GS MEC 010-2 2.0.10, Table 6.2.4.4.2-1 (Grant) ... ETSI GS MEC 010-2 2.2.1, clause 7.5.1.3.1 ... ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1 (GrantRequest) ... ETSI GS MEC 010-2 2.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 Loading @@ -25,63 +25,59 @@ TC_MEC_MEC010p2_MEO_GRANT_001_OK TC_MEC_MEC010p2_MEO_GRANT_001_BR TP_MEC_MEC010p2_MEO_GRANT_001_BR [Documentation] TP_MEC_MEO_GRANT_001_BR ... Check that MEO responds with an error when it receives a malformed request when a new grant request is performed ... ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.2 ... ETSI GS MEC 010-2 2.0.10, Table 6.2.4.4.2-1 (Grant) ... ETSI GS MEC 010-2 2.2.1, clause 7.6.1.3.2 ... ETSI GS MEC 010-2 2.2.1, Table 6.2.4.4.2-1 (Grant) [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Create a GRANT request grantRejectedRequest Check HTTP Response Status Code Is 400 TC_MEC_MEC010p2_MEO_GRANT_002_OK TP_MEC_MEC010p2_MEO_GRANT_002_OK [Documentation] TP_MEC_MEO_GRANT_002_OK ... Check that MEO sends a asynchronous grant response when a grant request is requested ... ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.1 ... ETSI GS MEC 010-2 2.0.10, Table 6.2.4.4.2-1 (Grant) ... ETSI GS MEC 010-2 2.2.1, clause 7.6.1.3.1 ... ETSI GS MEC 010-2 2.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 202 Create a GRANT request grantRequest2 Check HTTP Response Status Code Is 201 Check HTTP Response Header Contains Location Check HTTP Response Body is Empty Check HTTP Response Body Json Schema Is Grant TC_MEC_MEC010p2_MEO_GRANT_003_OK TP_MEC_MEC010p2_MEO_GRANT_006_OK [Documentation] TP_MEC_MEO_GRANT_003_OK ... 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 2.0.10, clause 7.6.1.3.2 ... ETSI GS MEC 010-2 2.2.1, clause 7.6.1.3.2 [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Get an individual grant ${grantId} Check HTTP Response Status Code Is 202 Get an individual grant ${GRANT_ID} Check HTTP Response Status Code Is 200 Check HTTP Response Header Contains Location Check HTTP Response Body is Empty Check HTTP Response Body Json Schema Is Grant TC_MEC_MEC010p2_MEO_GRANT_003_NF TP_MEC_MEC010p2_MEO_GRANT_003_NF [Documentation] TP_MEC_MEO_GRANT_003_NF ... Check that MEO responds with an error when it receives a request for returning a grant referred with a wrong ID ... ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.2 ... ETSI GS MEC 010-2 2.2.1, clause 7.6.1.3.2 [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Get an individual grant ${non_existant_grant_id} Get an individual grant ${NOT_EXISTING_GRANT_ID} Check HTTP Response Status Code Is 404 TC_MEC_MEC010p2_MEO_GRANT_004_OK [Documentation] TP_MEC_MEO_GRANT_004_OK ... Check that MEO sends the status of a grant request when a query on a granting ID is performed ... ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.2 ... ETSI GS MEC 010-2 2.0.10, Table 6.2.4.4.2-1 [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Get an individual grant ${grantId} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is Grant *** Keywords *** Create a GRANT request Loading @@ -99,7 +95,7 @@ Create a GRANT request Get an individual grant [Arguments] ${grantId} Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Authorization":"${TOKEN}"} Get ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId} allow_redirects=false ${output}= Output response Loading MEC010p2/MEO/GRANT/environment/variables.txt +4 −3 Original line number Diff line number Diff line *** Variables *** # Generic variables ${MEO_SCHEMA} http ${MEO_HOST} 10.192.2.172 #${MEO_HOST} 10.192.2.172 ${MEO_HOST} 127.0.0.1 ${MEO_PORT} 8081 ${response} {} ${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l Loading @@ -10,8 +11,8 @@ ${apiName} granting ${apiVersion} v1 # Specific variables ${grantId} e0deee2b-6e50-4f33-ab09-8bf0585025d3 ${non_existant_grant_id} non_existant_grant_id ${GRANT_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3 ${NOT_EXISTING_GRANT_ID} non_existant_grant_id # Notifications variables Loading MEC010p2/MEO/GRANT/jsons/grantRejectedRequest.json +6 −1 Original line number Diff line number Diff line {} No newline at end of file { "id": "123", "appInstanceId": "456", "appLcmOpOccId": "789", "operationERROR":"INSTANTIATE" } No newline at end of file MEC010p2/MEO/GRANT/jsons/grantRequest.json 0 → 100644 +23 −0 Original line number Diff line number Diff line { "id": "123", "appInstanceId": "456", "appLcmOpOccId": "789", "appDId":"appDId", "operation":"INSTANTIATE", "addResources": [ { "resourceDefinitionId": "resourceDefinitionId", "vimConnectionId": "vimConnectionId", "resourceGroupId": "resourceGroupId", "zoneId": "zoneId" } ], "_links": { "appLcmOpOcc": { "href": "https://anexample.ex/" }, "appInstance": { "href": "https://anexample.ex/" } } } No newline at end of file MEC010p2/MEO/GRANT/jsons/grantRequest2.json 0 → 100644 +14 −0 Original line number Diff line number Diff line { "id": "123", "appInstanceId": "456", "appLcmOpOccId": "789", "operation": "OPERATE", "_links": { "appLcmOpOcc": { "href": "https://anexample.ex/" }, "appInstance": { "href": "https://anexample.ex/" } } } No newline at end of file Loading
MEC010p2/MEO/GRANT/Grant.robot +32 −36 Original line number Diff line number Diff line ''[Documentation] robot --outputdir ./outputs ./SRV/UETAG/PlatUeIdentity.robot ... Test Suite to validate UE Identity Tag (UETAG) operations. ''[Documentation] robot --outputdir ./outputs ./Grant.robot ... Test Suite to validate Grant operations. *** Settings *** Resource environment/variables.txt Loading @@ -11,12 +11,12 @@ Library OperatingSystem *** Test Cases *** TC_MEC_MEC010p2_MEO_GRANT_001_OK TP_MEC_MEC010p2_MEO_GRANT_001_OK [Documentation] ... Check that MEO sends a synchronous grant response when a grant request is requested ... ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.1 ... ETSI GS MEC 010-2 2.0.10, Table 6.2.4.2.2-1 (GrantRequest) ... ETSI GS MEC 010-2 2.0.10, Table 6.2.4.4.2-1 (Grant) ... ETSI GS MEC 010-2 2.2.1, clause 7.5.1.3.1 ... ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1 (GrantRequest) ... ETSI GS MEC 010-2 2.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 Loading @@ -25,63 +25,59 @@ TC_MEC_MEC010p2_MEO_GRANT_001_OK TC_MEC_MEC010p2_MEO_GRANT_001_BR TP_MEC_MEC010p2_MEO_GRANT_001_BR [Documentation] TP_MEC_MEO_GRANT_001_BR ... Check that MEO responds with an error when it receives a malformed request when a new grant request is performed ... ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.2 ... ETSI GS MEC 010-2 2.0.10, Table 6.2.4.4.2-1 (Grant) ... ETSI GS MEC 010-2 2.2.1, clause 7.6.1.3.2 ... ETSI GS MEC 010-2 2.2.1, Table 6.2.4.4.2-1 (Grant) [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Create a GRANT request grantRejectedRequest Check HTTP Response Status Code Is 400 TC_MEC_MEC010p2_MEO_GRANT_002_OK TP_MEC_MEC010p2_MEO_GRANT_002_OK [Documentation] TP_MEC_MEO_GRANT_002_OK ... Check that MEO sends a asynchronous grant response when a grant request is requested ... ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.1 ... ETSI GS MEC 010-2 2.0.10, Table 6.2.4.4.2-1 (Grant) ... ETSI GS MEC 010-2 2.2.1, clause 7.6.1.3.1 ... ETSI GS MEC 010-2 2.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 202 Create a GRANT request grantRequest2 Check HTTP Response Status Code Is 201 Check HTTP Response Header Contains Location Check HTTP Response Body is Empty Check HTTP Response Body Json Schema Is Grant TC_MEC_MEC010p2_MEO_GRANT_003_OK TP_MEC_MEC010p2_MEO_GRANT_006_OK [Documentation] TP_MEC_MEO_GRANT_003_OK ... 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 2.0.10, clause 7.6.1.3.2 ... ETSI GS MEC 010-2 2.2.1, clause 7.6.1.3.2 [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Get an individual grant ${grantId} Check HTTP Response Status Code Is 202 Get an individual grant ${GRANT_ID} Check HTTP Response Status Code Is 200 Check HTTP Response Header Contains Location Check HTTP Response Body is Empty Check HTTP Response Body Json Schema Is Grant TC_MEC_MEC010p2_MEO_GRANT_003_NF TP_MEC_MEC010p2_MEO_GRANT_003_NF [Documentation] TP_MEC_MEO_GRANT_003_NF ... Check that MEO responds with an error when it receives a request for returning a grant referred with a wrong ID ... ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.2 ... ETSI GS MEC 010-2 2.2.1, clause 7.6.1.3.2 [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Get an individual grant ${non_existant_grant_id} Get an individual grant ${NOT_EXISTING_GRANT_ID} Check HTTP Response Status Code Is 404 TC_MEC_MEC010p2_MEO_GRANT_004_OK [Documentation] TP_MEC_MEO_GRANT_004_OK ... Check that MEO sends the status of a grant request when a query on a granting ID is performed ... ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.2 ... ETSI GS MEC 010-2 2.0.10, Table 6.2.4.4.2-1 [Tags] PIC_GRANTS_MANAGEMENT INCLUDE_UNDEFINED_SCHEMAS Get an individual grant ${grantId} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is Grant *** Keywords *** Create a GRANT request Loading @@ -99,7 +95,7 @@ Create a GRANT request Get an individual grant [Arguments] ${grantId} Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Authorization":"${TOKEN}"} Get ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId} allow_redirects=false ${output}= Output response Loading
MEC010p2/MEO/GRANT/environment/variables.txt +4 −3 Original line number Diff line number Diff line *** Variables *** # Generic variables ${MEO_SCHEMA} http ${MEO_HOST} 10.192.2.172 #${MEO_HOST} 10.192.2.172 ${MEO_HOST} 127.0.0.1 ${MEO_PORT} 8081 ${response} {} ${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l Loading @@ -10,8 +11,8 @@ ${apiName} granting ${apiVersion} v1 # Specific variables ${grantId} e0deee2b-6e50-4f33-ab09-8bf0585025d3 ${non_existant_grant_id} non_existant_grant_id ${GRANT_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3 ${NOT_EXISTING_GRANT_ID} non_existant_grant_id # Notifications variables Loading
MEC010p2/MEO/GRANT/jsons/grantRejectedRequest.json +6 −1 Original line number Diff line number Diff line {} No newline at end of file { "id": "123", "appInstanceId": "456", "appLcmOpOccId": "789", "operationERROR":"INSTANTIATE" } No newline at end of file
MEC010p2/MEO/GRANT/jsons/grantRequest.json 0 → 100644 +23 −0 Original line number Diff line number Diff line { "id": "123", "appInstanceId": "456", "appLcmOpOccId": "789", "appDId":"appDId", "operation":"INSTANTIATE", "addResources": [ { "resourceDefinitionId": "resourceDefinitionId", "vimConnectionId": "vimConnectionId", "resourceGroupId": "resourceGroupId", "zoneId": "zoneId" } ], "_links": { "appLcmOpOcc": { "href": "https://anexample.ex/" }, "appInstance": { "href": "https://anexample.ex/" } } } No newline at end of file
MEC010p2/MEO/GRANT/jsons/grantRequest2.json 0 → 100644 +14 −0 Original line number Diff line number Diff line { "id": "123", "appInstanceId": "456", "appLcmOpOccId": "789", "operation": "OPERATE", "_links": { "appLcmOpOcc": { "href": "https://anexample.ex/" }, "appInstance": { "href": "https://anexample.ex/" } } } No newline at end of file