summaryrefslogtreecommitdiffstats
path: root/test-apis-ci/pom.xml
diff options
context:
space:
mode:
authordekstroza <dejan.kitic@ericsson.com>2018-05-18 14:42:24 +0100
committerMichael Lando <ml636r@att.com>2018-08-26 22:58:49 +0000
commit37843cb3c1765bd5263e3c02f5b14ffa53041e1d (patch)
tree0fcd4f0504c6720924bbf2a0bdc92fed0fee1719 /test-apis-ci/pom.xml
parent1b700c8606f319cbda416a8abb70ea16dceb7a29 (diff)
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 <dejan.kitic@ericsson.com>
Diffstat (limited to 'test-apis-ci/pom.xml')
-rw-r--r--test-apis-ci/pom.xml37
1 files changed, 37 insertions, 0 deletions
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 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>com.github.sylvainlaurent.maven</groupId>
+ <artifactId>yaml-json-validator-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>validate</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>validate</goal>
+ </goals>
+ <configuration>
+ <validationSets>
+ <validationSet>
+ <includes>
+ <include>src/main/resources/**/*.y*ml</include>
+ <include>src/test/resources/**/*.y*ml</include>
+ </includes>
+ <excludes>
+ <exclude>src/test/resources/CI/tests/importToscaResourceByCreateUrl/occurencyFalure*.y*ml</exclude>
+ <exclude>src/test/resources/CI/tests/importToscaResourceByCreateUrl/noContent*.y*ml</exclude>
+ <exclude>src/test/resources/CI/tests/HeatDeploymentArtifacts/invalid*.y*ml</exclude>
+ </excludes>
+ </validationSet>
+ <validationSet>
+ <includes>
+ <include>src/main/resources/**/*.json</include>
+ <include>src/test/resources/**/*.json</include>
+ </includes>
+ <excludes>
+ <exclude>src/test/resources/CI/tests/HeatDeploymentArtifacts/invalid*.json</exclude>
+ </excludes>
+ </validationSet>
+ </validationSets>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<profiles>