From 7ceb6f99ee7490cebc0e2641acfe453029875cc0 Mon Sep 17 00:00:00 2001 From: davsad Date: Tue, 19 Jan 2021 10:57:11 +0000 Subject: 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 --- .../test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common-app-api/src/test/java/org') 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 @@ -901,6 +901,11 @@ final String testArtifactDisplayName="test=notValid=Label"; assertFalse(result); } + @Test + public void checkValidateArtifactLabelReturnsTrueWithAtSymbol() { + assertTrue(ValidationUtils.validateArtifactLabel("test@label")); + } + @Test public void checkValidateConsumerNameReturnsTrueIfLabelIsValid() { final String testConsumerName = "testConsumerName"; -- cgit 1.2.3-korg