aboutsummaryrefslogtreecommitdiffstats
path: root/cps-ncmp-service/src/test
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2024-11-13 14:48:49 +0000
committerGerrit Code Review <gerrit@onap.org>2024-11-13 14:48:49 +0000
commitefca6856f4f9654169e4c077c4da1f674b7b7099 (patch)
treef8236ee1b070d48cdabe47d749882f8814593500 /cps-ncmp-service/src/test
parent00da0afbadf37d80b8e17a60880ec5f8d1756b74 (diff)
parentaf283af05c69a93304935e152d7c83a23ac82b1e (diff)
Merge "Hashmark support in 3gpp objects"
Diffstat (limited to 'cps-ncmp-service/src/test')
-rw-r--r--cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/utils/AlternateIdMatcherSpec.groovy14
1 files changed, 9 insertions, 5 deletions
diff --git a/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/utils/AlternateIdMatcherSpec.groovy b/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/utils/AlternateIdMatcherSpec.groovy
index a497b4554a..bd1faa2705 100644
--- a/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/utils/AlternateIdMatcherSpec.groovy
+++ b/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/utils/AlternateIdMatcherSpec.groovy
@@ -42,11 +42,15 @@ class AlternateIdMatcherSpec extends Specification {
expect: 'querying for alternate id a matching result found'
assert objectUnderTest.getCmHandleDataNodeByLongestMatchingAlternateId(targetAlternateId, '/') != null
where: 'the following parameters are used'
- scenario | targetAlternateId
- 'exact match' | '/a/b'
- 'parent match' | '/a/b/c'
- 'grand parent match' | '/a/b/c/d'
- 'trailing separator match' | '/a/b/'
+ scenario | targetAlternateId
+ 'exact match' | '/a/b'
+ 'parent match' | '/a/b/c'
+ 'grand parent match' | '/a/b/c/d'
+ 'trailing separator match' | '/a/b/'
+ 'trailing hash' | '/a/b#q'
+ 'trailing hash parent match' | '/a/b/c#q'
+ 'trailing hash grand parent match' | '/a/b/c/d#q'
+ 'trailing separator then hash match' | '/a/b/#q'
}
def 'Attempt to find longest alternate id match without any matches.'() {