skuzzle / cmp

Create and share public counters
https://countmy.pizza
MIT License
6 stars 1 forks source link

Cloud contract tests don't run with spring-boot 2.5.1 #90

Open skuzzle opened 3 years ago

skuzzle commented 3 years ago
Error:  validate_createTallySheet  Time elapsed: 0.137 s  <<< ERROR!
java.lang.RuntimeException: com.jayway.jsonpath.InvalidPathException: Failed to parse filter: [?(@.['createDateUTC'] =~ /([0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])\.\d+/)], error on position: 26, char: /
    at de.skuzzle.cmp.counter.domain.TallyTest.validate_createTallySheet(TallyTest.java:38)
Caused by: com.jayway.jsonpath.InvalidPathException: Failed to parse filter: [?(@.['createDateUTC'] =~ /([0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])\.\d+/)], error on position: 26, char: /
    at de.skuzzle.cmp.counter.domain.TallyTest.validate_createTallySheet(TallyTest.java:38)

A temporary fix is to override the json-path version. Spring comes with 2.5.0 but 2.6.0 seems to work:

<json-path.version>2.6.0</json-path.version>
skuzzle commented 3 years ago

Still doesn't work with spring-boot 2.5.4