diff --git a/SOL005/NSDManagement-API/NSD.robot b/SOL005/NSDManagement-API/NSD.robot new file mode 100644 index 0000000000000000000000000000000000000000..6271e3afe320726b34de188cbfccdceaf742a18d --- /dev/null +++ b/SOL005/NSDManagement-API/NSD.robot @@ -0,0 +1,10 @@ +*** Settings *** +Library JSONSchemaLibrary schemas/ +Resource environment/variables.txt # Generic Parameters +Resource environment/nsDescriptors.txt # Specific nsDescriptors Parameters +Resource NSDManagementKeywords.robot +Library JSONLibrary +Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} ssl_verify=false +Library OperatingSystem + +*** Test Cases *** \ No newline at end of file diff --git a/SOL005/NSDManagement-API/NSDContent.robot b/SOL005/NSDManagement-API/NSDArchiveContent.robot similarity index 66% rename from SOL005/NSDManagement-API/NSDContent.robot rename to SOL005/NSDManagement-API/NSDArchiveContent.robot index aaf583164b0b6d52459ddd3966ca9c470ba3b327..1e6b6fb4014c38781c48069c9e7d92c298d757e7 100644 --- a/SOL005/NSDManagement-API/NSDContent.robot +++ b/SOL005/NSDManagement-API/NSDArchiveContent.robot @@ -9,19 +9,6 @@ Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} ssl_veri Library OperatingSystem *** Test Cases *** -Get single file NSD Content in Plain Format - [Documentation] Test ID: 5.3.1.3.1 - ... Test title: Get single file NSD Content in Plain Format - ... Test objective: The objective is to test the retrieval of the NSD Content in plain format and perform a validation that returned content is in plain format - ... Pre-conditions: One or more NSDs are onboarded in the NFVO. - ... Reference: Clause 5.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v2.7.1 - ... Config ID: Config_prod_NFVO - ... Applicability: The NSD is implemented as a single file - ... Post-Conditions: none - Get single file NSD Content in Plain Format - Check HTTP Response Status Code Is 200 - Check HTTP Response Header Content-Type Is text/plain - Get NSD Content in Zip Format [Documentation] Test ID: 5.3.1.3.2 ... Test title: Get NSD Content in Zip Format @@ -35,45 +22,6 @@ Get NSD Content in Zip Format Check HTTP Response Status Code Is 200 Check HTTP Response Header Content-Type Is application/zip -Get single file NSD Content in Plain or Zip Format - [Documentation] Test ID: 5.3.1.3.3 - ... Test title: Get single file NSD Content in Plain or Zip Format - ... Test objective: The objective is to test the retrieval of the single file NSD Content when requesting Plain or Zip format to NFVO by including both formats in the request, and perform a validation that returned content is in Plain or Zip format - ... Pre-conditions: One or more NSDs are onboarded in the NFVO. - ... Reference: Clause 5.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v2.7.1 - ... Config ID: Config_prod_NFVO - ... Applicability: The NSD Content is implemented as a single file - ... Post-Conditions: none - Get single file NSD Content in Plain or Zip Format - Check HTTP Response Status Code Is 200 - Check HTTP Response Header Content-Type Is Any of text/plain application/zip - -Get multi file NSD Content in Plain or Zip Format - [Documentation] Test ID: 5.3.1.3.4 - ... Test title: Get multi file NSD Content in Plain or Zip Format - ... Test objective: The objective is to test the retrieval of the multi file NSD Content when requesting Plain or Zip format to NFVO by including both formats in the request, and perform a validation that returned content is in Zip format - ... Pre-conditions: One or more NSDs are onboarded in the NFVO. - ... Reference: Clause 5.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v2.7.1 - ... Config ID: Config_prod_NFVO - ... Applicability: The NSD is implemented as a multi file - ... Post-Conditions: none - Get multi file NSD Content in Plain or Zip Format - Check HTTP Response Status Code Is 200 - Check HTTP Response Header Content-Type Is application/zip - -Get multi file NSD Content in Plain Format - [Documentation] Test ID: 5.3.1.3.5 - ... Test title: Get multi file NSD Content in Plain Format - ... Test objective: The objective is to test that the retrieval of the multi file NSD Content fails when requesting it in Plain format, and perform a validation of the JSON schema validation of the failed operation HTTP response - ... Pre-conditions: One or more NSDs are onboarded in the NFVO. - ... Reference: Clause 5.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v2.7.1 - ... Config ID: Config_prod_NFVO - ... Applicability: The NSD Content is implemented as a multi file - ... Post-Conditions: none - Get multi file NSD Content in Plain Format - Check HTTP Response Status Code Is 406 - Check HTTP Response Body Json Schema Is ProblemDetails - Get NSD Content with invalid resource identifier [Documentation] Test ID: 5.3.1.3.6 ... Test title: Get NSD Content with invalid resource identifier @@ -85,6 +33,7 @@ Get NSD Content with invalid resource identifier ... Post-Conditions: none Get NSD Content with invalid resource identifier Check HTTP Response Status Code Is 404 + Check HTTP Response Body Json Schema Is ProblemDetails Get NSD Content with conflict due to onboarding state [Documentation] Test ID: 5.3.1.3.7 @@ -137,7 +86,8 @@ GET NSD Content with invalid Range Request ... Applicability: The NFVO supports range requests to return single range of bytes from the NSD file ... Post-Conditions: none GET NSD Content with invalid Range Request - Check HTTP Response Status Code Is 416 + Check HTTP Response Status Code Is 416 + Check HTTP Response Body Json Schema Is ProblemDetails Upload NSD Content as Zip file in asynchronous mode [Documentation] Test ID: 5.3.1.3.11 @@ -151,20 +101,6 @@ Upload NSD Content as Zip file in asynchronous mode Send PUT Request to upload NSD Content as zip file in asynchronous mode Check HTTP Response Status Code Is 202 Check Post Condition NSD Content has been Uploaded - - -Upload NSD Content as plain text file in asynchronous mode - [Documentation] Test ID: 5.3.1.3.12 - ... Test title: Upload NSD Content as plain text file in asynchronous mode - ... Test objective: The objective is to test the upload of an NSD Content in plain text format when the NFVO supports the asynchronous upload mode. - ... Pre-conditions: One or more NSDs are onboarded in the NFVO. - ... Reference: Clause 5.4.4.3.4 - ETSI GS NFV-SOL 005 [3] v2.7.1 - ... Config ID: Config_prod_NFVO - ... Applicability: The NFVO supports the upload of NSD contents in asynchronous mode - ... Post-Conditions: none - Send PUT Request to upload NSD Content as plain text file in asynchronous mode - Check HTTP Response Status Code Is 202 - Check Post Condition NSD Content has been Uploaded Upload NSD Content as Zip file in synchronous mode [Documentation] Test ID: 5.3.1.3.13 @@ -178,20 +114,6 @@ Upload NSD Content as Zip file in synchronous mode Send PUT Request to upload NSD Content as zip file in synchronous mode Check HTTP Response Status Code Is 204 Check Postcondition NSD Content is uploaded and available in the NFVO - -Upload NSD Content as plain text file in synchronous mode - [Documentation] Test ID: 5.3.1.3.14 - ... Test title: Upload NSD Content as plain text file in synchronous mode - ... Test objective: The objective is to test the upload of an NSD Content in plain text format when the NFVO supports the synchronous upload mode. - ... Pre-conditions: One or more NSDs are onboarded in the NFVO. - ... Reference: Clause 5.4.4.3.4 - ETSI GS NFV-SOL 005 [3] v2.7.1 - ... Config ID: Config_prod_NFVO - ... Applicability: The NFVO supports the upload of NSD contents in synchronous mode - ... Post-Conditions: The NSD content is successfully uploaded and available in the NFVO - Send PUT Request to upload NSD Content as plain text file in synchronous mode - Check HTTP Response Status Code Is 204 - Check Postcondition NSD Content is uploaded and available in the NFVO - Upload NSD Content with conflict due to onboarding state [Documentation] Test ID: 5.3.1.3.15 diff --git a/SOL005/NSDManagement-API/NSDManagementKeywords.robot b/SOL005/NSDManagement-API/NSDManagementKeywords.robot index 9304e5e069b767abe1985d5eb2a73dbfc3cd0329..4304dc316b70b616708920ab4f96ea08b51aa171 100644 --- a/SOL005/NSDManagement-API/NSDManagementKeywords.robot +++ b/SOL005/NSDManagement-API/NSDManagementKeywords.robot @@ -319,15 +319,7 @@ Check HTTP Response Header Content-Length Is Present and Matches the requested r Log Check Content-Length HTTP Header Should Contain ${response['headers']} Content-Length Should Be Equal As Integers ${response['headers']['Content-Length']} ${length} - Log Header Content-Length is present - -Get single file NSD Content in Plain Format - Log Trying to get a NSD present in the NFVO Catalogue - Set Headers {"Accept": "${ACCEPT_PLAIN}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} - GET ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${nsdInfoIdPlain}/nsd_content - ${output}= Output response - Set Suite Variable ${response} ${output} + Log Header Content-Length is present Get NSD Content in Zip Format Log Trying to get a NSD present in the NFVO Catalogue @@ -337,35 +329,8 @@ Get NSD Content in Zip Format ${output}= Output response Set Suite Variable ${response} ${output} -Get single file NSD Content in Plain or Zip Format - Log Trying to get a NSD present in the NFVO Catalogue - Set Headers {"Accept": "${ACCEPT_PLAIN}"} - Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} - GET ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${nsdInfoIdPlain}/nsd_content - ${output}= Output response - Set Suite Variable ${response} ${output} - -Get multi file NSD Content in Plain or Zip Format - Log Trying to get a VNFD from a given NSD Management present in the NFVO Catalogue - Set Headers {"Accept": "${ACCEPT_PLAIN}"} - Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} - GET ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${nsdInfoIdZip}/nsd_content - ${output}= Output response - Set Suite Variable ${response} ${output} - -Get multi file NSD Content in Plain Format - Log Trying to get a negative case performing a get on a NSD present in the NFVO Catalogue. Accept will be text/plain but NSD is composed my multiple files. - Set Headers {"Accept": "${ACCEPT_PLAIN}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} - GET ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${nsdInfoIdZip}/nsd_content - ${output}= Output response - Set Suite Variable ${response} ${output} - Get NSD Content with invalid resource identifier Log Trying to perform a negative get, using an erroneous package ID - Set Headers {"Accept": "${ACCEPT_PLAIN}"} Set Headers {"Accept": "${ACCEPT_ZIP}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${erroneous_nsdInfoId}/nsd_content @@ -374,7 +339,6 @@ Get NSD Content with invalid resource identifier Get NSD Content with conflict due to onboarding state Log Trying to get a VNFD from a given NSD Management present in the NFVO Catalogue - Set Headers {"Accept": "${ACCEPT_PLAIN}"} Set Headers {"Accept": "${ACCEPT_ZIP}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${notOnboardedNsdInfoId}/nsd_content @@ -410,18 +374,7 @@ Send PUT Request to upload NSD Content as zip file in asynchronous mode ${response}= Output response body Should Be Empty ${response} ${output}= Output response - Set Suite Variable ${response} ${output} - -Send PUT Request to upload NSD Content as plain text file in asynchronous mode - Log Trying to perform a PUT. This method upload the content of a NSD - Set Headers {"Accept": "${ACCEPT_PLAIN}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} - ${body}= Get File ${contentPlainFile} - PUT ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${nsdInfoIdPlain}/nsd_content ${body} - ${response}= Output response body - Should Be Empty ${response} - ${output}= Output response - Set Suite Variable ${response} ${output} + Set Suite Variable ${response} ${output} Send PUT Request to upload NSD Content as zip file in synchronous mode Log Trying to perform a PUT. This method upload the content of a NSD @@ -434,17 +387,6 @@ Send PUT Request to upload NSD Content as zip file in synchronous mode ${output}= Output response Set Suite Variable ${response} ${output} -Send PUT Request to upload NSD Content as plain text file in synchronous mode - Log Trying to perform a PUT. This method upload the content of a NSD - Set Headers {"Accept": "${ACCEPT_PLAIN}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} - ${body}= Get File ${contentPlainFile} - PUT ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${nsdInfoIdPlain}/nsd_content ${body} - ${response}= Output response body - Should Be Empty ${response} - ${output}= Output response - Set Suite Variable ${response} ${output} - Check Post Condition NSD Content has been Uploaded Log Checking NsdOnboardingNotification Recieved Wait Until Keyword Succeeds ${retry} ${interval} Check Response is NsdOnboardingNotification @@ -458,7 +400,7 @@ Check Response is NsdOnboardingNotification Check Postcondition NSD Content is uploaded and available in the NFVO - Get single file NSD Content in Plain or Zip Format + Get NSD Content in Zip Format Check HTTP Response Status Code Is 200 Send PUT Request to upload NSD Content with conflict due to onboarding state @@ -718,7 +660,25 @@ Send PUT Request for Individual PNF Descriptor Get PNFD Content Log Trying to get a NSD present in the NFVO Catalogue - Set Headers {"Accept": "${ACCEPT_PLAIN}"} + Set Headers {"Accept": "${ACCEPT_ZIP}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/pnf_descriptors/${pnfdInfoId}/pnfd_content + ${output}= Output response + Set Suite Variable ${response} ${output} + +Get PNFD Content with Range Request + Log Trying to get a NSD present in the NFVO Catalogue with range request + Pass Execution If ${NFVO_RANGE_OK} == 0 Skipping this test as NFVO is not able to handle partial Requests. + Set Headers {"Range": "${range}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/pnf_descriptors/${pnfdInfoId}/pnfd_content + ${output}= Output response + Set Suite Variable ${response} ${output} + +Get PNFD Content with invalid Range Request + Pass Execution If ${NFVO_RANGE_OK} == 0 Skipping this test as NFVO is not able to handle partial Requests. + Set Headers {"Accept": "${ACCEPT_ZIP}"} + Set Headers {"Range": "${erroneousRange}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/pnf_descriptors/${pnfdInfoId}/pnfd_content ${output}= Output response @@ -726,7 +686,7 @@ Get PNFD Content Get PNFD Content with invalid resource identifier Log Trying to perform a negative get, using an erroneous package ID - Set Headers {"Accept": "${ACCEPT_PLAIN}"} + Set Headers {"Accept": "${ACCEPT_ZIP}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/pnf_descriptors/${erroneous_pnfdInfoId}/pnfd_content ${output}= Output response @@ -734,15 +694,15 @@ Get PNFD Content with invalid resource identifier Get PNFD Content with conflict due to onboarding state Log Trying to get a PNFD present in the NFVO Catalogue - Set Headers {"Accept": "${ACCEPT_PLAIN}"} + Set Headers {"Accept": "${ACCEPT_ZIP}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/pnf_descriptors/${onboardingStatePnfdId}/pnfd_content ${output}= Output response Set Suite Variable ${response} ${output} -Send PUT Request to upload PNFD Content as plain text file +Send PUT Request to upload PNFD Content as zip file Log Trying to perform a PUT. This method upload the content of a PNFD - Set Headers {"Accept": "${ACCEPT_PLAIN}"} + Set Headers {"Accept": "${ACCEPT_ZIP}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} ${body}= Get File ${contentFilePnfd} PUT ${apiRoot}/${apiName}/${apiVersion}/pnf_descriptors/${pnfdInfoId}/pnfd_content ${body} @@ -753,7 +713,7 @@ Send PUT Request to upload PNFD Content as plain text file Send PUT Request to upload PNFD Content with conflict due to onboarding state Log Trying to perform a PUT. This method upload the content of a PNFD - Set Headers {"Accept": "${ACCEPT_PLAIN}"} + Set Headers {"Accept": "${ACCEPT_ZIP}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} ${body}= Get Binary File ${contentFilePnfd} PUT ${apiRoot}/${apiName}/${apiVersion}/pnf_descriptors/${creatingNsdInfoId}/pnfd_content ${body} @@ -1056,4 +1016,7 @@ Check PostCondition GET Individual Network Service Descriptor Information Set Headers {"Accept": "${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${nsdInfoId} - Should Be Equal As Strings ${response['status']} 200 \ No newline at end of file + Should Be Equal As Strings ${response['status']} 200 + +Wait for individual grant successful notification + Wait Until Keyword Succeeds ${retry} ${interval} Get PNFD Content diff --git a/SOL005/NSDManagement-API/PNFDContent.robot b/SOL005/NSDManagement-API/PNFDArchiveContent.robot similarity index 69% rename from SOL005/NSDManagement-API/PNFDContent.robot rename to SOL005/NSDManagement-API/PNFDArchiveContent.robot index 740ef2a26d395c40c8e50bfeab0097780e013479..ccf003da89ad129340a1ebd5902f2ae957dd3e9a 100644 --- a/SOL005/NSDManagement-API/PNFDContent.robot +++ b/SOL005/NSDManagement-API/PNFDArchiveContent.robot @@ -12,7 +12,7 @@ Library OperatingSystem Get PNFD Content [Documentation] Test ID: 5.3.1.6.1 ... Test title: Get PNFD Content - ... Test objective: The objective is to test the retrieval of the PNFD Content in plain format and perform a validation that returned content is in plain format + ... Test objective: The objective is to test the retrieval of the PNFD Content in zip format and perform a validation that returned content is in plain format ... Pre-conditions: One or more PNFDs are onboarded in the NFVO. ... Reference: Clause 5.4.7.3.2 - ETSI GS NFV-SOL 005 [3] v2.7.1 ... Config ID: Config_prod_NFVO @@ -20,7 +20,7 @@ Get PNFD Content ... Post-Conditions: none Get PNFD Content Check HTTP Response Status Code Is 200 - Check HTTP Response Header Content-Type Is text/plain + Check HTTP Response Header Content-Type Is application/zip Get PNFD Content with invalid resource identifier [Documentation] Test ID: 5.3.1.6.2 @@ -47,27 +47,25 @@ Get PNFD Content with conflict due to onboarding state Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails - -Upload PNFD Content as plain text file +Upload PNFD Content as zip file [Documentation] Test ID: 5.3.1.6.4 - ... Test title: Upload PNFD Content as plain text file + ... Test title: Upload PNFD Content as zip file ... Test objective: The objective is to test the upload of a PNFD Content in plain text format. ... Pre-conditions: One or more PNFDs are onboarded in the NFVO. - ... Reference: Clause 5.4.7.3.4 - ETSI GS NFV-SOL 005 [3] v2.7.1 + ... Reference: Clause 5.4.7.3.3 - ETSI GS NFV-SOL 005 [3] v2.7.1 ... Config ID: Config_prod_NFVO ... Applicability: none ... Post-Conditions: The uploaded PNFD content is available in the NFVO - Send PUT Request to upload PNFD Content as plain text file + Send PUT Request to upload PNFD Content as zip file Check HTTP Response Status Code Is 204 Check Postcondition PNFD Content Exists - Upload PNFD Content with conflict due to onboarding state [Documentation] Test ID: 5.3.1.6.5 ... Test title: Upload PNFD Content with conflict due to onboarding state ... Test objective: The objective is to test that the upload of the PNFD Content fails due to a conflict when the PNFD is not in onboarding state CREATED in the NFVO. The test also performs a validation of the JSON schema validation of the failed operation HTTP response ... Pre-conditions: The onboarding state of the PNFD for which the PNFD Content is requested is different from CREATED. - ... Reference: Clause 5.4.7.3.4 - ETSI GS NFV-SOL 005 [3] v2.7.1 + ... Reference: Clause 5.4.7.3.3 - ETSI GS NFV-SOL 005 [3] v2.7.1 ... Config ID: Config_prod_NFVO ... Applicability: none ... Post-Conditions: none @@ -111,3 +109,42 @@ DELETE PNFD Content - Method not implemented Send DELETE Request for PNFD Content Check HTTP Response Status Code Is 405 Check Postcondition PNFD Content Exists + +Get PNFD Content with Range Request and NFVO supporting Range Requests + [Documentation] Test ID: 5.3.1.6.9 + ... Test title: Get PNFD Content with Range Request and NFVO supporting Range Requests + ... Test objective: The objective is to test the retrieval of the PNFD Content in plain format when using a range request to return single range of bytes from the file, with the NFVO supporting it + ... Pre-conditions: One or more PNFDs are onboarded in the NFVO. + ... Reference: Clause 5.4.7.3.2 - ETSI GS NFV-SOL 005 [3] v2.7.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + Get PNFD Content with Range Request + Check HTTP Response Status Code Is 206 + Check HTTP Response Header Content-Type Is application/zip + Check HTTP Response Header Content-Range Is Present and Matches the requested range + +Get PNFD Content with invalid Range Request + [Documentation] Test ID: 5.3.1.6.10 + ... Test title: Get PNFD Content with invalid Range Request + ... Test objective: The objective is to test the retrieval of the PNFD Content in plain format and perform a validation that returned content is in plain format + ... Pre-conditions: One or more PNFDs are onboarded in the NFVO. + ... Reference: Clause 5.4.7.3.2 - ETSI GS NFV-SOL 005 [3] v2.7.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + Get PNFD Content with invalid Range Request + Check HTTP Response Status Code Is 416 + +Upload PNFD Archive Content + [Documentation] Test ID: 5.3.1.6.11 + ... Test title: Upload PNFD Archive Content + ... Test objective: The objective is to test the PNFD archive has been accepted for uploading, but the processing has not been completed. + ... Pre-conditions: One or more PNFDs are onboarded in the NFVO. + ... Reference: Clause 5.4.7.3.3 - ETSI GS NFV-SOL 005 [3] v2.7.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + Send PUT Request to upload PNFD Content as zip file + Check HTTP Response Status Code Is 202 + Wait for individual grant successful notification \ No newline at end of file diff --git a/SOL005/NSDManagement-API/Subscriptions.robot b/SOL005/NSDManagement-API/Subscriptions.robot index d70615f82390f6a719088174d09f5476f3a9e008..131b7c2ff7aeaae36398ed9d0e4d3ce9859bcafa 100644 --- a/SOL005/NSDManagement-API/Subscriptions.robot +++ b/SOL005/NSDManagement-API/Subscriptions.robot @@ -24,7 +24,6 @@ Get All NSD Management Subscriptions Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is NsdmSubscriptions - Get NSD Management Subscriptions with attribute-based filter [Documentation] Test ID: 5.3.1.7.2 ... Test title: Get NSD Management Subscriptions with attribute-based filter @@ -39,7 +38,6 @@ Get NSD Management Subscriptions with attribute-based filter Check HTTP Response Body Json Schema Is NsdmSubscriptions Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter - Get NSD Management Subscriptions with invalid attribute-based filter [Documentation] Test ID: 5.3.1.7.3 ... Test title: Get NSD Management Subscriptions with attribute-based filters @@ -64,6 +62,7 @@ GET NSD Management Subscription with invalid resource endpoint ... Post-Conditions: none Get NSD Management Subscriptions with invalid resource endpoint Check HTTP Response Status Code Is 404 + Check HTTP Response Body Json Schema Is ProblemDetails Create new NSD Management subscription [Documentation] Test ID: 5.3.1.7.5 @@ -80,7 +79,6 @@ Create new NSD Management subscription Check HTTP Response Body NsdmSubscription Attributes Values Match the Issued Subscription Check Postcondition NSD Management Subscription Is Set - Create duplicated NSD Management subscription with NFVO not creating duplicated subscriptions [Tags] no-duplicated-subs [Documentation] Test ID: 5.3.1.7.6 @@ -97,7 +95,6 @@ Create duplicated NSD Management subscription with NFVO not creating duplicated Check HTTP Response Header Contains Location Check Postcondition Subscription Resource Returned in Location Header Is Available - Create duplicated NSD Management subscription with NFVO creating duplicated subscriptions [Tags] duplicated-subs [Documentation] Test ID: 5.3.1.7.7 @@ -114,7 +111,6 @@ Create duplicated NSD Management subscription with NFVO creating duplicated subs Check HTTP Response Body NsdmSubscription Attributes Values Match the Issued Subscription Check Postcondition NSD Management Subscription Is Set - PUT NSD Management Subscriptions - Method not implemented [Documentation] Test ID: 5.3.1.7.8 ... Test title: PUT NSD Management Subscriptions - Method not implemented @@ -126,8 +122,7 @@ PUT NSD Management Subscriptions - Method not implemented ... Post-Conditions: none Send Put Request for NSD Management Subscriptions Check HTTP Response Status Code Is 405 - - + PATCH NSD Management Subscriptions - Method not implemented [Documentation] Test ID: 5.3.1.7.9 ... Test title: PATCH NSD Management Subscriptions - Method not implemented @@ -139,7 +134,6 @@ PATCH NSD Management Subscriptions - Method not implemented ... Post-Conditions: none Send Patch Request for NSD Management Subscriptions Check HTTP Response Status Code Is 405 - DELETE NSD Management Subscriptions - Method not implemented [Documentation] Test ID: 5.3.1.7.10 @@ -178,4 +172,16 @@ Get NSD Management Subscriptions - Bad Request Response too Big ... Post-Conditions: none Get all NSD Management Subscriptions 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 + +Create new NSD Management subscription - Unprocessable Entity + [Documentation] Test ID: 5.3.1.7.13 + ... Test title: Create new NSD Management subscription - Unprocessable Entity + ... Test objective: The objective is to test the creation of a new NSD Management subscription fials when content type of the payload body is supported and the payload body of a request contains syntactically correct data but the data cannot be processed + ... Pre-conditions: none + ... Reference: Clause 5.4.8.3.1 - ETSI GS NFV-SOL 005 [3] v2.7.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + Send Post Request for NSD Management Subscription + Check HTTP Response Status Code Is 422 \ No newline at end of file