diff options
author | Tal Gitelman <tal.gitelman@att.com> | 2018-11-13 19:37:19 +0200 |
---|---|---|
committer | Tal Gitelman <tal.gitelman@att.com> | 2018-11-13 19:38:50 +0200 |
commit | f41951033204f43882337533b4265790c598c4e1 (patch) | |
tree | e83b891cb4dda6e0f1bfe0103b2415fa519541a4 /common-app-api | |
parent | 796d72125bc961822db0b01d2fc086c62fe12266 (diff) |
vCPE Tunnel XConn : allottedResourcEtype is
- failing to match SO trigger
Change-Id: I5e56408f619487c436e7547c0935b3791d24016d
Issue-ID: SDC-1909
Signed-off-by: Tal Gitelman <tal.gitelman@att.com>
Diffstat (limited to 'common-app-api')
-rw-r--r-- | common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java | 2 | ||||
-rw-r--r-- | common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java b/common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java index 1e4792f4ce..0ee097b979 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java @@ -96,7 +96,7 @@ public class ValidationUtils { public final static Integer ARTIFACT_LABEL_LENGTH = 255; public final static Pattern ARTIFACT_DISPLAY_NAME_PATTERN = Pattern.compile("^[a-zA-Z0-9][a-zA-Z0-9 &\\.'#=:@_\\-+]+$"); public final static Pattern CATEGORY_LABEL_PATTERN = Pattern.compile("^[a-zA-Z0-9][a-zA-Z0-9 &\\.'#=:@_\\-+]+$"); - public final static Integer CATEGORY_LABEL_MIN_LENGTH = 4; + public final static Integer CATEGORY_LABEL_MIN_LENGTH = 3; public final static Integer CATEGORY_LABEL_MAX_LENGTH = 25; public final static Pattern COMPONENT_NAME_DELIMETER_PATTERN = Pattern.compile("[\\.\\-\\_]+"); diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java index 51490a6827..e59f6a061f 100644 --- a/common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java +++ b/common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java @@ -421,7 +421,7 @@ public class CommonUtilsTest { assertTrue(ValidationUtils.validateCategoryDisplayNameLength("Netele-2_3#456&+.'=:@@@@@")); assertTrue(ValidationUtils.validateCategoryDisplayNameLength("Nete")); assertFalse(ValidationUtils.validateCategoryDisplayNameLength("Netele-2_3#456&+.'=:@@@@@1")); - assertFalse(ValidationUtils.validateCategoryDisplayNameLength("Net")); + assertFalse(ValidationUtils.validateCategoryDisplayNameLength("Ne")); assertFalse(ValidationUtils.validateCategoryDisplayNameLength(null)); } |