Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinetrue
stylecircle

...

TOSCA Based VNF validation in VTP - ElAlto

Architecture

Image RemovedImage Added

Sequence diagram of VNF validation

Refer here

VTP LCM test case used for testing the VNF life-cycle

  1. Create new java package for VNF-LCM testing in VNFSDK
  2. Create new scenario in VTP called "lfn-ovp-vnf"
  3. Create new testsuite in VTP named "vnf-validation" under scenario "lfn-ovp-vnf"
  4. Add new test case with name  "onap-vnf-lcm" under testsuite "vnf-validation" with following details
    1. Execution block : use script to run the LCM testing using ONAP CLI
    2. Inputs: Update the script to take  following additional parameters as arguments if not available from config file 

      parameter namedescriptionconfig entryactionnotes
      request_idOn every testing, to track the progress and results, this parameter is addedNA
      1. update all oclip command used in the script with --request-id parameter with value given using this request-id.

      vnf_csar_path

      TOSCA VNF CSAR used for testing. 

      SDC will upload this file to VTP using execute API and VTP will store it in local file system and use it while invoking the script with this parameter.

      vnfs.vgw.path

      1. comment this property in config file
      2. update the script to use the value given using this parameter instead from config file

      ns_csar_path

      TOSCA NSCSAR used for testing. 

      SDC will upload this file to VTP using execute API and VTP will store it in local file system and use it while invoking the script with this parameter.

      vnfs.vgw.path

      1. comment this property in config file
      2. update the script to use the value given using this parameter instead from config file

      Optional. 


      vnf_csar_id dynamically generated CSAR ID (uuid)ns. csar-idTBD Not required as input. After step-3, CLI will find the csar id and use it step 6.
      ns_csar_iddynamically generated CSAR ID (uuid)vnfs.vgw.csar-idTBD


    3. Outputs: Update the script to produce following outputs


      Outputdescriptionactionnotes
      vnf-idVNF IDupdate the script to generate the output json with this value

      ns-idNS IDupdate the script to generate the output json with this valueTBD

      vnf_statusVNF statusupdate the script to report the status of VNF stretch goal
      ns_statusNSstatusupdate the script to report the status of NSstretch goal

      NOTE: Once VNF is created, how to test the health of VNF,  these outputs would be useful, if VFC provides health check REST API for given VNF 

    4. Errors: Update  the script to write the errors in error stream, so that OCLIP will automatically read it.  Use the format : <error-code>: <error-message>

...

as LCM test case will take considerable time, its important for the user to track the progress of testing. so Update VTP executions API to retrieve the test case progress  using query parameter 'request-id'.

/v1/vtp/executions?request-id=<uuid>

-- Already supported

Options

Currently every action is available as indivual test cases and to run complete LCM operation including on-boarding and instantiation, this automation script to be modelled as test case, so complete LCM actions could be executed in one shot. so OVP can invoke these test cases either direclty invoking given LCM action or as a whole operation.

...