Commit 3713af86 authored by Najam UI Hassan's avatar Najam UI Hassan
Browse files

templating, minor fix and new testcases added

parent c1963d1f
......@@ -54,10 +54,9 @@ POST Individual VNF Package Subscription - Method not implemented
... Reference: Clause 10.4.8.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Package Subscription is not created on the NFVO
... Post-Conditions: none
Send Post request for individual VNF Package Subscription
Check HTTP Response Status Code Is 405
Check Postcondition VNF Package Subscription is not Created
PUT Individual VNF Package Subscription - Method not implemented
[Documentation] Test ID: 7.3.3.7.5
......@@ -67,10 +66,9 @@ PUT Individual VNF Package Subscription - Method not implemented
... Reference: Clause 10.4.8.3.3 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Package subscription is not modified by the operation
... Post-Conditions: none
Send Put request for individual VNF Package Subscription
Check HTTP Response Status Code Is 405
Check Postcondition VNF Package Subscription is Unmodified (Implicit)
PATCH Individual VNF Package Subscription - Method not implemented
[Documentation] Test ID: 7.3.3.7.6
......@@ -80,10 +78,9 @@ PATCH Individual VNF Package Subscription - Method not implemented
... Reference: Clause 10.4.8.3.4 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Package subscription is not modified by the operation
... Post-Conditions: none
Send Patch request for individual VNF Package Subscription
Check HTTP Response Status Code Is 405
Check Postcondition VNF Package Subscription is Unmodified (Implicit)
DELETE Individual VNF Package Subscription
[Documentation] Test ID: 7.3.3.7.7
......@@ -93,7 +90,6 @@ DELETE Individual VNF Package Subscription
... Reference: Clause 10.4.8.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Package Subscription is not available anymore in the NFVO
... Post-Conditions: none
Send Delete request for individual VNF Package Subscription
Check HTTP Response Status Code Is 204
Check Postcondition VNF Package Subscription is Deleted
\ No newline at end of file
Check HTTP Response Status Code Is 204
\ No newline at end of file
......@@ -32,6 +32,7 @@ GET Individual VNF Package with invalid resource identifier
... Post-Conditions: none
GET Individual VNF Package with invalid resource identifier
Check HTTP Response Status Code Is 404
Check HTTP Response Body Json Schema Is ProblemDetails
POST Individual VNF Package - Method not implemented
[Documentation] Test ID: 7.3.3.2.3
......@@ -77,10 +78,9 @@ DELETE Individual VNF Package - Method not implemented
... Reference: Clause 10.4.3.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Package is not deleted by the failed operation
... Post-Conditions: none
Send DELETE Request for individual VNF Package
Check HTTP Response Status Code Is 405
Check Postcondition VNF Package Exist
GET Individual OnBoarded VNF Package
[Documentation] Test ID: 7.3.3.2.7
......@@ -107,6 +107,7 @@ GET Individual OnBoarded VNF Package with invalid resource identifier
... Post-Conditions: none
GET Individual OnBoarded VNF Package with invalid resource identifier
Check HTTP Response Status Code Is 404
Check HTTP Response Body Json Schema Is ProblemDetails
POST Individual OnBoarded VNF Package - Method not implemented
[Documentation] Test ID: 7.3.3.2.9
......@@ -152,7 +153,6 @@ DELETE Individual OnBoarded VNF Package - Method not implemented
... Reference: Clause 10.4.3.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Package is not deleted by the failed operation
... Post-Conditions: none
Send DELETE Request for individual OnBoarded VNF Package
Check HTTP Response Status Code Is 405
Check Postcondition VNF Package Exist
\ No newline at end of file
Check HTTP Response Status Code Is 405
\ No newline at end of file
......@@ -81,6 +81,7 @@ GET Individual VNF Package Artifact with invalid resource identifier
... Post-Conditions: none
GET Individual VNF Package Artifact with invalid resource identifier
Check HTTP Response Status Code Is 404
Check HTTP Response Body Json Schema Is ProblemDetails
GET Individual VNF Package Artifact with conflict due to onboarding state
[Documentation] Test ID: 7.3.3.5.7
......@@ -139,10 +140,9 @@ DELETE Individual VNF Package Artifact - Method not implemented
... Reference: Clause 10.4.6.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Package artifact is not deleted by the failed operation
... Post-Conditions: none
Send DELETE Request for individual VNF Package Artifact
Check HTTP Response Status Code Is 405
Check Postcondition Individual VNF Package Artifact Exist
GET Individual OnBoarded VNF Package Artifact
[Documentation] Test ID: 7.3.3.5.12
......@@ -218,6 +218,7 @@ GET Individual OnBoarded VNF Package Artifact with invalid resource identifier
... Post-Conditions: none
GET Individual OnBoarded VNF Package Artifact with invalid resource identifier
Check HTTP Response Status Code Is 404
Check HTTP Response Body Json Schema Is ProblemDetails
GET Individual OnBoarded VNF Package Artifact with conflict due to onboarding state
[Documentation] Test ID: 7.3.3.5.18
......@@ -276,10 +277,9 @@ DELETE Individual OnBoarded VNF Package Artifact - Method not implemented
... Reference: Clause 10.4.6.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Package artifact is not deleted by the failed operation
... Post-Conditions: none
Send DELETE Request for individual OnBoarded VNF Package Artifact
Check HTTP Response Status Code Is 405
Check Postcondition Individual OnBoarded VNF Package Artifact Exist
GET Individual VNF Package Artifact with security information
[Documentation] Test ID: 7.3.3.5.23
......
......@@ -25,7 +25,6 @@ Get All VNF Package Subscriptions
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is PkgmSubscriptions
Get VNF Package Subscriptions with attribute-based filter
[Documentation] Test ID: 7.3.3.6.2
... Test title: Get VNF Package Subscriptions with attribute-based filter
......@@ -40,7 +39,6 @@ Get VNF Package Subscriptions with attribute-based filter
Check HTTP Response Body Json Schema Is PkgmSubscription
Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter
Get VNF Package Subscriptions with invalid attribute-based filter
[Documentation] Test ID: 7.3.3.6.3
... Test title: Get VNF Package Subscriptions with attribute-based filters
......@@ -65,6 +63,7 @@ GET VNF Package Subscription with invalid resource endpoint
... Post-Conditions: none
Get VNF Package Subscriptions with invalid resource endpoint
Check HTTP Response Status Code Is 404
Check HTTP Response Body Json Schema Is ProblemDetails
Create new VNF Package subscription
[Documentation] Test ID: 7.3.3.6.5
......@@ -147,10 +146,9 @@ DELETE VNF Package Subscriptions - Method not implemented
... Reference: Clause 10.4.7.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF package subscriptions are not deleted by the failed operation
... Post-Conditions: none
Send Delete Request for VNF Package Subscriptions
Check HTTP Response Status Code Is 405
Check Postcondition VNF Package Subscriptions Exists
Get All VNF Package Subscriptions as Paged Response
[Documentation] Test ID: 7.3.3.6.11
......@@ -163,7 +161,7 @@ Get All VNF Package Subscriptions as Paged Response
... Post-Conditions: none
Get all VNF Package Subscriptions
Check HTTP Response Status Code Is 200
Check LINK in Header
Check HTTP Response Header Contain Link
Get VNF Package Subscriptions - Bad Request Response too Big
[Documentation] Test ID: 7.3.3.6.12
......
......@@ -128,10 +128,9 @@ DELETE VNFD in Individual VNF Package Content - Method not implemented
... Reference: Clause 10.4.4.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNFD is not deleted by the failed operation
... Post-Conditions: none
Send DELETE Request for VNFD in individual VNF Package
Check HTTP Response Status Code Is 405
Check Postcondition VNFD Exist
Get single file VNFD in Individual OnBoarded VNF Package in Plain Format
[Documentation] Test ID: 7.3.3.4.12
......@@ -254,10 +253,9 @@ DELETE VNFD in Individual OnBoarded VNF Package Content - Method not implemented
... Reference: Clause 10.4.4.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNFD is not deleted by the failed operation
... Post-Conditions: none
Send DELETE Request for VNFD in individual OnBoarded VNF Package
Check HTTP Response Status Code Is 405
Check Postcondition VNFD Exist
Get multi file VNFD in Individual VNF Package with security information
[Documentation] Test ID: 7.3.3.4.23
......@@ -283,4 +281,4 @@ Get multi file VNFD in Individual OnBoarded VNF Package with security informatio
... Post-Conditions: none
Get multi file VNFD in Individual OnBoarded VNF Package with security information
Check HTTP Response Status Code Is 200
Check HTTP Response Header Content-Type Is application/zip
Check HTTP Response Header Content-Type Is application/zip
\ No newline at end of file
......@@ -193,10 +193,9 @@ DELETE VNF Package Artifact - Method not implemented
... Reference: Clause 10.4.6.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Package artifact is not deleted by the failed operation
... Post-Conditions: none
Send DELETE Request for VNF Package Artifact
Check HTTP Response Status Code Is 405
Check Postcondition VNF Package Artifact Exist
Get OnBoarded VNF Package Artifact
[Documentation] Test ID: 7.3.3.11.16
......@@ -385,7 +384,6 @@ DELETE OnBoarded VNF Package Artifact - Method not implemented
... Reference: Clause 10.4.6.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Package artifact is not deleted by the failed operation
... Post-Conditions: none
Send DELETE Request for OnBoarded VNF Package Artifact
Check HTTP Response Status Code Is 405
Check Postcondition OnBoarded VNF Package Artifact Exist
\ No newline at end of file
Check HTTP Response Status Code Is 405
\ No newline at end of file
......@@ -71,6 +71,7 @@ GET Individual VNF Package Content with invalid resource identifier
... Post-Conditions: none
GET Individual VNF Package Content with invalid resource identifier
Check HTTP Response Status Code Is 404
Check HTTP Response Body Json Schema Is ProblemDetails
GET Individual VNF Package Content with conflict due to onboarding state
[Documentation] Test ID: 7.3.3.3.6
......@@ -129,10 +130,9 @@ DELETE Individual VNF Package Content - Method not implemented
... Reference: Clause 10.4.3.5.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Package content is not deleted by the failed operation
... Post-Conditions: none
Send DELETE Request for individual VNF Package
Check HTTP Response Status Code Is 405
Check Postcondition VNF Package Content Exist
GET Individual OnBoarded VNF Package Content
[Documentation] Test ID: 7.3.3.3.11
......@@ -256,7 +256,6 @@ DELETE Individual OnBoarded VNF Package Content - Method not implemented
... Reference: Clause 10.4.3.5.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Package content is not deleted by the failed operation
... Post-Conditions: none
Send DELETE Request for individual OnBoarded VNF Package
Check HTTP Response Status Code Is 405
GET Individual OnBoarded VNF Package Content
\ No newline at end of file
Check HTTP Response Status Code Is 405
\ No newline at end of file
......@@ -126,6 +126,25 @@ Check HTTP Response Body vnfPkgsInfo Matches the requested fields selector
Validate Json additionalArtifacts.schema.json ${additional_artifacts[0]}
Log Validation for additionalArtifacts schema OK
GET VNF Packages with fields and exclude_default attribute selector
Log Trying to get all VNF Packages 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}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages?fields=${fields}&exclude_default
${output}= Output response
Set Suite Variable ${response} ${output}
Check HTTP Response Body vnfPkgsInfo Matches the requested fields and exclude_default selector
Log Trying to validate softwareImages schema
${softwareImages}= Get Value From Json ${response['body']} $..softwareImages
Validate Json softwareImage.schema.json ${softwareImages[0]}
Log Validation for softwareImage schema OK
Log Trying to validate additionalArtifacts schema
${additional_artifacts}= Get Value From Json ${response['body']} $..additionalArtifacts
Validate Json additionalArtifacts.schema.json ${additional_artifacts[0]}
Log Validation for additionalArtifacts schema OK
GET VNF Packages with exclude_fields attribute selector
Log Trying to get all VNF Packages present in the NFVO Catalogue, using fields
Pass Execution If ${NFVO_FIELDS} == 0 The NFVO is not able to use fields parameter
......@@ -185,10 +204,6 @@ Send DELETE Request for all VNF Packages
${output}= Output response
Set Suite Variable ${response} ${output}
Check Postcondition VNF Packages Exist
Log Checking that Pm Job still exists
GET all VNF Packages
GET Individual VNF Package
Log Trying to get a VNF Package present in the NFVO Catalogue
Set Headers {"Accept": "${ACCEPT_JSON}"}
......@@ -241,10 +256,6 @@ Send DELETE Request for individual VNF Package
DELETE ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}
${output}= Output response
Set Suite Variable ${response} ${output}
Check Postcondition VNF Package Exist
Log Checking that vnf pacakge still exists
GET Individual VNF Package
GET Individual VNF Package Content
Log Trying to get a VNF Package Content
......@@ -338,10 +349,6 @@ Send DELETE Request for individual VNF Package Content
${output}= Output response
Set Suite Variable ${response} ${output}
Check Postcondition VNF Package Content Exist
Log Checking that vnf pacakge still exists
GET Individual VNF Package Content
Get all VNF Package Subscriptions
Log Trying to get the list of subscriptions
Set Headers {"Accept": "${ACCEPT_JSON}"}
......@@ -378,7 +385,8 @@ Send Post Request for VNF Package Subscription
Log Trying to create a new subscription
Set Headers {"Accept": "${ACCEPT_JSON}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
${body}= Get File jsons/subscriptions.json
${template}= Get File jsons/subscriptions.json
${body}= Format String ${template} callbackUri=${callbackUri}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
POST ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body}
${output}= Output response
......@@ -390,7 +398,8 @@ Send Post Request for Duplicated VNF Package Subscription
Log Trying to create a subscription with an already created content
Set Headers {"Accept": "${ACCEPT_JSON}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
${body}= Get File jsons/subscriptions.json
${template}= Get File jsons/subscriptions.json
${body}= Format String ${template} callbackUri=${callbackUri}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
POST ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body}
${output}= Output response
......@@ -418,11 +427,7 @@ Send Delete Request for VNF Package Subscriptions
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
DELETE ${apiRoot}/${apiName}/${apiVersion}/subscriptions
${output}= Output response
Set Suite Variable ${response} ${output}
Check Postcondition VNF Package Subscriptions Exists
Log Checking that subscriptions exists
Get all VNF Package Subscriptions
Set Suite Variable ${response} ${output}
Get single file VNFD in Individual VNF Package in Plain Format
Log Trying to get a VNFD from a given VNF Package present in the NFVO Catalogue
......@@ -520,14 +525,6 @@ Send DELETE Request for VNFD in individual VNF Package
${output}= Output response
Set Suite Variable ${response} ${output}
Check Postcondition VNFD Exist
Log Checking that vnf pacakge still exists
Set Headers {"Accept": "${ACCEPT_PLAIN}"}
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPkgZipVNFD}/vnfd
Check HTTP Response Status Code Is 200
GET Individual VNF Package Artifact
Log Trying to get a VNF Package Artifact
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
......@@ -606,13 +603,6 @@ Send DELETE Request for individual VNF Package Artifact
DELETE ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
${output}= Output response
Set Suite Variable ${response} ${output}
Check Postcondition Individual VNF Package Artifact Exist
Log Checking that vnf pacakge still exists
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
Check HTTP Response Status Code Is 200
Check HTTP Response Status Code Is
[Arguments] ${expected_status}
......@@ -697,12 +687,7 @@ Send Delete request for individual VNF Package Subscription
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
DELETE ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId}
${output}= Output response
Set Suite Variable ${response} ${output}
Check Postcondition VNF Package Subscription is Deleted
Log Check Postcondition Subscription is deleted
GET individual VNF Package Subscription
Check HTTP Response Status Code Is 404
Set Suite Variable ${response} ${output}
Send Delete request for individual VNF Package Subscription with invalid resource identifier
Log Trying to perform a DELETE on a subscriptionId which doesn't exist
......@@ -735,23 +720,6 @@ Send Patch request for individual VNF Package Subscription
PATCH ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId}
${output}= Output response
Set Suite Variable ${response} ${output}
Check Postcondition VNF Package Subscription is Unmodified (Implicit)
Log Check postconidtion subscription not modified
GET individual VNF Package Subscription
Log Check Response matches original VNF Threshold
${subscription}= evaluate json.loads('''${response['body']}''') json
Should Be Equal ${origResponse['body']['id']} ${subscription.id}
Should Be Equal ${origResponse['body']['callbackUri']} ${subscription.callbackUri}
Check Postcondition VNF Package Subscription is not Created
Log Trying to get a new subscription
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${newSubscriptionId}
${output}= Output response
Set Suite Variable ${response} ${output}
Check HTTP Response Status Code Is 404
Check HTTP Response Header Contains
[Arguments] ${CONTENT_TYPE}
......@@ -768,8 +736,7 @@ Create Sessions
Start Process java -jar ${MOCK_SERVER_JAR} -serverPort ${callback_port} alias=mockInstance
Wait For Process handle=mockInstance timeout=5s on_timeout=continue
Create Mock Session ${callback_uri}:${callback_port}
Check Notification Endpoint
&{notification_request}= Create Mock Request Matcher GET ${callback_endpoint}
&{notification_response}= Create Mock Response headers="Content-Type: application/json" status_code=204
......@@ -777,7 +744,7 @@ Check Notification Endpoint
Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${notification_request}
Clear Requests ${callback_endpoint}
Check LINK in Header
Check HTTP Response Header Contain Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
......@@ -1141,13 +1108,6 @@ Send DELETE Request for individual OnBoarded VNF Package Artifact
DELETE ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vndId}/artifacts/${artifactPath}
${output}= Output response
Set Suite Variable ${response} ${output}
Check Postcondition Individual OnBoarded VNF Package Artifact Exist
Log Checking that vnf pacakge still exists
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vndId}/artifacts/${artifactPath}
Check HTTP Response Status Code Is 200
Get multi file VNFD in Individual OnBoarded VNF Package with security information
Log Trying to get a VNFD from a given OnBoarded VNF Package present in the NFVO Catalogue
......@@ -1443,13 +1403,6 @@ Send DELETE Request for VNF Package Artifact
DELETE ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/artifacts
${output}= Output response
Set Suite Variable ${response} ${output}
Check Postcondition VNF Package Artifact Exist
Log Checking that vnf pacakge still exists
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/artifacts
Check HTTP Response Status Code Is 200
Get Artifact in OnBoarded VNF Package
Log Trying to get Artifact in OnBoarded VNF Package
......@@ -1565,10 +1518,12 @@ Send DELETE Request for OnBoarded VNF Package Artifact
DELETE ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vnfPackageId}/artifacts
${output}= Output response
Set Suite Variable ${response} ${output}
Check Postcondition OnBoarded VNF Package Artifact Exist
Log Checking that OnBoarded vnf pacakge still exists
GET OnBoarded VNF Packages with fields and exclude_default attribute selector
Log Trying to get all OnBoarded VNF Packages 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}"}
GET ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vnfPackageId}/artifacts
Check HTTP Response Status Code Is 200
\ No newline at end of file
GET ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages?fields=${fields}&exclude_default
${output}= Output response
Set Suite Variable ${response} ${output}
\ No newline at end of file
......@@ -162,10 +162,9 @@ DELETE all VNF Packages - Method not implemented
... Reference: Clause 10.4.2.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Packages are not deleted by the failed operation
... Post-Conditions: none
Send DELETE Request for all VNF Packages
Check HTTP Response Status Code Is 405
Check Postcondition VNF Packages Exist
GET all VNF Packages as a Paged Response
[Documentation] Test ID: 7.3.3.1.13
......@@ -348,10 +347,9 @@ DELETE all OnBoarded VNF Packages - Method not implemented
... Reference: Clause 10.4.2.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Packages are not deleted by the failed operation
... Post-Conditions: none
Send OnBoarded DELETE Request for all VNF Packages
Check HTTP Response Status Code Is 405
Check Postcondition VNF Packages Exist
GET all OnBoarded VNF Packages as a Paged Response
[Documentation] Test ID: 7.3.3.1.27
......@@ -377,4 +375,32 @@ GET OnBoarded VNF Packages - Bad Request Response too Big
... Post-Conditions: none
Get all OnBoarded VNF Packages
Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails
\ No newline at end of file
Check HTTP Response Body Json Schema Is ProblemDetails
GET VNF Packages with "fields" and "exclude_default" attribute selector
[Documentation] Test ID: 7.3.3.1.29
... Test title: GET VNF Packages with fields and exclude_default attribute selector
... Test objective: The objective is to test the retrieval of VNF packages with "fields" and "exclude_default" attribute selector, perform a JSON schema validation of the collected data structure, and verify that the retrieved information matches the issued "fields" selector
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: The VNFM supports the use of fields attribute selector
... Post-Conditions: none
GET VNF Packages with fields and exclude_default attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body vnfPkgsInfo Matches the requested fields and exclude_default selector
GET OnBoarded VNF Packages with "fields" and "exclude_default" attribute selector
[Documentation] Test ID: 7.3.3.1.30
... Test title: GET OnBoarded VNF Packages with fields and exclude_default attribute selector
... Test objective: The objective is to test the retrieval of OnBoarded VNF packages with "fields" and "exclude_default" attribute selector, perform a JSON schema validation of the collected data structure, and verify that the retrieved information matches the issued "fields" selector
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 4.3.3.2.1, 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_NFVO
... Applicability: The VNFM supports the use of fields attribute selector
... Post-Conditions: none
GET OnBoarded VNF Packages with fields and exclude_default attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body vnfPkgsInfo Matches the requested fields selector
\ No newline at end of file
{
"callbackUri": "http://172.22.1.7:9091/vnfpkgm/subscriptions"
}
\ No newline at end of file
{{
"callbackUri": "{callbackUri}"
}}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment