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

updated references

parent 08c77650
No related branches found
No related tags found
1 merge request!84updated references
Showing
with 41 additions and 45 deletions
......@@ -21,7 +21,8 @@ including the scope of the test cases, are still under development.
The Test Specification is built as a collection of [Robot Framework](robotframework.org/) Test Description. [Robot Framework](robotframework.org/) is a generic test automation framework for acceptance testing and acceptance test-driven development.
**IMPORTANT: This repository and the NFV API Conformance Test Specification is Work in Progress. The current version focuses on conformance tests of individual SOL002 and SOL003 resource endpoints. The [Robot Framework](robotframework.org/) Test Descriptions are expected to be consolidated and reviewed in the short term, and possibly re-organized to ease automation of NFV workflows testing. SOL005 Test Descriptions are under development and will be contributed during Q1-2019.**
**IMPORTANT: This repository and the NFV API Conformance Test Specification is Work in Progress. The current version focuses on conformance tests of individual SOL002, SOL003 and SOL005 resource endpoints. The [Robot Framework](robotframework.org/) Test
Descriptions are expected to be consolidated and reviewed in the short term, and possibly re-organized to ease automation of NFV workflows testing.**
More information at [NFV API Conformance Test Specification wiki](https://forge.etsi.org/gitlab/nfv/api-tests/wikis/NFV-API-Conformance-Test-Specification).
......
......@@ -227,7 +227,8 @@ GET Alarms Task with exclude_fields attribute selector
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/alarms?exclude_fields=${fields}
${output}= Output response
Set Suite Variable ${response} ${output}
Set Suite Variable ${response} ${output}
Check HTTP Response Status Code Is
[Arguments] ${expected_status}
Should Be Equal ${response.status_code} ${expected_status}
......
......@@ -243,13 +243,12 @@ DELETE instantiate individual vnfInstance
Set Global Variable @{response} ${outputResponse}
POST Scale vnfInstance
[Arguments] ${instanceId}
Log Trying to Instantiate a vnf Instance
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
${body}= Get File jsons/scaleVnfRequest.json
Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${instanceId}/scale ${body}
Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${body}
${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse}
GET Scale vnfInstance
......
......@@ -136,8 +136,8 @@ GET Alarms Task with exclude_default attribute selector
GET ${apiRoot}/${apiName}/${apiVersion}/alarms?exclude_default
${output}= Output response
Set Suite Variable ${response} ${output}
GET VNF Packages with fields attribute selector
Log Trying to get all VNF Packages present in the NFVO Catalogue, using fields
GET Alarms Task with fields attribute selector
Log Trying to get all alarms present in the NFVO Catalogue, using fields
Pass Execution If ${NFVO_FIELDS} == 0 The NFVO is not able to use fields parameter
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
......
......@@ -66,4 +66,14 @@ PATCH Individual VNF LCM Operation occurrences - 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
*** Keywords ***
Get multiple VNF instances
Log Query status information about multiple VNF lifecycle management operation occurrences.
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Log Execute Query and validate response
Get ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse}
\ No newline at end of file
......@@ -366,15 +366,6 @@ POST Create a new vnfInstance
${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse}
Get multiple VNF instances
Log Query status information about multiple VNF lifecycle management operation occurrences.
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Log Execute Query and validate response
Get ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse}
GET multiple vnfInstances
Log Query VNF The GET method queries information about multiple VNF instances.
Set Headers {"Accept":"${ACCEPT}"}
......@@ -492,7 +483,6 @@ PATCH individual vnfInstance
log Trying to modify an individual VNF instance
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"}
Set Headers {"If-Match": "${original_etag}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
${body}= Get File jsons/patchBodyRequest.json
Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${body}
......
......@@ -16,7 +16,7 @@ ${sub_filter_invalid} filter_invalid
${notInstantiatedVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${fields} criteria,objectInstanceIds
${vnfInstanceName} Test-VnfInstance
${vnfInstanceDescription} description vnf
......
......@@ -9,7 +9,8 @@ Documentation This resource represents grants. The client can use this resour
*** Variables ***
${response} {}
${wait_time} 2 min 10 sec
${retry} 2 min
${polling} 10 sec
*** Test Cases ***
Requests a grant for a particular VNF lifecycle operation - Synchronous mode
......@@ -105,7 +106,7 @@ DELETE Grants - Method not implemented
*** Keywords ***
Wait for individual grant successful notification
Wait Until Keyword Succeeds ${wait_time} Get an individual grant - Successful
Wait Until Keyword Succeeds ${retry} ${polling} Get an individual grant - Successful
Send Request Grant Request in Synchronous mode
Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiVersion}/grants
Pass Execution If ${SYNC_MODE} == 0 The Granting process is asynchronous mode. Skipping the test
......
......@@ -46,7 +46,7 @@ Create a new alarm subscription - NO DUPLICATION
... Config ID: Config_prod_NFVO
... Applicability: the NFVO decides to not create a duplicate subscription resource
... Post-Conditions: none
Post Create subscription - NO DUPLICATION
Post Create subscription - NO-DUPLICATION
Check HTTP Response Status Code Is 303
Check Operation Occurrence Id
Check HTTP Response Body Json Schema Is FmSubscription
......
......@@ -4,6 +4,7 @@ ${NFVO_PORT} 8080 # Listening port of the VNFM
${NFVO_SCHEMA} https
${AUTHORIZATION} Bearer QWxhZGRpbjpvcGVuIHNlc2FtZQ==
${ACCEPT} application/json
${ACCEPT_JSON} application/json
${AUTH_USAGE} 1
${alarm_filter} nsInstanceId
${nsInstanceId} 007c111c-38a1-42c0-a666-7475ecb1567c
......@@ -15,6 +16,10 @@ ${CONTENT_TYPE} application/json
${NFVO_ALLOWS_DUPLICATE_SUBS} 0
${fields} criteria,objectInstanceIds
${VNFM_ALLOWS_DUPLICATE_SUBS} 0
${alarmId} 6fc3539c-e602-4afa-8e13-962fb5a7d81d
${invalidAlarmId} invalidAlramID
${Etag}= an etag
......
......@@ -126,7 +126,7 @@ Check operation resource state is not FAILED_TEMP
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/${apiVersion}/ns_instances/${nsInstanceId}
String response body instantiationState != FAILED_TEMP
String response body instantiationState not FAILED_TEMP
Check resource is finally failed
Set Headers {"Accept":"${ACCEPT}"}
......@@ -954,6 +954,14 @@ GET subscriptions with filter
${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse}
Get subscriptions - invalid filter
Log Get the list of active subscriptions using an invalid filter
Set Headers {"Accept": "${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?${sub_filter_invalid}
${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse}
POST Individual Subscription
log Trying to perform a POST. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"}
......@@ -1057,27 +1065,5 @@ PUT notification
Log Verifying results
Verify Mock Expectation ${req}
Log Cleaning the endpoint
Clear Requests ${callback_endpoint}
PATCH subscriptions
Log PATCH Method not implemented
&{req}= Create Mock Request Matcher PATCH ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
Verify Mock Expectation ${req}
Log Cleaning the endpoint
Clear Requests ${callback_endpoint}
DELETE subscriptions
Log DELETE Method not implemented
&{req}= Create Mock Request Matcher DELETE ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
Verify Mock Expectation ${req}
Log Cleaning the endpoint
Clear Requests ${callback_endpoint}
Clear Requests ${callback_endpoint}
\ No newline at end of file
......@@ -9,6 +9,7 @@ ${NFVO_SCHEMA} https
${AUTHORIZATION} Bearer QWxhZGRpbjpvcGVuIHNlc2FtZQ==
${CONTENT_TYPE} application/json
${CONTENT_TYPE_PATCH} application/merge-patch+json
${ACCEPT_JSON} application/json
${ACCEPT} application/json
${apiRoot} /
${apiName} nslcm
......@@ -16,6 +17,7 @@ ${apiVersion} v1
${AUTH_USAGE} 1
${WRONG_AUTHORIZATION} Bearer XXXXXWRONGXXXXX
${nsInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${ConflictNsInstanceId} 007c111c-e602-4afa-8e13-962fb5a7d81d
${nsInstanceName} Test-nsInstance
${nsInstanceDescription} description ns
${nsInstanceDescription_Update} Updated description ns
......@@ -31,6 +33,7 @@ ${CancelMode} GRACEFUL
${NFVO_DUPLICATION} 0
${sub_filter} filter
${sub_filter_invalid} filter_invalid
${fields} criteria,objectInstanceIds
${subscriptionId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${VnfLcmOperationOccurrenceNotification} {}
${VnfIdentifierCreationNotification} {}
......
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