Newer
Older
*** Settings ***
Resource environment/variables.txt
Resource NSInstanceUsageNotificationKeywords.robot
Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} ssl_verify=false
Library OperatingSystem
Library JSONLibrary
Library JSONSchemaLibrary schemas/
*** Test Cases ***
POST Create a new subscription
... Test title: POST Create a new subscription
... Test objective: The objective is to test that POST method creates a subscription
... Pre-conditions: none
... Reference: Clause 8.5.3.3.1 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: Subscription is created in the NFVO
POST subscriptions
Check HTTP Response Status Code Is 201
Check HTTP Response Header Contains Location
Check HTTP Response Body Json Schema Is subscription
Check Postcondition Subscription Is Set
POST Create a new Subscription - DUPLICATION
... Test title: POST Create a new subscription - DUPLICATION
... Test objective: The objective is to test that POST method creates a duplicate subscription
... Pre-conditions: A subscription shall already exist
... Reference: Clause 8.5.3.3.1 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
... Applicability: Duplication supported by NFVO-C
... Post-Conditions: Duplicate subscription is created in the NFVO
POST subscriptions DUPLICATION
Check Subscription Existence
Check HTTP Response Status Code Is 201
Check HTTP Response Header Contains Location
Check HTTP Response Body Json Schema Is subscription
Check Postcondition Subscription Resource Returned in Location Header Is Available
POST Create a new Subscription - NO-DUPLICATION
... Test title: POST Create a new subscription - NO-DUPLICATION
... Test objective: The objective is to test that POST method cannot create a duplicate subscription
... Pre-conditions: A subscription shall already exist
... Reference: Clause 8.5.3.3.1 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
... Applicability: Duplication NOT supported by NFVO-C
... Post-Conditions: Duplicate subscription is not created in the NFVO
POST subscriptions NO DUPLICATION
Check Subscription Existence
Check HTTP Response Status Code Is 303
Check HTTP Response Header Contains Location
Check Postcondition Subscription Is Set
... Test title: GET Subscriptions
... Test objective: The objective is to test that GET method retrieves the list of existing subscriptions
... Pre-conditions: none
... Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET Subscriptions
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is subscriptions
GET Subscription - Filter
... Test title: GET Subscription - Filter
... Test objective: The objective is GET the list of active subscriptions using a filter
... Pre-conditions: none
... Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET Subscriptions with filter
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is subscriptions
GET subscriptions - Bad Request Invalid attribute-based filtering parameters
... Test title: GET subscriptions - Bad Request Invalid attribute-based filtering parameters
... Test objective: The objective is GET the list of active subscriptions using an invalid filter
... Pre-conditions: none
... Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Get subscriptions - invalid filter
Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails
GET subscriptions - Bad Request Response too Big
... Test title: GET subscriptions - Bad Request Response too Big
... Test objective: The objective is test that the retrieval of active subscriptions list fails because response is too big, and perform the JSON schema validation of the failed operation HTTP response.
... Pre-conditions: none
... Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET Subscriptions
Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails
GET subscriptions with "all_fields" attribute selector
... Test title: GET subscriptions with "all_fields" attribute selector
... Test objective: The objective is to retrieve the list of active subscriptions with "all_fields" attribute selector
... Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
Get subscriptions with all_fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is subscriptions
GET subscriptions with "exclude_default" attribute selector
... Test title: GET subscriptions with "exclude_default" attribute selector
... Test objective: The objective is to retrieve the list of active subscriptions with "exclude_default"s attribute selector
... Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
Get subscriptions with exclude_default attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is subscriptions
GET subscriptions with "fields" attribute selector
... Test title: GET subscriptions with "fields" attribute selector
... Test objective: The objective is to retrieve the list of active subscriptions with "fields" attribute selector
... Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
Get subscriptions with fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is subscriptions
GET subscriptions with "exclude_fields" attribute selector
... Test title: GET subscriptions with "exclude_fields" attribute selector
... Test objective: The objective is to retrieve the list of active subscriptions with "exclude_fields" attribute selector
... Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
Get subscriptions with exclude_fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is subscriptions
GET Subscriptions as Paged Response
... Test title: GET Subscriptions as Paged Response
... Test objective: The objective is to test that GET method retrieve the list of existing subscriptions as paged response.
... Pre-conditions: none
... Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET Subscriptions
Check HTTP Response Status Code Is 200
PUT subscriptions - Method not implemented
... Test title: PUT subscriptions - Method not implemented
... Test objective: The objective is to test that PUT method cannot modify a NS instance usage subscription
... Pre-conditions: none
... Reference: Clause 8.5.3.3.3 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
PUT subscriptions
Check HTTP Response Status Code Is 405
PATCH subscriptions - Method not implemented
... Test title: PATCH subscriptions - Method not implemented
... Test objective: The objective is to test that PUT method cannot modify a NS instance usage subscription
... Pre-conditions: none
... Reference: Clause 8.5.3.3.4 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
PATCH subscriptions
Check HTTP Response Status Code Is 405
DELETE subscriptions - Method not implemented
... Test title: DELETE subscriptions - Method not implemented
... Test objective: The objective is to test that DELETE method cannot delete a NS instance usage subscription
... Pre-conditions: none
... Reference: Clause 8.5.3.3.5 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Config ID: Config_prod_NFVO
... Applicability: none
Check Postcondition Subscriptions Exist
GET subscriptions with "exclude_default" and "fields" attribute selector
... Test title: GET subscriptions with "exclude_default" and "fields" attribute selector
... Test objective: The objective is to retrieve the list of active subscriptions with "exclude_default" and "fields" attribute selector
... Pre-conditions:
... Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [8] v3.3.1
... Applicability: none
... Post-Conditions: none
Get subscriptions with exclude_default and fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is subscriptions