Skip to content
Snippets Groups Projects
Commit c0a1eacd authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

fixes to NSLifecycleOperationGranting-API

parent 40eb3a88
No related branches found
No related tags found
2 merge requests!199Merge "3.3.1 dev" into "release 3" master,!1733.3.1 dev sol011 final
......@@ -20,7 +20,7 @@ Requests a grant for a particular NS lifecycle operation
Check HTTP Response Status Code Is 201
Check HTTP Response Body Json Schema Is Grant
Check HTTP Response Header Contains Location
Check Resource URI existence
Check Postcondition Grant Is Set
Requests a grant for a particular NS lifecycle operation - Forbidden
[Documentation] Test ID: 9.3.3.1.2
......@@ -38,7 +38,7 @@ Requests a grant for a particular NS lifecycle operation - Forbidden
GET Grants - Method not implemented
[Documentation] Test ID: 9.3.3.1.3
... Test title: GET Grants - Method not implemented
... Test objective: The objective is to test that GET method is not allowed for Life cycle operation granting
... Test objective: The objective is to test that GET method is not allowed for Lifecycle operation granting
... Pre-conditions: none
... Reference: Clause 7.5.3.3.2 - ETSI GS NFV-SOL 011 [6] v3.3.1
... Config ID: Config_prod_NFVO
......@@ -50,7 +50,7 @@ GET Grants - Method not implemented
PUT Grants - Method not implemented
[Documentation] Test ID: 9.3.3.1.4
... Test title: PUT Grants - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed for Life cycle operation granting
... Test objective: The objective is to test that PUT method is not allowed for Lifecycle operation granting
... Pre-conditions: none
... Reference: Clause 7.5.3.3.3 - ETSI GS NFV-SOL 011 [6] v3.3.1
... Config ID: Config_prod_NFVO
......@@ -62,7 +62,7 @@ PUT Grants - Method not implemented
PATCH Grants - Method not implemented
[Documentation] Test ID: 9.3.3.1.5
... Test title: PATCH Grants - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed for Life cycle operation granting
... Test objective: The objective is to test that PATCH method is not allowed for Lifecycle operation granting
... Pre-conditions: none
... Reference: Clause 7.5.3.3.4 - ETSI GS NFV-SOL 011 [6] v3.3.1
... Config ID: Config_prod_NFVO
......@@ -74,7 +74,7 @@ PATCH Grants - Method not implemented
DELETE Grants - Method not implemented
[Documentation] Test ID: 9.3.3.1.6
... Test title: DELETE Grants - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed for Life cycle operation granting
... Test objective: The objective is to test that DELETE method is not allowed for Lifecycle operation granting
... Pre-conditions: none
... Reference: Clause 7.5.3.3.5 - ETSI GS NFV-SOL 011 [6] v3.3.1
... Config ID: Config_prod_NFVO
......@@ -82,4 +82,4 @@ DELETE Grants - Method not implemented
... Post-Conditions: Resources are not deleted
Delete Grants
Check HTTP Response Status Code Is 405
Get an individual grant - Successful
\ No newline at end of file
Check Postcondition Grants Exist
\ No newline at end of file
......@@ -13,7 +13,7 @@ Documentation This resource represents an individual grant. The client can us
POST Individual Grant - Method not implemented
[Documentation] Test ID: 9.3.3.2.1
... Test title: POST Individual Grant - Method not implemented
... Test objective: The objective is to test that POST method is not allowed for Life cycle operation granting
... Test objective: The objective is to test that POST method is not allowed for Lifecycle operation granting
... Pre-conditions: none
... Reference: Clause 7.5.4.3.1 - ETSI GS NFV-SOL 011 [1] v3.3.1
... Config ID: Config_prod_NFVO
......@@ -38,7 +38,7 @@ GET an individual grant - Successful
PUT an individual grant - Method not implemented
[Documentation] Test ID: 9.3.3.2.3
... Test title: PUT an individual grant - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to for Life cycle operation granting
... Test objective: The objective is to test that PUT method is not allowed to for Lifecycle operation granting
... Pre-conditions: none
... Reference: Clause 7.5.4.3.3 - ETSI GS NFV-SOL 011 [1] v3.3.1
... Config ID: Config_prod_NFVO
......@@ -50,7 +50,7 @@ PUT an individual grant - Method not implemented
PATCH an individual grant - Method not implemented
[Documentation] Test ID: 9.3.3.2.4
... Test title: PATCH an individual grant - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to for Life cycle operation granting
... Test objective: The objective is to test that PATCH method is not allowed to for Lifecycle operation granting
... Pre-conditions: none
... Reference: Clause 7.5.4.3.4 - ETSI GS NFV-SOL 011 [1] v3.3.1
... Config ID: Config_prod_NFVO
......@@ -62,12 +62,12 @@ PATCH an individual grant - Method not implemented
DELETE an individual grant - Method not implemented
[Documentation] Test ID: 9.3.3.2.5
... Test title: DELETE an individual grant - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed to for Life cycle operation granting
... Test objective: The objective is to test that DELETE method is not allowed to for Lifecycle operation granting
... Pre-conditions: none
... Reference: Clause 7.5.4.3.5 - ETSI GS NFV-SOL 011 [1] v3.3.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: Grant is not deleted
... Post-Conditions: none
Delete individual Grant
Check HTTP Response Status Code Is 405
......
......@@ -125,4 +125,18 @@ Delete individual Grant
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Delete ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId}
${body}= Output response
Set Suite Variable ${response} ${body}
\ No newline at end of file
Set Suite Variable ${response} ${body}
Check Postcondition Grants Exist
Log Checking that grants exists
Get Grants
Check Postcondition Grant Is Set
Log Check Postcondition subscription exist
Log Trying to get the subscription
Set Headers {"Accept": "${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/grants/${response['body']['id']}
${output}= Output response
Set Suite Variable ${response} ${output}
Check HTTP Response Status Code Is 200
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment