Skip to content
Snippets Groups Projects
Commit dee2452e authored by sinatra's avatar sinatra
Browse files

Merge branch 'feature/refactoring' into 'master'

FaultManagementSOL005R1

See merge request stf/stf-557/api-tests!20
parents bd65ae1b cf363111
No related branches found
No related tags found
No related merge requests found
...@@ -15,13 +15,13 @@ POST Alarms - Method not implemented ...@@ -15,13 +15,13 @@ POST Alarms - Method not implemented
... Reference: section 8.4.2.3.1 - SOL005 v2.4.1 ... Reference: section 8.4.2.3.1 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: alarm not created
POST Alarms POST Alarms
Check HTTP Response Status Code Is 405 Check HTTP Response Status Code Is 405
Get information about multiple alarms GET information about multiple alarms
[Documentation] Test ID: 5.3.3.1.2 [Documentation] Test ID: 5.3.3.1.2
... Test title: Get information about multiple alarms ... Test title: GET information about multiple alarms
... Test objective: The objective is to retrieve information about the alarm list and perform a JSON schema and content validation of the returned alarms data structure ... Test objective: The objective is to retrieve information about the alarm list and perform a JSON schema and content validation of the returned alarms data structure
... Pre-conditions: none ... Pre-conditions: none
... Reference: section 8.4.2.3.2 - SOL005 v2.4.1 ... Reference: section 8.4.2.3.2 - SOL005 v2.4.1
...@@ -32,22 +32,22 @@ Get information about multiple alarms ...@@ -32,22 +32,22 @@ Get information about multiple alarms
Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is alarms Check HTTP Response Body Json Schema Is alarms
Get information about multiple alarms with filters GET information about multiple alarms with filters
[Documentation] Test ID: 5.3.3.1.3 [Documentation] Test ID: 5.3.3.1.3
... Test title: Get information about multiple alarms with filters ... Test title: GET information about multiple alarms with filters
... Test objective: The objective is to retrieve information about the alarm list and perform a JSON schema and content validation of the returned alarms data structure, and verify that the retrieved information matches the issued attribute-based filters ... Test objective: The objective is to retrieve information about the alarm list and perform a JSON schema and content validation of the returned alarms data structure, and verify that the retrieved information matches the issued attribute-based filters
... Pre-conditions: none ... Pre-conditions: none
... Reference: section 8.4.2.3.2 - SOL005 v2.4.1 ... Reference: section 8.4.2.3.2 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
GET Alarms With Filters GET Alarms With Filters
Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is alarms Check HTTP Response Body Json Schema Is alarms
Get information about multiple alarms Bad Request Invalid attribute-based filtering parameters GET information about multiple alarms Bad Request Invalid attribute-based filtering parameters
[Documentation] Test ID: 5.3.3.1.4 [Documentation] Test ID: 5.3.3.1.4
... Test title: Get information about multiple alarms Bad Request Invalid attribute-based filtering parameters ... Test title: GET information about multiple alarms Bad Request Invalid attribute-based filtering parameters
... Test objective: The objective is to try to retrieve information about the alarm list with invalid filters and perform a JSON schema and content validation of the returned problem details data structure ... Test objective: The objective is to try to retrieve information about the alarm list with invalid filters and perform a JSON schema and content validation of the returned problem details data structure
... Pre-conditions: none ... Pre-conditions: none
... Reference: section 8.4.2.3.2 - SOL005 v2.4.1 ... Reference: section 8.4.2.3.2 - SOL005 v2.4.1
...@@ -66,7 +66,7 @@ PUT Alarms - Method not implemented ...@@ -66,7 +66,7 @@ PUT Alarms - Method not implemented
... Reference: section 8.4.2.3.3 - SOL005 v2.4.1 ... Reference: section 8.4.2.3.3 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
PUT Alarms PUT Alarms
Check HTTP Response Status Code Is 405 Check HTTP Response Status Code Is 405
...@@ -79,7 +79,7 @@ PATCH Alarms - Method not implemented ...@@ -79,7 +79,7 @@ PATCH Alarms - Method not implemented
... Reference: section 8.4.2.3.4 - SOL005 v2.4.1 ... Reference: section 8.4.2.3.4 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
PATCH Alarms PATCH Alarms
Check HTTP Response Status Code Is 405 Check HTTP Response Status Code Is 405
...@@ -91,7 +91,7 @@ DELETE Alarms - Method not implemented ...@@ -91,7 +91,7 @@ DELETE Alarms - Method not implemented
... Reference: section 8.4.2.3.5 - SOL005 v2.4.1 ... Reference: section 8.4.2.3.5 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: alarm not deleted
DELETE Alarms DELETE Alarms
Check HTTP Response Status Code Is 405 Check HTTP Response Status Code Is 405
......
...@@ -17,7 +17,7 @@ POST Individual Alarm - Method not implemented ...@@ -17,7 +17,7 @@ POST Individual Alarm - Method not implemented
... Reference: section 8.4.3.3.1 - SOL005 v2.4.1 ... Reference: section 8.4.3.3.1 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: alarm is not created
POST Individual Alarm POST Individual Alarm
Check HTTP Response Status Code Is 405 Check HTTP Response Status Code Is 405
...@@ -81,7 +81,6 @@ PATCH Alarm - Conflict ...@@ -81,7 +81,6 @@ PATCH Alarm - Conflict
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
Depends On Test PATCH Alarm # If the previous test scceeded, it means that the alarm is in ackownledged state
PATCH Individual Alarm PATCH Individual Alarm
Check HTTP Response Status Code Is 409 Check HTTP Response Status Code Is 409
Check HTTP Response Body Json Schema Is ProblemDetails Check HTTP Response Body Json Schema Is ProblemDetails
...@@ -95,8 +94,7 @@ PATCH Alarm - Precondition failed ...@@ -95,8 +94,7 @@ PATCH Alarm - Precondition failed
... Reference: section 8.4.3.3.4 - SOL005 v2.4.1 ... Reference: section 8.4.3.3.4 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: none ... Applicability: none
... Post-Conditions: The alarm resource is not modified ... Post-Conditions:
Depends On Test PATCH Alarm # If the previous test scceeded, it means that Etag has been modified
PATCH Individual Alarm Conflict PATCH Individual Alarm Conflict
Check HTTP Response Status Code Is 412 Check HTTP Response Status Code Is 412
Check HTTP Response Body Json Schema Is ProblemDetails Check HTTP Response Body Json Schema Is ProblemDetails
...@@ -109,6 +107,6 @@ DELETE Individual Alarm - Method not implemented ...@@ -109,6 +107,6 @@ DELETE Individual Alarm - Method not implemented
... Reference: section 8.4.3.3.5 - SOL005 v2.4.1 ... Reference: section 8.4.3.3.5 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: alarm not deleted
DELETE Individual Alarm DELETE Individual Alarm
Check HTTP Response Status Code Is 405 Check HTTP Response Status Code Is 405
...@@ -5,10 +5,6 @@ Library JSONLibrary ...@@ -5,10 +5,6 @@ Library JSONLibrary
Library JSONSchemaLibrary schemas/ Library JSONSchemaLibrary schemas/
Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT}
Documentation This resource represents an individual subscription for NFVO alarms.
... The client can use this resource to read and to terminate a subscription to notifications related to NFVO fault management.
Suite Setup Check Individual Subscription existance
*** Test Cases *** *** Test Cases ***
Post Individual Subscription - Method not implemented Post Individual Subscription - Method not implemented
[Documentation] Test ID: 5.3.3.4.1 [Documentation] Test ID: 5.3.3.4.1
...@@ -18,7 +14,7 @@ Post Individual Subscription - Method not implemented ...@@ -18,7 +14,7 @@ Post Individual Subscription - Method not implemented
... Reference: section 8.4.5.3.1 - SOL005 v2.4.1 ... Reference: section 8.4.5.3.1 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: subscription is not created
POST Individual Subscription POST Individual Subscription
Check HTTP Response Status Code Is 405 Check HTTP Response Status Code Is 405
...@@ -67,7 +63,7 @@ DELETE an individual subscription ...@@ -67,7 +63,7 @@ DELETE an individual subscription
... Reference: section 8.4.5.3.5 - SOL005 v2.4.1 ... Reference: section 8.4.5.3.5 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: subscription is not deleted
DELETE Individual Subscription DELETE Individual Subscription
Check HTTP Response Status Code Is 204 Check HTTP Response Status Code Is 204
\ No newline at end of file
...@@ -50,6 +50,10 @@ Check Alarm notification Endpoint has been delivered ...@@ -50,6 +50,10 @@ Check Alarm notification Endpoint has been delivered
Clean Endpoint Clean Endpoint
Log Cleaning the endpoint Log Cleaning the endpoint
Clear Requests ${callback_endpoint} Clear Requests ${callback_endpoint}
Check Operation Occurrence Id
${occId}= Get Value From Json ${response.headers} $..Location
Should Not Be Empty ${occId}
POST Alarms POST Alarms
log Trying to perform a POST. This method should not be implemented log Trying to perform a POST. This method should not be implemented
...@@ -185,6 +189,28 @@ POST Subscription ...@@ -185,6 +189,28 @@ POST Subscription
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable @{response} ${outputResponse}
Post Create subscription - DUPLICATION
Log Trying to create a subscription with an already created content
Pass Execution If ${VNFM_ALLOWS_DUPLICATE_SUBS} == 0 NVFO is not permitting duplication. Skipping the test
Set Headers {"Accept": "${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
${body}= Get File jsons/fmSubscriptionRequest.json
Post ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body}
${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse}
Post Create subscription - NO-DUPLICATION
Log Trying to create a subscription with an already created content
Pass Execution If ${VNFM_ALLOWS_DUPLICATE_SUBS} == 1 NVFO permits duplication. Skipping the test
Set Headers {"Accept": "${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
${body}= Get File jsons/fmSubscriptionRequest.json
Post ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body}
${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse}
GET Subscriptions GET Subscriptions
Log Get the list of active subscriptions Log Get the list of active subscriptions
Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Accept": "${ACCEPT}"}
......
...@@ -19,7 +19,7 @@ Create a new alarm subscription ...@@ -19,7 +19,7 @@ Create a new alarm subscription
... Post-Conditions: none ... Post-Conditions: none
POST Subscription POST Subscription
Check HTTP Response Status Code Is 201 Check HTTP Response Status Code Is 201
Check HTTP Response Header Contains Location Check Operation Occurrence Id
Check HTTP Response Body Json Schema Is FmSubscription Check HTTP Response Body Json Schema Is FmSubscription
...@@ -32,11 +32,9 @@ Create a new alarm subscription - DUPLICATION ...@@ -32,11 +32,9 @@ Create a new alarm subscription - DUPLICATION
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: the NFVO allows creating a subscription resource if another subscription resource with the same filter and callbackUri already exists ... Applicability: the NFVO allows creating a subscription resource if another subscription resource with the same filter and callbackUri already exists
... Post-Conditions: none ... Post-Conditions: none
Depends On Test Create a new subscription Post Create subscription - DUPLICATION
Pass Execution If ${NFVO_ALLOWS_DUPLICATE_SUBS} == 0 NVFO is not permitting duplication. Skipping the test
POST Subscription
Check HTTP Response Status Code Is 201 Check HTTP Response Status Code Is 201
Check HTTP Response Header Contains Location Check Operation Occurrence Id
Check HTTP Response Body Json Schema Is FmSubscription Check HTTP Response Body Json Schema Is FmSubscription
Create a new alarm subscription - NO DUPLICATION Create a new alarm subscription - NO DUPLICATION
...@@ -48,11 +46,9 @@ Create a new alarm subscription - NO DUPLICATION ...@@ -48,11 +46,9 @@ Create a new alarm subscription - NO DUPLICATION
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: the NFVO decides to not create a duplicate subscription resource ... Applicability: the NFVO decides to not create a duplicate subscription resource
... Post-Conditions: none ... Post-Conditions: none
Depends On Test Create a new subscription Post Create subscription - NO DUPLICATION
Pass Execution If ${NFVO_ALLOWS_DUPLICATE_SUBS} == 1 NFVO permits duplication. Skipping the test
POST Subscription
Check HTTP Response Status Code Is 303 Check HTTP Response Status Code Is 303
Check HTTP Response Header Contains Location Check Operation Occurrence Id
Check HTTP Response Body Json Schema Is FmSubscription Check HTTP Response Body Json Schema Is FmSubscription
Retrieve a list of alarm subscriptions Retrieve a list of alarm subscriptions
...@@ -120,12 +116,12 @@ PATCH subscriptions - Method not implemented ...@@ -120,12 +116,12 @@ PATCH subscriptions - Method not implemented
DELETE subscriptions - Method not implemented DELETE subscriptions - Method not implemented
[Documentation] Test ID: 5.3.3.3.9 [Documentation] Test ID: 5.3.3.3.9
... Test title:DELETE subscriptions - Method not implemented ... Test title: DELETE subscriptions - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed to for Fault management subscriptions on NFV ... Test objective: The objective is to test that DELETE method is not allowed to for Fault management subscriptions on NFV
... Pre-conditions: none ... Pre-conditions: none
... Reference: section 8.4.4.3.5 - SOL005 v2.4.1 ... Reference: section 8.4.4.3.5 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO ... Config ID: Config_prod_NFVO
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: subscription is not deleted
DELETE Subscriptions DELETE Subscriptions
Check HTTP Response Status Code Is 405 Check HTTP Response Status Code Is 405
\ 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