Commit 22c9cb61 authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

Merge branch '2.7.1-dev-SOL005-NSDManagement-API' into '2.7.1-dev'

SOL005 NSD Management - Implementation of deltas between v2.7.1 and v2.6.1

See merge request !131
parents d78690f3 33f0f756
Loading
Loading
Loading
Loading
+212 −212
Original line number Diff line number Diff line
@@ -134,70 +134,70 @@ DELETE API Version with apiMajorVerion - Method not implemented
POST API Version
    Set Headers    {"Accept":"${ACCEPT_JSON}"} 
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Post    ${apiRoot}/${apiName}/api_version
    Post    ${apiRoot}/${apiName}/api_versions
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	
GET API Version
    Set Headers    {"Accept":"${ACCEPT_JSON}"} 
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Get    ${apiRoot}/${apiName}/api_version
    Get    ${apiRoot}/${apiName}/api_versions
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	
PUT API Version
    Set Headers    {"Accept":"${ACCEPT_JSON}"} 
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Put    ${apiRoot}/${apiName}/api_version
    Put    ${apiRoot}/${apiName}/api_versions
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	
PATCH API Version
    Set Headers    {"Accept":"${ACCEPT_JSON}"} 
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Patch    ${apiRoot}/${apiName}/api_version
    Patch    ${apiRoot}/${apiName}/api_versions
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	
DELETE API Version
    Set Headers    {"Accept":"${ACCEPT_JSON}"} 
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Delete    ${apiRoot}/${apiName}/api_version
    Delete    ${apiRoot}/${apiName}/api_versions
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	
POST API Version with apiMajorVersion
    Set Headers    {"Accept":"${ACCEPT_JSON}"} 
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Post    ${apiRoot}/${apiName}/v1/api_version
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	
GET API Version with apiMajorVersion
    Set Headers    {"Accept":"${ACCEPT_JSON}"} 
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Get    ${apiRoot}/${apiName}/v1/api_version
    Get    ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	
PUT API Version with apiMajorVersion
    Set Headers    {"Accept":"${ACCEPT_JSON}"} 
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Put    ${apiRoot}/${apiName}/v1/api_version
    Put    ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	
PATCH API Version with apiMajorVersion
    Set Headers    {"Accept":"${ACCEPT_JSON}"} 
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Patch    ${apiRoot}/${apiName}/v1/api_version
    Patch    ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	
DELETE API Version with apiMajorVersion
    Set Headers    {"Accept":"${ACCEPT_JSON}"} 
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Delete    ${apiRoot}/${apiName}/v1/api_version
    Delete    ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
Documentation     This Clause defines all the resources and methods provided by the Individual NS descriptor interface. \
Library           JSONSchemaLibrary    schemas/
Resource          environment/variables.txt    # Generic Parameters
Resource          environment/nsDescriptors.txt    # Specific nsDescriptors Parameters
Resource          NSDManagementKeywords.robot
Library           OperatingSystem
Library           JSONLibrary
@@ -36,6 +35,7 @@ GET Individual Network Service Descriptor Information with invalid resource iden
    ...    Post-Conditions: none
    GET Individual Network Service Descriptor Information with invalid resource identifier
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails

Disable Individual Network Service Descriptor   
    [Documentation]    Test ID: 5.3.1.2.3
+2 −3
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
Documentation     This Clause defines all the resources and methods provided by the Iindividual PNF descriptor interface. \
Library           JSONSchemaLibrary    schemas/
Resource          environment/variables.txt    # Generic Parameters
Resource          environment/pnfDescriptors.txt    # Specific nsDescriptors Parameters
Resource          NSDManagementKeywords.robot
Library           JSONLibrary
Library           REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT}    ssl_verify=false
@@ -35,6 +34,7 @@ GET Individual PNF Descriptor Information with invalid resource identifier
    ...    Post-Conditions: none
    GET Individual PNF Descriptor Information with invalid resource identifier
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    problemDetails

Update Individual PNF Descriptor
    [Documentation]    Test ID: 5.3.1.5.3
@@ -50,7 +50,6 @@ Update Individual PNF Descriptor
    Check HTTP Response Body Json Schema Is   PnfdInfoModification
    Check Postcondition PNF Descriptor is modified according to the requested update  


Update Individual PNF Descriptor with HTTP Etag precondition failure
    [Documentation]    Test ID: 5.3.1.5.4
    ...    Test title:  Update Individual PNF Descriptor with HTTP Etag precondition failure
@@ -79,7 +78,7 @@ PUT Individual PNF Descriptor - Method not implemented
    [Documentation]    Test ID: 5.3.1.5.6
    ...    Test title: PUT Individual PNF Descriptor - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not allowed to modify a new PNF Descriptor
    ...    Pre-conditions: One or more PNF Descriptors are onboarded in the NFVO.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.6.3.3 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
+5 −8
Original line number Diff line number Diff line
*** Settings ***
Library           JSONSchemaLibrary    schemas/
Resource          environment/variables.txt    # Generic Parameters
Resource          environment/individualSubscription.txt
Resource          NSDManagementKeywords.robot
Library           OperatingSystem
Library           JSONLibrary
@@ -33,6 +32,7 @@ GET Individual NSD Management Subscription with invalid resource identifier
    ...    Post-Conditions: none
    GET individual NSD Management Subscription with invalid resource identifier
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails

DELETE Individual NSD Management Subscription with invalid resource identifier
    [Documentation]    Test ID: 5.3.1.8.3
@@ -54,23 +54,21 @@ POST Individual NSD Management Subscription - Method not implemented
    ...    Reference: Clause 5.4.9.3.1 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NSD Management Subscription is not created on the NFVO
    ...    Post-Conditions: none
    Send Post request for individual NSD Management Subscription
    Check HTTP Response Status Code Is    405
    Check Postcondition NSD Management Subscription is not Created

PUT Individual NSD Management Subscription - Method not implemented
    [Documentation]    Test ID: 5.3.1.8.5
    ...    Test title: PUT Individual NSD Management Subscription - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not allowed to update an existing NSD Management subscription
    ...    Pre-conditions: At least one NSD Management subscription is available in the NFVO.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.9.3.3 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NSD Management subscription is not modified by the operation
    ...    Post-Conditions: none
    Send Put request for individual NSD Management Subscription
    Check HTTP Response Status Code Is    405
    Check Postcondition NSD Management Subscription is Unmodified (Implicit)

PATCH Individual NSD Management Subscription - Method not implemented
    [Documentation]    Test ID: 5.3.1.8.6
@@ -80,10 +78,9 @@ PATCH Individual NSD Management Subscription - Method not implemented
    ...    Reference: Clause 5.4.9.3.4 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NSD Management subscription is not modified by the operation
    ...    Post-Conditions: none
    Send Patch request for individual NSD Management Subscription
    Check HTTP Response Status Code Is    405
    Check Postcondition NSD Management Subscription is Unmodified (Implicit)

DELETE Individual NSD Management Subscription
    [Documentation]    Test ID: 5.3.1.8.7
+12 −13
Original line number Diff line number Diff line
*** 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
@@ -9,7 +8,7 @@ Library OperatingSystem

*** Test Cases ***
Get single file NSD in Plain Format
    [Documentation]    Test ID: 5.3.1.10.1
    [Documentation]    Test ID: 5.3.1.11.1
    ...    Test title: Get single file NSD in Plain Format
    ...    Test objective: The objective is to test the retrieval of the NSD in plain format within a NSD archive and perform a validation that returned content is in plain format
    ...    Pre-conditions: One or more NSDs are onboarded in the NFVO.
@@ -22,7 +21,7 @@ Get single file NSD in Plain Format
    Check HTTP Response Header Content-Type Is    text/plain

Get NSD in Zip Format
    [Documentation]    Test ID: 5.3.1.10.2
    [Documentation]    Test ID: 5.3.1.11.2
    ...    Test title: Get NSD in Zip Format
    ...    Test objective: The objective is to test the retrieval of the NSD in zip format within a NSD archive and perform a validation that returned content is in zip format
    ...    Pre-conditions: One or more NSDs are onboarded in the NFVO.
@@ -35,7 +34,7 @@ Get NSD in Zip Format
    Check HTTP Response Header Content-Type Is    application/zip

Get single file NSD in Plain or Zip Format 
    [Documentation]    Test ID: 5.3.1.10.3
    [Documentation]    Test ID: 5.3.1.11.3
    ...    Test title: Get single file NSDin Plain or Zip Format
    ...    Test objective: The objective is to test the retrieval of the single file NSD within a NSD archive when requesting Plain or Zip format to NFVO by including both formats in the request, and perform a validation that response is in Plain or Zip format
    ...    Pre-conditions: One or more NSDs are onboarded in the NFVO.
@@ -48,7 +47,7 @@ Get single file NSD in Plain or Zip Format
    Check HTTP Response Header Content-Type Is Any of   text/plain    application/zip
    
Get multi file NSD in Plain or Zip Format
    [Documentation]    Test ID: 5.3.1.10.4
    [Documentation]    Test ID: 5.3.1.11.4
    ...    Test title: Get multi file NSD in Plain or Zip Format
    ...    Test objective: The objective is to test the retrieval of the multi file NSD within a NSD archive 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.
@@ -61,7 +60,7 @@ Get multi file NSD in Plain or Zip Format
    Check HTTP Response Header Content-Type Is    application/zip

Get multi file NSD in Plain Format
    [Documentation]    Test ID: 5.3.1.10.5
    [Documentation]    Test ID: 5.3.1.11.5
    ...    Test title: Get multi file NSD in Plain Format
    ...    Test objective: The objective is to test that the retrieval of the multi file NSD within a NSD archive 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.
@@ -74,7 +73,7 @@ Get multi file NSD in Plain Format
    Check HTTP Response Body Json Schema Is   ProblemDetails

Get NSD Content with invalid resource identifier
    [Documentation]    Test ID: 5.3.1.10.6
    [Documentation]    Test ID: 5.3.1.11.6
    ...    Test title: Get NSD Content with invalid resource identifier
    ...    Test objective: The objective is to test that the retrieval of the NSD within a NSD archive fails when using an invalid resource identifier
    ...    Pre-conditions: none
@@ -87,7 +86,7 @@ Get NSD Content with invalid resource identifier
    Check HTTP Response Body Json Schema Is   ProblemDetails

Get NSD with conflict due to onboarding state
    [Documentation]    Test ID: 5.3.1.10.7
    [Documentation]    Test ID: 5.3.1.11.7
    ...    Test title: Get NSD with conflict due to onboarding state
    ...    Test objective: The objective is to test that the retrieval of the NSD within a NSD archive fails due to a conflict when the NSD is not in onboarding state ONBOARDED 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 NSD is different from ONBOARDED.
@@ -100,7 +99,7 @@ Get NSD with conflict due to onboarding state
    Check HTTP Response Body Json Schema Is   ProblemDetails    
    
Get NSD with security information
    [Documentation]    Test ID: 5.3.1.10.8
    [Documentation]    Test ID: 5.3.1.11.8
    ...    Test title: Get NSD with security information
    ...    Test objective: The objective is to test the retrieval of the NSD within a NSD archive shall include in the ZIP archive the security information when requested with "include_signature" parameter
    ...    Pre-conditions: One or more NSDs are onboarded in the NFVO.
@@ -113,7 +112,7 @@ Get NSD with security information
    Check HTTP Response Header Content-Type Is    application/zip          

POST NSD - Method not implemented
    [Documentation]    Test ID: 5.3.1.10.9
    [Documentation]    Test ID: 5.3.1.11.9
    ...    Test title: POST NSD - Method not implemented
    ...    Test objective: The objective is to test that POST method is not allowed to create a new Network Service Descriptor
    ...    Pre-conditions: none
@@ -125,7 +124,7 @@ POST NSD - Method not implemented
    Check HTTP Response Status Code Is    405
    
PUT NSD - Method not implemented
    [Documentation]    Test ID: 5.3.1.10.10
    [Documentation]    Test ID: 5.3.1.11.10
    ...    Test title: PUT NSD - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not allowed to update Network Service Descriptor
    ...    Pre-conditions: none
@@ -137,7 +136,7 @@ PUT NSD - Method not implemented
    Check HTTP Response Status Code Is    405

PATCH NSD - Method not implemented
    [Documentation]    Test ID: 5.3.1.10.11
    [Documentation]    Test ID: 5.3.1.11.11
    ...    Test title: PATCH NSD - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not allowed to update Network Service Descriptor
    ...    Pre-conditions: none
@@ -149,7 +148,7 @@ PATCH NSD - Method not implemented
    Check HTTP Response Status Code Is    405

DELETE NSD - Method not implemented
    [Documentation]    Test ID: 5.3.1.10.12
    [Documentation]    Test ID: 5.3.1.11.12
    ...    Test title: DELETE NSD - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not allowed to delete Network Service Descriptor
    ...    Pre-conditions: none
Loading