summaryrefslogtreecommitdiffstats
path: root/csarvalidation/src/test
diff options
context:
space:
mode:
authorAvinashS <avinash.s@huawei.com>2017-10-26 14:27:18 +0530
committerAvinashS <avinash.s@huawei.com>2017-10-26 14:27:18 +0530
commitd6f2d611538a5379e340aab26a51a0782555ceec (patch)
tree5500221e4a5e0fdced3f4d53eeacf7b008b3f93d /csarvalidation/src/test
parent4dfdbee2c1d34f0f6584d624a213fc44389cd430 (diff)
Add custom validation
To support custom CSAR structure for Amsterdam, add support with schema based validation.This can scale to future enhancements and hardening of validation. Change-Id: I8a20dd2377dafc94346412a8601f1299fa4600c8 Issue-Id: VNFSDK-117 Signed-off-by: AvinashS <avinash.s@huawei.com>
Diffstat (limited to 'csarvalidation/src/test')
-rw-r--r--csarvalidation/src/test/java/org/onap/validation/csarvalidationtest/CsarValidatorTest.java2
-rw-r--r--csarvalidation/src/test/resources/sample.csarbin5144 -> 0 bytes
2 files changed, 1 insertions, 1 deletions
diff --git a/csarvalidation/src/test/java/org/onap/validation/csarvalidationtest/CsarValidatorTest.java b/csarvalidation/src/test/java/org/onap/validation/csarvalidationtest/CsarValidatorTest.java
index 826decb..cc1ada7 100644
--- a/csarvalidation/src/test/java/org/onap/validation/csarvalidationtest/CsarValidatorTest.java
+++ b/csarvalidation/src/test/java/org/onap/validation/csarvalidationtest/CsarValidatorTest.java
@@ -176,7 +176,7 @@ public class CsarValidatorTest {
private void testValidateToscaMeta(CsarValidator cv) {
- boolean result = CsarValidator.validateToscaMeta();
+ boolean result = CsarValidator.validateAndScanToscaMeta();
assertEquals(true, result == true);
}
diff --git a/csarvalidation/src/test/resources/sample.csar b/csarvalidation/src/test/resources/sample.csar
deleted file mode 100644
index 2bcb631..0000000
--- a/csarvalidation/src/test/resources/sample.csar
+++ /dev/null
Binary files differ