Fix SOnarQube bug on Regex 71/118971/3
authorToineSiebelink <toine.siebelink@est.tech>
Tue, 9 Mar 2021 15:27:06 +0000 (15:27 +0000)
committerToine Siebelink <toine.siebelink@est.tech>
Wed, 10 Mar 2021 10:45:17 +0000 (10:45 +0000)
commit56249583ba84956886454ec0b276c743161337ac
treec018fcc9a9c24073e2769eaeb761736a5e3c7442
parent2968b0e0037fa238c13290df43b2306524f5271b
Fix SOnarQube bug on Regex

- Regex included unlimitted repetition is now limited to 99
99 nested yang container should sufice, in my experience in 5G 20-30 levels is the max I have seen
we can always record it as a 'known limitation'
-tried to improve the redability of the Regex using constant names
- Added edge-case senarios testing related to query regex

Issue-ID: CPS-89

Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Ic3442bc8ca22fe66976948f9913e033245a0e41c
cps-ri/src/main/java/org/onap/cps/spi/query/CpsPathQuery.java
cps-ri/src/test/groovy/org/onap/cps/spi/query/CpsPathQuerySpec.groovy