Skip to content

Commit 5055941

Browse files
committed
Merge branch 'release/4.3.0'
2 parents cb2e678 + 9243e83 commit 5055941

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88

99
## [Unreleased]
10+
## [4.3.0](https://github.com/cloudogu/ces-build-lib/releases/tag/4.3.0) - 2025-08-21
11+
### Changed
12+
- Updates the BATS shell test image to 1.12 which supports the `--report-formatter` switch
1013

1114
## [4.2.0](https://github.com/cloudogu/ces-build-lib/releases/tag/4.2.0) - 2025-04-02
1215
### Changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<groupId>com.cloudogu.ces</groupId>
2020
<artifactId>ces-build-lib</artifactId>
2121
<name>ces-build-lib</name>
22-
<version>4.2.0</version>
22+
<version>4.3.0</version>
2323

2424

2525
<properties>

src/com/cloudogu/ces/cesbuildlib/Bats.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Bats {
1313
def defaultSetupConfig = [
1414
bats_base_image : "bats/bats",
1515
bats_custom_image: "cloudogu/bats",
16-
bats_tag : "1.2.1"
16+
bats_tag : "1.12.0"
1717
]
1818

1919
Bats(script, docker) {

test/com/cloudogu/ces/cesbuildlib/BatsTest.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class BatsTest {
3737
// given
3838
Docker dockerMock = mock(Docker.class)
3939
Docker.Image imageMock = mock(Docker.Image.class)
40-
when(dockerMock.build("cloudogu/bats:1.2.1", "--build-arg=BATS_BASE_IMAGE=bats/bats --build-arg=BATS_TAG=1.2.1 ./build/make/bats")).thenReturn(imageMock)
40+
when(dockerMock.build("cloudogu/bats:1.12.0", "--build-arg=BATS_BASE_IMAGE=bats/bats --build-arg=BATS_TAG=1.12.0 ./build/make/bats")).thenReturn(imageMock)
4141
when(imageMock.inside(anyString(), any())).thenAnswer(new Answer<Object>() {
4242
@Override
4343
Object answer(InvocationOnMock invocation) throws Throwable {
@@ -53,9 +53,9 @@ class BatsTest {
5353

5454
// then
5555
assertThat(scriptMock.actualEcho[0].trim()).contains("Executing bats tests with config:")
56-
assertThat(scriptMock.actualEcho[1].trim()).contains("[bats_base_image:bats/bats, bats_custom_image:cloudogu/bats, bats_tag:1.2.1]")
56+
assertThat(scriptMock.actualEcho[1].trim()).contains("[bats_base_image:bats/bats, bats_custom_image:cloudogu/bats, bats_tag:1.12.0]")
5757

58-
verify(dockerMock).build("cloudogu/bats:1.2.1", "--build-arg=BATS_BASE_IMAGE=bats/bats --build-arg=BATS_TAG=1.2.1 ./build/make/bats")
58+
verify(dockerMock).build("cloudogu/bats:1.12.0", "--build-arg=BATS_BASE_IMAGE=bats/bats --build-arg=BATS_TAG=1.12.0 ./build/make/bats")
5959
verify(imageMock).inside(eq("--entrypoint='' -v :/workspace -v /testdir:/usr/share/webapps"), any())
6060

6161
assertEquals("true", scriptMock.actualJUnitFlags["allowEmptyResults"].toString())

0 commit comments

Comments
 (0)