From 874406f9f7c04328c9b7917c6586ac94e70f9dff Mon Sep 17 00:00:00 2001 From: uihassan Date: Mon, 14 Sep 2020 13:39:25 +0500 Subject: [PATCH] minor bugs fixed and redundant post-conditions removed --- .../CompileLogTask.robot | 15 ++--- .../IndividualLoggingJob.robot | 9 ++- .../IndividualReport.robot | 14 ++-- .../IndividualSubscription.robot | 13 ++-- .../LoggingJobs.robot | 58 ++++++++--------- .../NFVMANOLogManagementKeywords.robot | 64 ++----------------- .../NotificationEndpoint.robot | 4 +- .../Subscriptions.robot | 11 ++-- 8 files changed, 63 insertions(+), 125 deletions(-) diff --git a/SOL009/NFVMANOLogManagement-API/CompileLogTask.robot b/SOL009/NFVMANOLogManagement-API/CompileLogTask.robot index c4fd5b4c..224cf601 100644 --- a/SOL009/NFVMANOLogManagement-API/CompileLogTask.robot +++ b/SOL009/NFVMANOLogManagement-API/CompileLogTask.robot @@ -16,31 +16,30 @@ Request to compile the logged data into a file - Synchronous mode ... Reference: clause 8.5.6.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: The NFV-MANO can decide immediately what to respond to a compile request - ... Post-Conditions: The compiled log information is available. + ... Post-Conditions: none Send Log data Request in Synchronous mode Check HTTP Response Status Code Is 201 - Check Operation Occurrence Id + Check HTTP Response Header Contains Location Check HTTP Response Body Json Schema Is LogReport - Request to compile the logged data into a file - Asynchronous mode [Documentation] Test ID: 8.3.4.4.2 ... Test title: Request to compile the logged data into a file - Asynchronous mode - ... Test objective: The objective is to request to compile the logged data into a file in asynchronous mode and perform a JSON schema validation on the returned log report data structure + ... Test objective: The objective is to request to compile the logged data into a file in asynchronous mode ... Pre-conditions: none ... Reference: clause 8.5.6.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: The NFV-MANO can not decide immediately what to respond to a compile request - ... Post-Conditions: The compiled log information is available. + ... Post-Conditions: none Send Log data Request in Asynchronous mode Check HTTP Response Status Code Is 202 - Check Operation Occurrence Id + Check HTTP Response Header Contains Location Wait for compilation success notification Request to compile the logged data into a file - Already Processing [Documentation] Test ID: 8.3.4.4.3 ... Test title: Request to compile the logged data into a file - Already Processing - ... Test objective: The objective is to request to compile the logged data into a file when a log data compilation and report creation is already ongoing, or a log report has just been created, for the specified logging job at the time of processing the request and perform a JSON schema validation on the returned log report data structure + ... Test objective: The objective is to request to compile the logged data into a file when a log data compilation and report creation is already ongoing, or a log report has just been created, for the specified logging job at the time of processing the request ... Pre-conditions: none ... Reference: clause 8.5.6.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO @@ -48,7 +47,7 @@ Request to compile the logged data into a file - Already Processing ... Post-Conditions: none Send Log data Request Check HTTP Response Status Code Is 303 - Check Operation Occurrence Id + Check HTTP Response Header Contains Location Request to compile the logged data into a file with unprocessable entity [Documentation] Test ID: 8.3.4.4.4 diff --git a/SOL009/NFVMANOLogManagement-API/IndividualLoggingJob.robot b/SOL009/NFVMANOLogManagement-API/IndividualLoggingJob.robot index c63498ea..8ddfedb7 100644 --- a/SOL009/NFVMANOLogManagement-API/IndividualLoggingJob.robot +++ b/SOL009/NFVMANOLogManagement-API/IndividualLoggingJob.robot @@ -15,15 +15,14 @@ POST Individual Logging Job - Method not implemented ... Reference: clause 8.5.4.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none - ... Post-Conditions: The Logging Job is not created on the NFV-MANO + ... Post-Conditions: none Send Post request for individual Logging Job Check HTTP Response Status Code Is 405 - Check Postcondition Logging Job is not Created GET individual Logging Job [Documentation] Test ID: 8.3.4.2.2 ... Test title: Get individual Logging Job - ... Test objective: The objective is to test the retrieval of an individual logging job and perform a JSON schema and content validation of the collected job data structure + ... Test objective: The objective is to test the retrieval of an individual logging job and perform a JSON schema validation of the collected job data structure ... Pre-conditions: Logging Job is already created. ... Reference: clause 8.5.4.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO @@ -55,7 +54,7 @@ PUT Individual Logging Job - Method not implemented ... Reference: clause 8.5.4.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none - ... Post-Conditions: The Logging Job is not modified by the operation + ... Post-Conditions: none Send Put request for individual Logging Job Check HTTP Response Status Code Is 405 @@ -67,7 +66,7 @@ PATCH Individual Logging Job - Method not implemented ... Reference: clause 6.5.4.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none - ... Post-Conditions: The Logging Job is not modified by the operation + ... Post-Conditions: none Send Patch request for individual Logging Job Check HTTP Response Status Code Is 405 diff --git a/SOL009/NFVMANOLogManagement-API/IndividualReport.robot b/SOL009/NFVMANOLogManagement-API/IndividualReport.robot index e85b2ecf..a285b156 100644 --- a/SOL009/NFVMANOLogManagement-API/IndividualReport.robot +++ b/SOL009/NFVMANOLogManagement-API/IndividualReport.robot @@ -15,10 +15,9 @@ POST Individual Log Report - Method not implemented ... Reference: clause 8.5.5.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none - ... Post-Conditions: The log report is not created. + ... Post-Conditions: none Send Post request for Individual Log Report Check HTTP Response Status Code Is 405 - Check Postcondition Individual Log Report is not Created Get Individual Log Report [Documentation] Test ID: 8.3.4.3.2 @@ -66,10 +65,9 @@ PUT Individual Log Report - Method not implemented ... Reference: clause 8.5.5.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none - ... Post-Conditions: The NFV-MANO log report is not modified by the operation + ... Post-Conditions: none Send Put request for Individual Log Report Check HTTP Response Status Code Is 405 - Check Postcondition Individual Log Report is Unmodified (Implicit) PATCH Individual Log Report - Method not implemented [Documentation] Test ID: 8.3.4.3.6 @@ -79,10 +77,9 @@ PATCH Individual Log Report - Method not implemented ... Reference: clause 8.5.5.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none - ... Post-Conditions: The log report is not modified by the operation + ... Post-Conditions: none Send Patch request for Individual Log Report Check HTTP Response Status Code Is 405 - Check Postcondition Individual Log Report is Unmodified (Implicit) DELETE Individual Log Report - Method not implemented [Documentation] Test ID: 8.3.4.3.7 @@ -92,7 +89,6 @@ DELETE Individual Log Report - Method not implemented ... Reference: clause 8.5.5.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none - ... Post-Conditions: The log report is not deleted by the operation + ... Post-Conditions: none Send Delete request for Individual Log Report - Check HTTP Response Status Code Is 405 - Check Postcondition Individual Log Report Exists + Check HTTP Response Status Code Is 405 \ No newline at end of file diff --git a/SOL009/NFVMANOLogManagement-API/IndividualSubscription.robot b/SOL009/NFVMANOLogManagement-API/IndividualSubscription.robot index 22585149..444831fa 100644 --- a/SOL009/NFVMANOLogManagement-API/IndividualSubscription.robot +++ b/SOL009/NFVMANOLogManagement-API/IndividualSubscription.robot @@ -10,7 +10,7 @@ Resource NFVMANOLogManagementKeywords.robot GET Individual Subscription [Documentation] Test ID: 8.3.4.6.1 ... Test title: GET Individual Subscription - ... Test objective: The objective is to test the retrieval of individual subscription and perform a JSON schema and content validation of the returned subscription data structure + ... Test objective: The objective is to test the retrieval of individual subscription and perform a JSON schema validation of the returned subscription data structure ... Pre-conditions: At least one subscription is available in the NFV-MANO. ... Reference: clause 8.5.8.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO @@ -66,10 +66,9 @@ POST Individual Subscription - Method not implemented ... Reference: clause 8.5.8.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none - ... Post-Conditions: The VNF Performance Subscription is not created on the NFV-MANO + ... Post-Conditions: none Send Post request for individual Subscription Check HTTP Response Status Code Is 405 - Check Postcondition Subscription is not Created PUT Individual Subscription - Method not implemented [Documentation] Test ID: 8.3.4.6.6 @@ -79,10 +78,9 @@ PUT Individual Subscription - Method not implemented ... Reference: clause 8.5.8.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none - ... Post-Conditions: The subscription is not modified by the operation + ... Post-Conditions: none Send Put request for individual Subscription Check HTTP Response Status Code Is 405 - Check Postcondition Subscription is Unmodified (Implicit) PATCH Individual Subscription - Method not implemented [Documentation] Test ID: 8.3.4.6.7 @@ -92,7 +90,6 @@ PATCH Individual Subscription - Method not implemented ... Reference: clause 8.5.8.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none - ... Post-Conditions: The subscription is not modified by the operation + ... Post-Conditions: none Send Patch request for individual Threshold - Check HTTP Response Status Code Is 405 - Check Postcondition Subscription is Unmodified (Implicit) \ No newline at end of file + Check HTTP Response Status Code Is 405 \ No newline at end of file diff --git a/SOL009/NFVMANOLogManagement-API/LoggingJobs.robot b/SOL009/NFVMANOLogManagement-API/LoggingJobs.robot index 97cbed71..38d15c94 100644 --- a/SOL009/NFVMANOLogManagement-API/LoggingJobs.robot +++ b/SOL009/NFVMANOLogManagement-API/LoggingJobs.robot @@ -10,7 +10,7 @@ Library REST ${NFVMANO_SCHEMA}://${NFVMANO_HOST}:${NFVMANO_PORT} POST Create a new logging job [Documentation] Test ID: 8.3.4.1.1 ... Test title: POST Create a new logging job - ... Test objective: The objective is to create a new logging job + ... Test objective: The objective is to create a new logging job, and perform the JSON schema validation of the operation HTTP response. ... Pre-conditions: none ... Reference: clause 8.5.3.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO @@ -20,11 +20,12 @@ POST Create a new logging job Check HTTP Response Status Code Is 201 Check HTTP Response Header Contains Location Check HTTP Response Body Json Schema Is LoggingJob + Check Post-Condition Logging job is created GET information about logging jobs [Documentation] Test ID: 8.3.4.1.2 ... Test title: GET information logging jobs - ... Test objective: The objective is to retrieve information about logging jobs + ... Test objective: The objective is to retrieve information about logging jobs, and perform the JSON schema validation of the operation HTTP response. ... Pre-conditions: At least one logging job is created. ... Reference: clause 8.5.3.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO @@ -34,7 +35,6 @@ GET information about logging jobs Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is LoggingJobs - GET Logging jobs - invalid attribute-based filter [Documentation] Test ID: 8.3.4.1.3 ... Test title: GET Logging jobs - invalid attribute-based filter @@ -42,8 +42,8 @@ GET Logging jobs - invalid attribute-based filter ... Pre-conditions: At least one logging job is created. ... Reference: clause 8.5.3.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO - ... Applicability: - ... Post-Conditions: + ... Applicability: none + ... Post-Conditions: none GET Logging Job with invalid filter Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails @@ -55,8 +55,8 @@ GET Logging jobs - invalid attribute selector ... Pre-conditions: At least one logging job is created. ... Reference: clause 8.5.3.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO - ... Applicability: - ... Post-Conditions: + ... Applicability: none + ... Post-Conditions: none GET Logging Job with invalid selector Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails @@ -68,8 +68,8 @@ GET Logging jobs - Bad Request Response too Big ... Pre-conditions: At least one logging job is created. ... Reference: clause 8.5.3.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO - ... Applicability: - ... Post-Conditions: + ... Applicability: none + ... Post-Conditions: none GET Logging Jobs Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails @@ -81,8 +81,8 @@ GET information about logging jobs with attribute-based filter ... Pre-conditions: At least one logging job is created. ... Reference: clause 8.5.3.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO - ... Applicability: - ... Post-Conditions: + ... Applicability: none + ... Post-Conditions: none GET Logging Job with filter Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is LoggingJobs @@ -94,35 +94,35 @@ GET information about logging jobs with "all_fields" attribute selector ... Pre-conditions: At least one logging job is created. ... Reference: clause 8.5.3.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO - ... Applicability: - ... Post-Conditions: + ... Applicability: none + ... Post-Conditions: none GET Logging jobs with all_fields attribute selector Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is LoggingJobs -GET information about Logging Jobs with exclude_default attribute selector +GET information about Logging Jobs with "exclude_default" attribute selector [Documentation] Test ID: 8.3.4.1.8 ... Test title: GET information about Logging Jobs with "exclude_default" attribute selector ... Test objective: The objective is to retrieve information about logging jobs with "exclude_default" attribute selector ... Pre-conditions: At least one logging job is created. ... Reference: clause 8.5.3.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO - ... Applicability: - ... Post-Conditions: + ... Applicability: none + ... Post-Conditions: none GET Logging Jobs with exclude_default attribute selector Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is LoggingJobs -GET information about Logging Jobs with fields attribute selector +GET information about Logging Jobs with "fields" attribute selector [Documentation] Test ID: 8.3.4.1.9 ... Test title: GET information about Logging Jobs with fields attribute selector ... Test objective: The objective is to retrieve information about Logging Jobs with fields attribute selector ... Pre-conditions: At least one logging job is created. ... Reference: clause 8.5.3.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO - ... Applicability: - ... Post-Conditions: + ... Applicability: none + ... Post-Conditions: none GET Logging Jobs with fields attribute selector Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is LoggingJobs @@ -134,7 +134,7 @@ GET information about Logging Jobs with "exclude_fields" attribute selector ... Pre-conditions: At least one logging job is created. ... Reference: clause 8.5.3.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO - ... Applicability: + ... Applicability: none ... Post-Conditions: none GET Logging Jobs with exclude_fields attribute selector Check HTTP Response Status Code Is 200 @@ -147,11 +147,11 @@ GET information about Logging Jobs with Paged Response ... Pre-conditions: At least one logging job is created. ... Reference: clause 8.5.3.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO - ... Applicability: - ... Post-Conditions: + ... Applicability: none + ... Post-Conditions: none GET Logging Jobs Check HTTP Response Status Code Is 200 - Check LINK in Header + Check HTTP Response Header Contains Link PUT Logging Jobs - Method not implemented [Documentation] Test ID: 8.3.4.1.12 @@ -160,7 +160,7 @@ PUT Logging Jobs - Method not implemented ... Pre-conditions: ... Reference: clause 8.5.3.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO - ... Applicability: + ... Applicability: none ... Post-Conditions: none PUT Logging Jobs Check HTTP Response Status Code Is 405 @@ -169,10 +169,10 @@ PATCH Logging Jobs - Method not implemented [Documentation] Test ID: 8.3.4.1.13 ... Test title: PATCH Logging Jobs - Method not implemented ... Test objective: The objective is to test that the method is not implemented - ... Pre-conditions: + ... Pre-conditions: none ... Reference: clause 8.5.3.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO - ... Applicability: + ... Applicability: none ... Post-Conditions: none PATCH Logging Jobs Check HTTP Response Status Code Is 405 @@ -181,10 +181,10 @@ DELETE Logging Jobs - Method not implemented [Documentation] Test ID: 8.3.4.1.14 ... Test title: DELETE Logging Jobs - Method not implemented ... Test objective: The objective is to test that the method is not implemented - ... Pre-conditions: + ... Pre-conditions: none ... Reference: clause 8.5.3.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO - ... Applicability: - ... Post-Conditions: Logging Job is not deleted. + ... Applicability: none + ... Post-Conditions: none DELETE Logging Jobs Check HTTP Response Status Code Is 405 diff --git a/SOL009/NFVMANOLogManagement-API/NFVMANOLogManagementKeywords.robot b/SOL009/NFVMANOLogManagement-API/NFVMANOLogManagementKeywords.robot index 09c6698a..9eb34dba 100644 --- a/SOL009/NFVMANOLogManagement-API/NFVMANOLogManagementKeywords.robot +++ b/SOL009/NFVMANOLogManagement-API/NFVMANOLogManagementKeywords.robot @@ -9,9 +9,7 @@ Library Collections Library JSONSchemaLibrary schemas/ Library Process - *** Keywords *** - Check HTTP Response Status Code Is [Arguments] ${expected_status} ${status}= Convert To Integer ${expected_status} @@ -40,6 +38,10 @@ POST Create a new logging job ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} +Check Post-Condition Logging job is created + GET Logging Jobs + Check HTTP Response Status Code Is 200 + GET Logging Jobs Log Query to GET information about logging jobs. Set Headers {"Accept":"${ACCEPT}"} @@ -106,7 +108,7 @@ GET Logging Jobs with exclude_fields attribute selector ${output}= Output response Set Suite Variable ${response} ${output} -Check LINK in Header +Check HTTP Response Header Contains Link ${linkURL}= Get Value From Json ${response['headers']} $..Link Should Not Be Empty ${linkURL} @@ -140,15 +142,6 @@ Send Post request for individual Logging Job ${output}= Output response Set Suite Variable ${response} ${output} -Check Postcondition Logging Job is not Created - Log Trying to get a new Logging Job - Set Headers {"Accept": "${ACCEPT_JSON}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} - GET ${apiRoot}/${apiName}/${apiMajorVersion}/log_jobs/${logJobId} - ${output}= Output response - Set Suite Variable ${response} ${output} - Check HTTP Response Status Code Is 404 - GET individual Logging Job Log Trying to get a Logging Job Set Headers {"Accept": "${ACCEPT_JSON}"} @@ -219,15 +212,6 @@ Send Post request for Individual Log Report ${output}= Output response Set Suite Variable ${response} ${output} -Check Postcondition Individual Log Report is not Created - Log Trying to get a new report - Set Headers {"Accept": "${ACCEPT_JSON}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} - GET ${apiRoot}/${apiName}/${apiMajorVersion}/log_jobs/${logJobId}/log_reports/${newReportId} - ${output}= Output response - Set Suite Variable ${response} ${output} - Check HTTP Response Status Code Is 404 - Get Individual Log Report Log Trying to get log report Set Headers {"Accept": "${ACCEPT_JSON}"} @@ -270,18 +254,6 @@ Send Delete request for Individual Log Report DELETE ${apiRoot}/${apiName}/${apiMajorVersion}/log_jobs/${logJobId}/log_reports/${reportId} ${output}= Output response Set Suite Variable ${response} ${output} - -Check Postcondition Individual Log Report is Unmodified (Implicit) - Log Check Postcondition Log job is not modified - Get Individual Log Report - Log Check Response matches original report - ${report}= evaluate json.loads('''${response['body']}''') json - Should Be Equal ${origResponse['body']['readyTime']} ${report['readyTime']} - -Check Postcondition Individual Log Report Exists - Log Checking that report still exists - Get Individual Log Report - Check HTTP Response Status Code Is 200 Send Log data Request in Synchronous mode Log Request to compile the logged data into a file Synchronous mode @@ -294,7 +266,7 @@ Send Log data Request in Synchronous mode ${body}= Output response Set Suite Variable &{response} ${body} -Check Operation Occurrence Id +Check HTTP Response Header Contains Location ${vnfLcmOpOccId}= Get Value From Json ${response['headers']} $..Location Should Not Be Empty ${vnfLcmOpOccId} @@ -480,11 +452,6 @@ Send Delete Request for Subscriptions ${output}= Output response Set Suite Variable ${response} ${output} -Check Postcondition Subscriptions Exists - Log Checking that subscriptions exists - Get all Subscriptions - Check HTTP Response Status Code Is 200 - Get Individual Subscription Set headers {"Accept": "${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} @@ -545,21 +512,4 @@ Send Patch request for individual Threshold Set Suite Variable ${origResponse} ${origOutput} PATCH ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} ${output}= Output response - Set Suite Variable @{response} ${output} - -Check Postcondition Subscription is Unmodified (Implicit) - Log Check postconidtion subscription not modified - GET individual Subscription - Log Check Response matches original Subscription - ${subscription}= evaluate json.loads('''${response['body']}''') json - Should Be Equal As Strings ${origResponse['body']['id']} ${subscription.id} - Should Be Equal As Strings ${origResponse['body']['callbackUri']} ${subscription.callbackUri} - -Check Postcondition 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}/${apiMajorVersion}/subscriptions/${newSubscriptionId} - ${output}= Output response - Set Suite Variable @{response} ${output} - Check HTTP Response Status Code Is 404 \ No newline at end of file + Set Suite Variable @{response} ${output} \ No newline at end of file diff --git a/SOL009/NFVMANOLogManagement-API/NotificationEndpoint.robot b/SOL009/NFVMANOLogManagement-API/NotificationEndpoint.robot index 8ebf99df..d4bf4edf 100644 --- a/SOL009/NFVMANOLogManagement-API/NotificationEndpoint.robot +++ b/SOL009/NFVMANOLogManagement-API/NotificationEndpoint.robot @@ -15,7 +15,7 @@ Log Report Avaliable Notification [Documentation] Test ID: 8.3.4.7.1 ... Test title: Log Report Avaliable Notification ... Test objective: The objective is to test the dispatch of Log Report Avaliable Notification when new log report is available in the NFV-MANO, and perform a JSON schema and content validation of the delivered notification. The action that triggers the notification under test is an explicit test step, but it is not performed by the test system. - ... Pre-conditions: + ... Pre-conditions: none ... Reference: clause 8.5.9.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none @@ -23,8 +23,6 @@ Log Report Avaliable Notification Trigger the availability of Log Report (external action) Check Log Report Available Notification Http POST Request Body Json Schema Is LogReportAvailableNotification Check Log Report Available Notification Http POST Request Body notificationType attribute Is LogReportAvailableNotification - - *** Keywords *** Trigger the availability of Log Report (external action) #do nothing diff --git a/SOL009/NFVMANOLogManagement-API/Subscriptions.robot b/SOL009/NFVMANOLogManagement-API/Subscriptions.robot index eb6be70c..c9f2350f 100644 --- a/SOL009/NFVMANOLogManagement-API/Subscriptions.robot +++ b/SOL009/NFVMANOLogManagement-API/Subscriptions.robot @@ -44,11 +44,11 @@ GET Subscriptions with Paged Response ... Pre-conditions: At least one subscription is available in the NFV-MANO. ... Reference: clause 8.5.7.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO - ... Applicability: - ... Post-Conditions: + ... Applicability: none + ... Post-Conditions: none Get all Subscriptions Check HTTP Response Status Code Is 200 - Check LINK in Header + Check HTTP Response Header Contains Link GET Subscriptions - invalid attribute-based filter [Documentation] Test ID: 8.3.4.5.4 @@ -168,7 +168,6 @@ DELETE Subscriptions - Method not implemented ... Reference: clause 8.5.7.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none - ... Post-Conditions: The subscriptions are not deleted by the failed operation + ... Post-Conditions: none Send Delete Request for Subscriptions - Check HTTP Response Status Code Is 405 - Check Postcondition Subscriptions Exists \ No newline at end of file + Check HTTP Response Status Code Is 405 \ No newline at end of file -- GitLab