Fixed validation of resource-assignment-params.config-assign 00/93700/1
authorebo <eliezio.oliveira@est.tech>
Fri, 16 Aug 2019 13:18:47 +0000 (13:18 +0000)
committerebo <eliezio.oliveira@est.tech>
Fri, 16 Aug 2019 13:18:47 +0000 (13:18 +0000)
commitff445e6d950048c092c0a7ccd8a0a04cb18869b5
treef73f0ccbe16c1d74c2b230b7990c4fc8b7505973
parent11dbd17296d9572a04bb4e3aea9063c2d1ee3f1d
Fixed validation of resource-assignment-params.config-assign

- In order to preserve the validation of the whole BPP response, I added a
  normalization step that will convert any non-JSON part of the response
  into a JSON-equivalent representation.
  This normalization is carried out by the JSLT library that provides many
  JSON manipulations using a JSON-like specification.
  See https://github.com/schibsted/jslt for more details.

- Fix UAT not being run by maven
  The Surefire plugin does accept '*Tests.java' but DOESN'T '*Tests.kt'!
  The UAT test class was renamed to use the 'Test' suffix only.

- Improved maintainability of UAT-Engine by switching from explicitly field
  handling to POJO-based parsing using Jackson along with SnakeYaml.
  UAT-related POJOs created on new module UatDefinition.kt

- Added a Protobuf-like description of an UAT YAML document.

Change-Id: Id1178489caa4e97808747a99bc9324fc84e9b96e
Issue-ID: CCSDK-1620
Signed-off-by: ebo <eliezio.oliveira@est.tech>
components/model-catalog/blueprint-model/uat-blueprints/README.md
components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Tests/uat.yaml
ms/blueprintsprocessor/application/pom.xml
ms/blueprintsprocessor/application/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/BlueprintsAcceptanceTest.kt [moved from ms/blueprintsprocessor/application/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/BlueprintsAcceptanceTests.kt with 64% similarity]
ms/blueprintsprocessor/application/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/ExtendedTemporaryFolder.kt
ms/blueprintsprocessor/application/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/JsonNormalizer.kt [new file with mode: 0644]
ms/blueprintsprocessor/application/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/PathDeserializer.kt [new file with mode: 0644]
ms/blueprintsprocessor/application/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/UatDefinition.kt [new file with mode: 0644]