-
Bug
-
Resolution: Done
-
Medium
-
Guilin Release
-
None
REST method GET "
{vnfsdk_ip}:8702/onapapi/vnfsdk-marketplace/v1/vtp/executions?requestId=
{requestId}" is returning different JSON structures depending on how it is called:
- In case of single rule validation:
"results": [ { "passed": true, "vnfreqName": "SOL004", "description": "V2.4.1 (2018-02)", "errors": [], "warnings": [] }, ... ]
- In case of multiple rules validation (target - for single rule too!):
"results": { "vnf": { "name": "RadioNode", "vendor": "Ericsson", "version": "1.0", "type": "TOSCA", "mode": "WITH_TOSCA_META_DIR" }, "date": "Wed Oct 14 09:10:25 UTC 2020", "criteria": "FAILED", "results": [ { "passed": true, "vnfreqName": "SOL004", "description": "V2.4.1 (2018-02)", "errors": [], "warnings": [] }, ...
Target:
We need to synchronize the outputs.
Always use the output valid for multiple rules, and in case of a single rule use-case – just report a single result in "results" array.
- clones
-
VNFSDK-697 Get method with request id returns JSON parsing error
- Closed