Versions Compared

Key

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

...

Code Block
vnf_folder
├── /templates
|   ├──└── base.yaml
|   ├──└── base.env
|   └── incremental_0.yaml
|   └── incremental_0.env
|   └── ...
├── /preloads
|   ├──└── base_preload.json
|   └── incremental_0_preload.json
|   └── ...
└── vnf-details.json

...

The testsuite takes about 10-15 minutes for a simple VNF, and will take longer for a more complicated VNF.


Results

Once the testsuite is finished, it will create a directory and tarball in /tmp (the name of the directory and file is shown at the end of the stdout of the script). There will be a results.json in that directory that has the ultimate outcome of the test, in the structure shown below.

results.json

...


Code Block
{
    "vnf_checksum": "xxxxafc57604a3b3b7401d5b8648328807b594d7711355a2315095ac57db4c334a50", 
    "build_tag": "vnf-validation-4674953270", 
    "version": "2019.09", 
    "test_date": "2019-0809-2604 2217:3850:4710.884575", 
    "duration": 867437.973002, 
    "vnf_type": "heat", 
    "testcases_list": [
        {
            "mandatory": "true", 
            "name": "onap-vvp.validate.heat", 
            "result": "PASS", 
            "objective": "onap heat template validation", 
            "sub_testcase": [], 
            "logportal_key_file": "validation-scriptsreport.json"
        }, 
        {
            "objectivemandatory": "onap vnf lifecycle validationtrue", 
            "name": "sub_testcase": [onap-vvp.lifecycle_validate.heat", 
                {"result": "PASS", 
            "objective": "onap vnf lifecycle validation", 
            "logsub_filetestcase": "log.html", [
                {
                    "name": "model-and-distribute", 
                    "result": "PASS"
                }, 
                {
                    "log_filename": "log.htmlinstantiation", 
                    "nameresult": "instantiationPASS",
                }
    "result": "PASS"
       ], 
        },
    "portal_key_file": "log.html"
          }, {
        {
            "log_filemandatory": "stack_report.jsontrue", 
                    "name": "stack"name": "stack_validation",
         
            "result": "PASS"
                }
      , 
      ],
            "mandatory"objective": "trueonap vnf openstack validation", 
            "namesub_testcase": "onap-vvp.lifecycle_validate.heat",[], 
            "resultportal_key_file": "PASSstack_report.json"
        }
    ]
}


If the result is "PASS", that means the testsuite was successful and the tarball is ready for submission to the OVP portal.

...