From a9c75115004aa3a063fcceaacec7c82b1c2cf959 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Jul 2023 06:42:42 +0000 Subject: [PATCH 1/2] build(deps): bump spring.boot.version from 2.7.8 to 3.1.1 Bumps `spring.boot.version` from 2.7.8 to 3.1.1. Updates `spring-boot-dependencies` from 2.7.8 to 3.1.1 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](https://github.com/spring-projects/spring-boot/compare/v2.7.8...v3.1.1) Updates `spring-boot-maven-plugin` from 2.7.8 to 3.1.1 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](https://github.com/spring-projects/spring-boot/compare/v2.7.8...v3.1.1) --- updated-dependencies: - dependency-name: org.springframework.boot:spring-boot-dependencies dependency-type: direct:production update-type: version-update:semver-major - dependency-name: org.springframework.boot:spring-boot-maven-plugin dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 9555870d..f65aeadf 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ 17 1.16.1 - 2.7.8 + 3.1.1 From 0df91f59bdb3e5df8dcf6ec4001909a40072f842 Mon Sep 17 00:00:00 2001 From: Philipp Ossler Date: Tue, 11 Jul 2023 09:01:04 +0200 Subject: [PATCH 2/2] test: fix expected engine version in the test case --- .../java/org/camunda/feel/playground/VersionApiTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/camunda/feel/playground/VersionApiTest.java b/src/test/java/org/camunda/feel/playground/VersionApiTest.java index 9efc1537..614c444f 100644 --- a/src/test/java/org/camunda/feel/playground/VersionApiTest.java +++ b/src/test/java/org/camunda/feel/playground/VersionApiTest.java @@ -7,10 +7,12 @@ */ package org.camunda.feel.playground; +import static org.assertj.core.api.Assertions.assertThat; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import org.camunda.feel.FeelEngine; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; @@ -25,8 +27,13 @@ public final class VersionApiTest { @Test void shouldReturnVersion() throws Exception { + var expectedVersion = FeelEngine.class.getPackage().getImplementationVersion(); + assertThat(expectedVersion) + .describedAs("The version should match the pattern `x.y.z`") + .matches("(\\d+).(\\d+).(\\d+)"); + mvc.perform(get("/api/v1/version")) .andExpect(status().isOk()) - .andExpect(content().json("{'feelEngineVersion': '1.16.0'}")); + .andExpect(content().json("{'feelEngineVersion': '" + expectedVersion + "'}")); } }