summaryrefslogtreecommitdiffstats
path: root/models-base/src/test
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-12-22 10:10:40 -0500
committerJim Hahn <jrh3@att.com>2020-12-22 10:14:01 -0500
commit7b5adac8cdcf61522644e201c50bb2ff6c4c72c8 (patch)
treef5c1b2130d390a06b7f6c3d83d543ded80d4d278 /models-base/src/test
parent12fce55a66848bcc7f71430324b3a9051b8ce0d4 (diff)
Allow wild-card in supportedPolicyTypes
Changes to the validation code broke the validation check for the supportedPolicyTypes field in PdpSubGroup - it no longer supports wild- cards in the name. Modified the validation annotation in PfSearchableKey to allow wild-card names. Issue-ID: POLICY-2648 Change-Id: Ibd2853025ce72ed88697dd9a7d6d5eed2b28475e Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'models-base/src/test')
-rw-r--r--models-base/src/test/java/org/onap/policy/models/base/PfSearchableKeyTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/models-base/src/test/java/org/onap/policy/models/base/PfSearchableKeyTest.java b/models-base/src/test/java/org/onap/policy/models/base/PfSearchableKeyTest.java
index e3a0e3338..f4f4bacb7 100644
--- a/models-base/src/test/java/org/onap/policy/models/base/PfSearchableKeyTest.java
+++ b/models-base/src/test/java/org/onap/policy/models/base/PfSearchableKeyTest.java
@@ -21,6 +21,7 @@
package org.onap.policy.models.base;
+import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
@@ -73,5 +74,6 @@ public class PfSearchableKeyTest {
PfSearchableKey someKey4 = new PfSearchableKey("my-name.*", VERSION001);
assertEquals("my-name.*", someKey4.getName());
assertEquals(VERSION001, someKey4.getVersion());
+ assertThat(someKey4.validate("").getResult()).isNull();
}
}