From 37843cb3c1765bd5263e3c02f5b14ffa53041e1d Mon Sep 17 00:00:00 2001 From: dekstroza Date: Fri, 18 May 2018 14:42:24 +0100 Subject: json/yaml validation for models Introduced yaml-json-validator-maven-plugin a. Runs in validate phase b. For now only validate /import/tosca subfolders c. Validates both yml and json files Change-Id: I53513321c4378485dd821c251de5555050313911 Issue-ID: SDC-1343 Signed-off-by: dekstroza --- test-apis-ci/pom.xml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'test-apis-ci/pom.xml') diff --git a/test-apis-ci/pom.xml b/test-apis-ci/pom.xml index ac3cdd731d..14d6611fc0 100644 --- a/test-apis-ci/pom.xml +++ b/test-apis-ci/pom.xml @@ -437,6 +437,43 @@ + + com.github.sylvainlaurent.maven + yaml-json-validator-maven-plugin + + + validate + validate + + validate + + + + + + src/main/resources/**/*.y*ml + src/test/resources/**/*.y*ml + + + src/test/resources/CI/tests/importToscaResourceByCreateUrl/occurencyFalure*.y*ml + src/test/resources/CI/tests/importToscaResourceByCreateUrl/noContent*.y*ml + src/test/resources/CI/tests/HeatDeploymentArtifacts/invalid*.y*ml + + + + + src/main/resources/**/*.json + src/test/resources/**/*.json + + + src/test/resources/CI/tests/HeatDeploymentArtifacts/invalid*.json + + + + + + + -- cgit 1.2.3-korg