aboutsummaryrefslogtreecommitdiffstats
path: root/common-app-api/src/test/java
diff options
context:
space:
mode:
authordavsad <david.sadlier@est.tech>2021-01-19 10:57:11 +0000
committerChristophe Closset <christophe.closset@intl.att.com>2021-01-30 09:21:27 +0000
commit7ceb6f99ee7490cebc0e2641acfe453029875cc0 (patch)
tree0b4a28ccae9db8cf5ca62bab4792603aff6b27d4 /common-app-api/src/test/java
parent042fd65934cebd6447ba3f08571d4bf8a635b665 (diff)
Fix onboarding artifact name error
Allowing for @ in Yang files names e.g. samplefile@2021-01-19.yang Issue-ID: SDC-3414 Change-Id: I20b1f5fceeace24709799b3953d82238bc2b85df Signed-off-by: davsad <david.sadlier@est.tech>
Diffstat (limited to 'common-app-api/src/test/java')
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java
index 467f1cf545..2d5122a13f 100644
--- a/common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java
@@ -902,6 +902,11 @@ final String testArtifactDisplayName="test=notValid=Label";
}
@Test
+ public void checkValidateArtifactLabelReturnsTrueWithAtSymbol() {
+ assertTrue(ValidationUtils.validateArtifactLabel("test@label"));
+ }
+
+ @Test
public void checkValidateConsumerNameReturnsTrueIfLabelIsValid() {
final String testConsumerName = "testConsumerName";