Commit caaf2be2 authored by root's avatar root Committed by Michele Carignani
Browse files

bug-fixes final list v1

parent a4234b5f
......@@ -37,7 +37,7 @@ GET information about multiple alarms with attribute-based filter
... Test title: GET information about multiple alarms with attribute-based filter
... Test objective: The objective is to retrieve information about the alarm list
... Pre-conditions:
... Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions:
......@@ -50,7 +50,7 @@ GET information about multiple alarms with invalid attribute-based filter
... Test title: GET information about multiple alarms with invalid attribute-based filter
... Test objective: The objective is to retrieve information about the alarm list
... Pre-conditions:
... Reference: clause 7.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions:
......@@ -63,7 +63,7 @@ GET information about multiple alarms with "all_fields" attribute selector
... Test title: GET information about multiple alarms with "all_fields" attribute selector
... Test objective: The objective is to retrieve information about the alarm list
... Pre-conditions:
... Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions:
......@@ -76,7 +76,7 @@ GET information about multiple alarms with exclude_default attribute selector
... Test title: GET information about multiple alarms with "exclude_default" attribute selector
... Test objective: The objective is to retrieve information about the alarm list
... Pre-conditions:
... Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions:
......@@ -90,7 +90,7 @@ GET information about multiple alarms with fields attribute selector
... Test title: GET information about multiple alarms with fields attribute selector
... Test objective: The objective is to retrieve information about the alarm list
... Pre-conditions:
... Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions:
......@@ -103,7 +103,7 @@ GET information about multiple alarms with "exclude_fields" attribute selector
... Test title: GET information about multiple alarms with "exclude_fields" attribute selector
... Test objective: The objective is to retrieve information about the alarm list
... Pre-conditions:
... Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions: none
......@@ -116,7 +116,7 @@ PUT Alarms - Method not implemented
... Test title: PUT Alarms - Method not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions:
... Reference: clause 7.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions: none
......@@ -128,7 +128,7 @@ PATCH Alarms - Method not implemented
... Test title: PATCH Alarms - Method not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions:
... Reference: clause 7.4.2.3.5 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 7.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions: none
......@@ -140,7 +140,7 @@ DELETE Alarms - Method not implemented
... Test title: DELETE Alarms - Method not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions:
... Reference: clause 7.4.2.3.6 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 7.4.2.3.5 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions: the alarm is not deleted
......
......@@ -20,7 +20,7 @@ Escalate the perceived severity
GET Escalate the perceived severity - Method not implemented
[Documentation] Test ID: 6.3.4.3.2
... Test title: GET Escalate the perceived severity - Method not implemented
... Test objective: to test that the method is not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions:
... Reference: clause 7.4.4.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
......@@ -32,7 +32,7 @@ GET Escalate the perceived severity - Method not implemented
PUT Escalate the perceived severity - Method not implemented
[Documentation] Test ID: 6.3.4.3.3
... Test title: PUT Escalate the perceived severity - Method not implemented
... Test objective: to test that the method is not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions:
... Reference: clause 7.4.4.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
......@@ -44,7 +44,7 @@ PUT Escalate the perceived severity - Method not implemented
PATCH Escalate the perceived severity - Method not implemented
[Documentation] Test ID: 6.3.4.3.4
... Test title: PATCH Escalate the perceived severity - Method not implemented
... Test objective: to test that the method is not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions:
... Reference: clause 7.4.4.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
......@@ -57,7 +57,7 @@ PATCH Escalate the perceived severity - Method not implemented
DELETE Escalate the perceived severity - Method not implemented
[Documentation] Test ID: 6.3.4.3.5
... Test title: DELETE Escalate the perceived severity - Method not implemented
... Test objective: to test that the method is not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions:
... Reference: clause 7.4.4.3.5 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
......
......@@ -41,9 +41,9 @@ GET information about an individual alarm
PUT Alarm - Method not implemented
PUT Individual Alarm - Method not implemented
[Documentation] Test ID: 6.3.4.2.3
... Test title: PUT Alarm - Method not implemented
... Test title: PUT Individual Alarm - Method not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions:
... Reference: clause 7.4.3.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
......@@ -54,9 +54,9 @@ PUT Alarm - Method not implemented
Check HTTP Response Status Code Is 405
PATCH Alarm
PATCH Individual Alarm
[Documentation] Test ID: 6.3.4.2.4
... Test title: PATCH Alarm
... Test title: PATCH Individual Alarm
... Test objective: The objective is to Modify an individual alarm resource
... Pre-conditions: The related alarm exists
... Reference: clause 7.4.3.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
......@@ -67,10 +67,10 @@ PATCH Alarm
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is alarmModifications
PATCH Alarm - Precondition failed
PATCH Individual Alarm - Precondition failed
[Documentation] Test ID: 6.3.4.2.5
... Test title: PATCH Alarm - Precondition failed
... Test objective: The objective is to attempt to Modify an individual alarm resource, where the precondition was not met
... Test title: PATCH Individual Alarm - Precondition failed
... Test objective: The objective is to attempt to Modify an individual alarm resource, where the precondition was not met because Alarm was already modified by another entity.
... Pre-conditions: The related alarm exists
... Reference: clause 7.4.3.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VNFM
......@@ -80,9 +80,9 @@ PATCH Alarm - Precondition failed
Check HTTP Response Status Code Is 412
Check HTTP Response Body Json Schema Is ProblemDetails
PATCH Alarm - Conflict
PATCH Individual Alarm - Conflict
[Documentation] Test ID: 6.3.4.2.6
... Test title: PATCH Alarm - Conflict
... Test title: PATCH Individual Alarm - Conflict
... Test objective: The objective is to Modify an individual alarm resource
... Pre-conditions: The related alarm exists
... Reference: clause 7.4.3.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
......@@ -94,9 +94,9 @@ PATCH Alarm - Conflict
Check HTTP Response Body Json Schema Is ProblemDetails
DELETE Alarm - Method not implemented
DELETE Individual Alarm - Method not implemented
[Documentation] Test ID: 6.3.4.2.7
... Test title: DELETE Alarm - Method not implemented
... Test title: DELETE Individual Alarm - Method not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions:
... Reference: clause 7.4.3.3.5 - ETSI GS NFV-SOL 002 [2] v2.4.1
......
......@@ -68,7 +68,6 @@ DELETE an individual subscription
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions: the subscription is deleted
Check resource existence
Delete individual subscription
Check HTTP Response Status Code Is 204
......@@ -139,4 +138,4 @@ Check HTTP Response Body Json Schema Is
Should Contain ${response['headers']['Content-Type']} application/json
${schema} = Catenate SEPARATOR= ${input} .schema.json
Validate Json ${schema} ${response['body']}
Log Json Schema Validation OK
\ No newline at end of file
Log Json Schema Validation OK
......@@ -196,7 +196,7 @@ Check HTTP Response Body Json Schema Is
Check HTTP Response Body Includes Requested VNF Instance ID
Log Check Response includes Indicators according to resource identifier
Should Be Equal As Strings ${response['body']['vnfInstanceId']} ${vnfInstanceId}
Should Be Equal As Strings ${response['body'][0]['vnfInstanceId']} ${vnfInstanceId}
Check HTTP Response Body Matches Attribute-Based Filter
Log Check Response includes VNF Indicators according to filter
......
......@@ -24,7 +24,7 @@ Post Cancel operation task
Post Cancel operation task Conflict
[Documentation] Test ID: 6.3.5.16.2
... Test title: POST Cancel operation task
... Test title: POST Cancel operation task Conflict
... Test objective: The POST method is NOT cancelling an ongoing VNF lifecycle operation due to the fact that the VNF instance resource is not in STARTING, PROCESSING or ROLLING_BACK state
... Pre-conditions: operation is not in STARTING, PROCESSING or ROLLING_BACK state
... Reference: clause 5.4.17.3.1 - ETSI GS NFV-SOL 002 [2] v2.4.1
......
......@@ -75,7 +75,7 @@ PUT Change deployment flavour VNFInstance - Method not implemented
PATCH Change deployment flavour VNFInstance - Method not implemented
[Documentation] Test ID: 6.3.5.6.6
... Test title: PATCH Cancel operation task - Method not implemented
... Test title: PATCH Change deployment flavour VNFInstance - Method not implemented
... Test objective: The objective is to test that PATCH method is not implemented
... Pre-conditions: none
... Reference: clause 5.4.7.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
......
......@@ -79,7 +79,7 @@ PATCH Individual VNFInstance Precondition failed
PATCH Individual VNFInstance Conflict
[Documentation] Test ID: 6.3.5.2.6
... Test title: PATCH Individual VNFInstance Conflict
... Test objective: The objective is to create a new VNF instance resource
... Test objective: The objective is to verify that The PATCH operation cannot be executed currently, due to a conflict with the state of the VNF instance resource because anyother LCM Operation is ongoing.
... Pre-conditions: none
... Reference: clause 5.4.3.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VE
......@@ -103,7 +103,7 @@ DELETE Individual VNFInstance
DELETE Individual VNFInstance Conflict
[Documentation] Test ID: 6.3.5.2.8
... Test title: DELETE Individual VNFInstance
... Test title: DELETE Individual VNFInstance Conflict
... Test objective: The objective is to verify that The operation cannot be executed currently, due to a conflict with the state of the VNF instance resource.
... Pre-conditions: VNF instance resource is in INSTANTIATED state
... Reference: clause 5.4.3.3.5 - ETSI GS NFV-SOL 002 [2] v2.4.1
......
......@@ -32,7 +32,7 @@ Get status information about multiple VNF instances
PUT status information about multiple VNF instances - Method not implemented
[Documentation] Test ID: 6.3.5.12.3
... Test title: Put Individual VNF LCM OP occurrences - Method not implemented
... Test title: PUT status information about multiple VNF instances - Method not implemented
... Test objective: The objective is to test that PUT method is not implemented
... Pre-conditions: none
... Reference: clause 5.4.13.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
......@@ -44,7 +44,7 @@ PUT status information about multiple VNF instances - Method not implemented
PATCH status information about multiple VNF instances - Method not implemented
[Documentation] Test ID: 6.3.5.12.4
... Test title: Patch Individual VNF LCM OP occurrences - Method not implemented
... Test title: PATCH status information about multiple VNF instances - Method not implemented
... Test objective: The objective is to test that PATCH method is not implemented
... Pre-conditions: none
... Reference: clause 5.4.13.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
......@@ -56,7 +56,7 @@ PATCH status information about multiple VNF instances - Method not implemented
DELETE status information about multiple VNF instances - Method not implemented
[Documentation] Test ID: 6.3.5.12.5
... Test title: Delete Individual VNF LCM OP occurrences - Method not implemented
... Test title: DELETE status information about multiple VNF instances - Method not implemented
... Test objective: The objective is to test that DELETE method is not implemented
... Pre-conditions: none
... Reference: clause 5.4.13.3.5 - ETSI GS NFV-SOL 002 [2] v2.4.1
......@@ -64,4 +64,4 @@ DELETE status information about multiple VNF instances - Method not implemented
... Applicability: none
... Post-Conditions: none
Delete multiple VNF instances
Check HTTP Response Status Code Is 405
\ No newline at end of file
Check HTTP Response Status Code Is 405
......@@ -38,14 +38,14 @@ POST Scale a vnfInstance to level Conflict (Not-Instantiated)
POST Scale a vnfInstance Not Found
[Documentation] Test ID: 6.3.5.5.3
... Test title: POST Scale a vnfInstance Not Found
... Test objective: The objective is to verify that the operation cannot be executed , because the VNF instance resource cannot be found.
... Test objective: The objective is to verify that the VNF Scale operation fails when the VNF instance resource is not present
... Pre-conditions: VNF instance resource is in NOT-INSTANTIATED state
... Reference: clause 5.4.6.3.1 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VE
... Applicability:
... Post-Conditions:
POST Scale vnfInstance to level
Check HTTP Response Status Code Is 409
Check HTTP Response Status Code Is 404
Check HTTP Response Body Json Schema Is ProblemDetails
......@@ -126,4 +126,4 @@ Launch another LCM operation
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
${body}= Get File jsons/scaleVnfRequest.json
Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${body}
Integer response status 202
\ No newline at end of file
Integer response status 202
......@@ -16,7 +16,6 @@ POST Create a new subscription
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions: in response header Location shall not be null
... POST Cancel operation task
Post Create subscription
Check HTTP Response Status Code Is 201
Check HTTP Response Body Json Schema Is Subscription
......@@ -29,7 +28,6 @@ POST Create a new Subscription - DUPLICATION
... Config ID: Config_prod_VE
... Applicability: SUT should support duplication of subscription creation
... Post-Conditions: in response header Location shall not be null
... POST Cancel operation task
Post Create subscription - DUPLICATION
Check HTTP Response Status Code Is 201
Check HTTP Response Body Json Schema Is Subscription
......@@ -43,7 +41,6 @@ POST Create a new Subscription - NO-DUPLICATION
... Config ID: Config_prod_VE
... Applicability: SUT should not support duplication of subscription creation
... Post-Conditions: in response header Location shall not be null
... POST Cancel operation task
Post Create subscription - NO-DUPLICATION
Check HTTP Response Status Code Is 303
Check Operation Occurrence Id
......
......@@ -266,7 +266,7 @@ POST Subscription
${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse}
POST Subscription Duplication permitted
Send POST Request for duplicated subscription
Log Create subscription instance by POST to ${apiRoot}/${apiName}/${apiVersion}/subscriptions
Pass Execution If ${VNFM_DUPLICATION} == 0 NVFO is not permitting duplication. Skipping the test
Set Headers {"Accept":"${ACCEPT}"}
......@@ -277,7 +277,7 @@ POST Subscription Duplication permitted
${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse}
POST Subscription Duplication not permitted
Send POST Request for duplicated subscription not permitted
Log Create subscription instance by POST to ${apiRoot}/${apiName}/${apiVersion}/subscriptions
Pass Execution If ${VNFM_DUPLICATION} == 1 NVFO is not permitting duplication. Skipping the test
Set Headers {"Accept":"${ACCEPT}"}
......
......@@ -33,7 +33,7 @@ Create a new alarm subscription - DUPLICATION
... Config ID: Config_prod_VNFM
... Applicability: the NFVO allows creating a subscription resource if another subscription resource with the same filter and callbackUri already exists
... Post-Conditions: duplicated subscription is created
POST Subscription Duplication permitted
Send POST Request for duplicated subscription
Check HTTP Response Status Code Is 201
Check Operation Occurrence Id
Check HTTP Response Body Json Schema Is FmSubscription
......@@ -48,7 +48,7 @@ Create a new alarm subscription - NO DUPLICATION
... Config ID: Config_prod_VNFM
... Applicability: the NFVO decides to not create a duplicate subscription resource
... Post-Conditions: duplicated subscription is not created
POST Subscription Duplication not permitted
Send POST Request for duplicated subscription not permitted
Check HTTP Response Status Code Is 303
Check Operation Occurrence Id
Check Postcondition Subscription Resource Returned in Location Header Is Available
......
......@@ -397,7 +397,7 @@ Send DELETE Request for indicators in VNF instance
Check HTTP Response Body Includes Requested VNF Instances ID
Log Check Response includes Indicators according to resource identifier
Should Be Equal As Strings ${response['body']['vnfInstanceId']} ${vnfInstanceId}
Should Be Equal As Strings ${response['body'][0]['vnfInstanceId']} ${vnfInstanceId}
Check Postcondition Indicators for VNF instance Exist
Log Check Postcondition Indicators for VNF instance Exist
......
......@@ -25,7 +25,7 @@ POST Fail operation task
Post Fail operation task Conflict (Not-FAILED_TEMP)
# TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
[Documentation] Test ID: 7.3.1.15.2
... Test title: Post Fail operation task
... Test title: Post Fail operation task Conflict (Not-FAILED_TEMP)
... Test objective: The objective is to test that POST method cannot mark as "finally failed" a VNF lifecycle operation
... Pre-conditions: the "VNF LCM operation occurrence" resource is not in "FAILED_TEMP" state.
... Reference: clause 5.4.16.3.1 - ETSI GS NFV-SOL 003 [1] v2.4.1
......@@ -39,7 +39,7 @@ Post Fail operation task Conflict (Not-FAILED_TEMP)
Post Fail operation task Not Found
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
[Documentation] Test ID: 7.3.1.15.3
... Test title: Post Fail operation task
... Test title: Post Fail operation task Not Found
... Test objective: The objective is to test that POST method cannot mark as "finally failed" a VNF lifecycle operation because the operation is not supported
... Pre-conditions:
... Reference: clause 5.4.16.3.1 - ETSI GS NFV-SOL 003 [1] v2.4.1
......@@ -75,7 +75,7 @@ PUT Fail operation task - Method not implemented
PATCH Fail operation task - Method not implemented
[Documentation] Test ID: 7.3.1.15.6
... Test title: GET Fail operation task- Method not implemented
... Test title: PATCH Fail operation task- Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
... Reference: clause 5.4.16.3.4 - ETSI GS NFV-SOL 003 [1] v2.4.1
......
......@@ -66,7 +66,7 @@ PATCH Individual VNFInstance
PATCH Individual VNFInstance Precondition failed
[Documentation] Test ID: 7.3.1.2.5
... Test title: PATCH Individual VNFInstance Precondition failed
... Test objective: The objective is to create a new VNF instance resource
... Test objective: The objective is to test a PATCH request when Pre-condition given in HTTP request header failed due to ETag mismatch
... Pre-conditions: VNF Instance is created (Test ID 7.3.1.2.2)
... Reference: clause 5.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v2.4.1
... Config ID: Config_prod_VNFM
......@@ -79,7 +79,7 @@ PATCH Individual VNFInstance Precondition failed
PATCH Individual VNFInstance Conflict
[Documentation] Test ID: 7.3.1.2.6
... Test title: PATCH Individual VNFInstance Conflict
... Test objective: The objective is to test the conflict while modifying a VNF instance resource
... Test objective: The objective is to test the conflict while modifying a VNF instance resource because another LCM operation is ongoing
... Pre-conditions: another LCM operation is ongoing
... Reference: clause 5.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v2.4.1
... Config ID: Config_prod_VNFM
......
......@@ -21,14 +21,15 @@ POST Create a new subscription
Post Create subscription
Check HTTP Response Status Code Is 201
Check HTTP Response Body Json Schema Is Subscription
Create a new Subscription - DUPLICATION
[Documentation] Test ID: 7.3.1.17.2
... Test title: POST Create a new subscription - DUPLICATION
... Test objective: The POST method creates a duplicate subscription
... Test objective: The objective is to test that POST method create a duplicate (same cakkbackurl and filter) subscription
... Pre-conditions: none
... Reference: clause 5.4.18.3.1 - ETSI GS NFV-SOL 003 [1] v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: The VNFM support the creation of duplicated subscriptions
... Applicability: duplication is supported by SUT
... Post-Conditions: in response header Location shall not be null
Post Create subscription - DUPLICATION
Check HTTP Response Status Code Is 201
......@@ -37,11 +38,11 @@ Create a new Subscription - DUPLICATION
Create a new Subscription - NO-DUPLICATION
[Documentation] Test ID: 7.3.1.17.3
... Test title: POST Create a new subscription - NO-DUPLICATION
... Test objective: The POST method cannot create a duplicate subscription
... Test objective: The objective is to test that POST method does not create a duplicate (same callbackurl and filter) subscription
... Pre-conditions: none
... Reference: clause 5.4.18.3.1 - ETSI GS NFV-SOL 003 [1] v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: The VNFM does not support the creation of duplicated subscriptions
... Applicability: duplication is not supported by SUT
... Post-Conditions: in response header Location shall not be null
Post Create subscription - NO-DUPLICATION
Check HTTP Response Status Code Is 303
......@@ -174,4 +175,4 @@ DELETE subscriptions - Method not implemented
... Post-Conditions: subscription not deleted
DELETE subscriptions
Check HTTP Response Status Code Is 405
\ No newline at end of file
......@@ -16,7 +16,7 @@ ${polling} 10 sec
Requests a grant for a particular VNF lifecycle operation - Synchronous mode
[Documentation] Test ID: 7.3.2.1.1
... Test title: Requests a grant for a particular VNF lifecycle operation - Synchronous mode
... Test objective: The objective is to request a grant for a particular VNF lifecycle operation and perform a JSON schema validation on the returned grant data structure
... Test objective: The objective is to request a grant for a particular VNF lifecycle operation and perform a JSON schema validation on the returned grant data structure
... Pre-conditions:
... Reference: clause 9.4.2.3.1 - ETSI GS NFV-SOL 003 [1] v2.4.1
... Config ID: Config_prod_NFVO
......@@ -31,7 +31,7 @@ Requests a grant for a particular VNF lifecycle operation - Synchronous mode
Requests a grant for a particular VNF lifecycle operation - Asynchronous mode
[Documentation] Test ID: 7.3.2.1.2
... Test title: Requests a grant for a particular VNF lifecycle operation - Asynchronous mode
... Test objective: The objective is to request a grant for a particular VNF lifecycle operation
... Test objective: The objective is to request a grant for a particular VNF lifecycle operation and perform a JSON schema validation on the returned grant data structure
... Pre-conditions:
... Reference: clause 9.4.2.3.1 - ETSI GS NFV-SOL 003 [1] v2.4.1
... Config ID: Config_prod_NFVO
......@@ -52,7 +52,7 @@ Requests a grant for a particular VNF lifecycle operation - Forbidden
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Send Request a new Grant Forbidden
Send Request a new Grant Forbidden Operation
Check HTTP Response Status Code Is 403
Check HTTP Response Body Json Schema Is ProblemDetails
......@@ -130,7 +130,7 @@ Send Request Grant Request in Asynchronous mode
${body}= Output response
Set Suite Variable &{response} ${body}
Send Request a new Grant Forbidden
Send Request a new Grant Forbidden Operation
Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiVersion}/grants
Log The grant request should be rejected
Set Headers {"Accept": "${ACCEPT}"}
......
......@@ -27,13 +27,13 @@ POST Individual Grant - Method not implemented
GET an individual grant - Successful
[Documentation] Test ID: 7.3.2.2.2
... Test title: GET an individual grant - Successful
... Test objective: The objective is to request a grant for a particular VNF lifecycle operation
... Test objective: The objective is to successfully request a grant for a particular VNF lifecycle operation
... Pre-conditions: The grant information is available to the VNFM
... Reference: clause 9.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Get individual grant success
Get individual grant
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is grant
......@@ -41,7 +41,7 @@ GET an individual grant - Process ongoing
[Tags] no-synchronous-mode
[Documentation] Test ID: 7.3.2.2.3
... Test title: GET an individual grant - Process ongoing
... Test objective: The objective is to request a grant for a particular VNF lifecycle operation
... Test objective: The objective is to request a grant for a particular VNF lifecycle operation when process is ongoing and no grant is avaliable 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] v2.4.1
... Config ID: Config_prod_NFVO
......@@ -55,13 +55,13 @@ GET an individual grant - grant rejected
[Tags] no-synchronous-mode
[Documentation] Test ID: 7.3.2.2.4
... Test title: GET an individual grant - grant rejected
... Test objective: The objective is to request a grant for a particular VNF lifecycle operation
... Test objective: The objective is to request a grant for a particular VNF lifecycle operation when grant is rejected
... Pre-conditions:
... Reference: clause 9.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The grant is rejected
Get individual grant rejected
... Post-Conditions: none
Get individual grant
Check HTTP Response Status Code Is 403
Check HTTP Response Body Json Schema Is ProblemDetails
......@@ -97,27 +97,12 @@ DELETE an individual grant - Method not implemented
... Reference: clause 9.4.3.3.5 - ETSI GS NFV-SOL 003 [1] v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: grant not deleted
... Post-Conditions: none
Delete individual Grant
Check HTTP Response Status Code Is 405
*** Keywords ***
Get individual grant rejected
log Trying to read an individual grant
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId}
${body}= Output response
Set Suite Variable &{response} ${body}
Get individual grant on-going
log Trying to read an individual grant
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId}
${body}= Output response
Set Suite Variable &{response} ${body}
Get individual grant success
*** Keywords ***
Get individual grant
log Trying to read an individual grant
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
......@@ -177,4 +162,4 @@ Check HTTP Response Header Contains
Check HTTP Response Body Json Schema Is
[Arguments] ${input}
${schema} = Catenate ${input} .schema.json
Validate Json ${schema} ${response[0]['body']}
\ No newline at end of file
Validate Json ${schema} ${response[0]['body']}
......@@ -26,13 +26,13 @@ GET Network Service Descriptors Information with attribute-based filter
Log The GET method queries multiple NS descriptors using Attribute-based filtering parameters
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors?${POS_FIELDS}
GET ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors?${NSD_NAME}
${output}= Output response
Set Suite Variable ${response} ${output}
Check HTTP Response Body NsdInfos Matches the requested attribute-based filter
Log Checking that attribute-based filter is matched
Should Be Equal As Strings ${response['body'][0]['nsdName']} ${NSD_NAME['nsdName']}
GET Network Service Descriptors Information with invalid attribute-based filter
Log The GET method queries multiple NS descriptors using Attribute-based filtering parameters. Negative case, with erroneous attribute name
......@@ -422,7 +422,7 @@ Send PUT Request to upload NSD Content as plain text file in asynchronous mode
Set Suite Variable ${response} ${output}
Check Post Condition NSD Content has been Uploaded
Log Checking NsdOnboardingNotification Recieved
Log Checking NsdOnboardingNotification Recieved
Wait Untill Keyword Succeeds ${retry} ${interval} Check Response is NsdOnboardingNotification
Check Response is NsdOnboardingNotification
......@@ -506,12 +506,13 @@ GET PNF Descriptors Information with attribute-based filter
Log The GET method queries multiple PNF descriptors using Attribute-based filtering parameters
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/pnf_descriptors?${POS_FIELDS}
GET ${apiRoot}/${apiName}/${apiVersion}/pnf_descriptors?${PNFD_NAME}
${output}= Output response