Newer
Older
mengxuan.zhao
committed
*** Settings ***
Resource environment/variables.txt
Resource VNFLifecycleOperationGrantingKeywords.robot
mengxuan.zhao
committed
Library OperatingSystem
Library JSONLibrary
Library JSONSchemaLibrary schemas/
Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} ssl_verify=false
#Variables descriptors/SOL001/VNFD/vnfd_SOL001.yaml
#Variables descriptors/SOL006/VNFD/vnfd_SOL006.yaml
mengxuan.zhao
committed
Documentation This resource represents an individual grant. The client can use this resource to read the grant.
... It is determined by means outside the scope of the present document, such as configuration or policy,
... how long an individual grant is available.
*** Test Cases ***
POST Individual Grant - Method not implemented
... 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
... Pre-conditions: none
... Reference: Clause 9.4.2.3.4 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Applicability: none
... Post-Conditions: none
Post individual Grant
Check HTTP Response Status Code Is 405
mengxuan.zhao
committed
... Test title: GET an individual grant - Successful
... Test objective: The objective is to retrieve a grant for a particular VNF Lifecycle Operation.
... Pre-conditions: The grant information is available to the NFVO
... Reference: Clause 9.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is grant
Check HTTP Response Body grant content against VNF Descriptor
mengxuan.zhao
committed
GET an individual grant - Process ongoing
[Tags] no-synchronous-mode
... Test title: GET an individual grant - Process ongoing
... Test objective: The objective is to retrieve a grant for a particular VNF lifecycle operation when process is ongoing and no grant is available yet.
... Pre-conditions: The process of creating the grant is ongoing, no grant is available yet.
... Reference: Clause 9.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
Check HTTP Response Status Code Is 202
Check HTTP Response Body Json Schema Is grant
GET an individual grant - grant rejected
[Tags] no-synchronous-mode
... Test title: GET an individual grant - grant rejected
... Test objective: The objective is to retrieve a grant for a particular VNF Lifecycle Operation but error returned because grant has been rejected.
... Reference: Clause 9.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
Check HTTP Response Status Code Is 403
Check HTTP Response Body Json Schema Is ProblemDetails
mengxuan.zhao
committed
PUT an individual grant - Method not implemented
[Documentation] Test ID: 7.3.2.2.5
... 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
... Pre-conditions: none
... Reference: Clause 9.4.3.3.3 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Applicability: none
... Post-Conditions: none
PUT individual Grant
Check HTTP Response Status Code Is 405
mengxuan.zhao
committed
PATCH an individual grant - Method not implemented
[Documentation] Test ID: 7.3.2.2.6
... 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
... Pre-conditions: none
... Reference: Clause 9.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Applicability: none
... Post-Conditions: none
Patch individual Grant
Check HTTP Response Status Code Is 405
mengxuan.zhao
committed
DELETE an individual grant - Method not implemented
[Documentation] Test ID: 7.3.2.2.7
... 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
... Pre-conditions: none
... Reference: Clause 9.4.3.3.5 - ETSI GS NFV-SOL 003 [1] v3.3.1
Check HTTP Response Status Code Is 405