Commit d6a71436 authored by Eisha Ayaz's avatar Eisha Ayaz Committed by Giacomo Bernini
Browse files

[test-new][SOL003][VNF-LCM][v5.2.1][7.3.1.10.11 Test-ID] Implement new test...

[test-new][SOL003][VNF-LCM][v5.2.1][7.3.1.10.11 Test-ID] Implement new test case for new attribute "extCpsDeletion" according to FEAT21
parent 528b9d83
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -134,3 +134,18 @@ POST Change external VNF connectivity - Unauthorized
    POST Change External VNF Connectivity - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
POST Change external VNF connectivity - using extCpsDeletion 
    [Documentation]    Test ID: 7.3.1.10.11
    ...    Test title: POST Change external VNF connectivity 
    ...    Test objective: The objective is to test that POST method trigger a change in VNF external connectivity using extCpsDeletion
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.11.3.1 - ETSI GS NFV-SOL 003 [1] v5.2.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: in response header Location shall not be null         
    POST Change External VNF Connectivity - using extCpsDeletion
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains    Location
    Check Individual VNF LCM operation occurrence operationState is    STARTING
    Check Operation Occurrence Resource Available
 No newline at end of file
+11 −0
Original line number Diff line number Diff line
@@ -362,6 +362,17 @@ POST Change External VNF Connectivity
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}

POST Change External VNF Connectivity - using extCpsDeletion
    Log    Trying to change the external connectivity of a VNF instance using extCpsDeletion.
    Set Headers  {"Accept":"${ACCEPT}"}
    Set Headers    {"Version": "${API_VERSION}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    ${body}=    Get File    jsons/changeExtVnfConnectivityRequestExtCpsDeletion.json
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}/change_ext_conn    ${body}
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}

POST Change external VNF connectivity - VNF instance not found
    Log    Trying to change the external connectivity of a non-existing VNF instance.
    Set Headers  {"Accept":"${ACCEPT}"}
+65 −0
Original line number Diff line number Diff line
{{
  "extVirtualLinks": [
    {
      "id": "string",
      "vimConnectionId": "string",
      "resourceProviderId": "string",
      "resourceId": "string",
      "extCpsDeletion": [
        {
          "cpdId": "string",
          "cpConfig": [
            {
              "cpInstanceId": "string",
              "linkPortId": "string",
              "cpProtocolData": [
                {
                  "layerProtocol": "IP_OVER_ETHERNET",
                  "ipOverEthernet": {
                    "macAddress": "string",
                    "ipAddresses": [
                      {
                        "type": "IPV4",
                        "fixedAddresses": [
                          "string"
                        ],
                        "numDynamicAddresses": 0,
                        "addressRange": {
                          "minAddress": "string",
                          "maxAddress": "string"
                        },
                        "subnetId": "string"
                      }
                    ]
                  }
                }
              ]
            }
          ]
        }
      ],
      "extLinkPorts": [
        {
          "id": "string",
          "resourceHandle": {
            "vimConnectionId": "string",
            "resourceProviderId": "string",
            "resourceId": "string",
            "vimLevelResourceType": "string"
          }
        }
      ]
    }
  ],
  "vimConnectionInfo": [
    {
      "id": "string",
      "vimId": "string",
      "vimType": "string",
      "interfaceInfo": {},
      "accessInfo": {},
      "extra": {}
    }
  ],
  "additionalParams": {}
}}
 No newline at end of file