Skip to content

Commit 65c489f

Browse files
committed
Updated to use postgres:16.1 in acceptance tests
1 parent 6f4f3c0 commit 65c489f

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

config/localresource/custom-namespace/kubegres.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
spec:
77

88
replicas: 3
9-
image: postgres:16.0
9+
image: postgres:16.1
1010
port: 5432
1111

1212
#imagePullSecrets:

config/localresource/default-namespace/kubegres.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
spec:
77

88
replicas: 3
9-
image: postgres:16.0
9+
image: postgres:16.1
1010
#port: 5432
1111

1212
database:

internal/test/resourceConfigs/kubegres.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
spec:
99

1010
replicas: 3
11-
image: postgres:16.0
11+
image: postgres:16.1
1212
port: 5432
1313

1414
database:

internal/test/spec_image_test.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,44 +70,44 @@ var _ = Describe("Setting Kubegres spec 'image'", func() {
7070
})
7171
})
7272

73-
Context("GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0-bullseye' and spec 'replica' set to 3 and later 'image' is updated to 'postgres:16.0'", func() {
73+
Context("GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0' and spec 'replica' set to 3 and later 'image' is updated to 'postgres:16.1'", func() {
7474

75-
It("GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0-bullseye' and spec 'replica' set to 3 THEN 1 primary and 2 replica should be created with spec 'image' set to 'postgres:16.0'", func() {
75+
It("GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0' and spec 'replica' set to 3 THEN 1 primary and 2 replica should be created with spec 'image' set to 'postgres:16.1'", func() {
7676

77-
log.Print("START OF: Test 'GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0-bullseye' and spec 'replica' set to 3")
77+
log.Print("START OF: Test 'GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0' and spec 'replica' set to 3")
7878

79-
test.givenNewKubegresSpecIsSetTo("postgres:16.0-bullseye", 3)
79+
test.givenNewKubegresSpecIsSetTo("postgres:16.0", 3)
8080

8181
test.whenKubegresIsCreated()
8282

83-
test.thenPodsStatesShouldBe("postgres:16.0-bullseye", 1, 2)
83+
test.thenPodsStatesShouldBe("postgres:16.0", 1, 2)
8484

85-
test.thenDeployedKubegresSpecShouldBeSetTo("postgres:16.0-bullseye")
85+
test.thenDeployedKubegresSpecShouldBeSetTo("postgres:16.0")
8686

8787
test.dbQueryTestCases.ThenWeCanSqlQueryPrimaryDb()
8888
test.dbQueryTestCases.ThenWeCanSqlQueryReplicaDb()
8989

9090
test.keepCreatedResourcesForNextTest = true
9191

92-
log.Print("END OF: Test 'GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0-bullseye' and spec 'replica' set to 3'")
92+
log.Print("END OF: Test 'GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0' and spec 'replica' set to 3'")
9393
})
9494

95-
It("GIVEN existing Kubegres is updated with spec 'image' set from 'postgres:16.0-bullseye' to 'postgres:16.0' THEN 1 primary and 2 replica should be re-deployed with spec 'image' set to 'postgres:16.0'", func() {
95+
It("GIVEN existing Kubegres is updated with spec 'image' set from 'postgres:16.0' to 'postgres:16.1' THEN 1 primary and 2 replica should be re-deployed with spec 'image' set to 'postgres:16.1'", func() {
9696

97-
log.Print("START OF: Test 'GIVEN existing Kubegres is updated with spec 'image' set from 'postgres:16.0-bullseye' to 'postgres:16.0'")
97+
log.Print("START OF: Test 'GIVEN existing Kubegres is updated with spec 'image' set from 'postgres:16.0' to 'postgres:16.1'")
9898

99-
test.givenExistingKubegresSpecIsSetTo("postgres:16.0")
99+
test.givenExistingKubegresSpecIsSetTo("postgres:16.1")
100100

101101
test.whenKubernetesIsUpdated()
102102

103-
test.thenPodsStatesShouldBe("postgres:16.0", 1, 2)
103+
test.thenPodsStatesShouldBe("postgres:16.1", 1, 2)
104104

105-
test.thenDeployedKubegresSpecShouldBeSetTo("postgres:16.0")
105+
test.thenDeployedKubegresSpecShouldBeSetTo("postgres:16.1")
106106

107107
test.dbQueryTestCases.ThenWeCanSqlQueryPrimaryDb()
108108
test.dbQueryTestCases.ThenWeCanSqlQueryReplicaDb()
109109

110-
log.Print("END OF: Test 'GIVEN existing Kubegres is updated with spec 'image' set from 'postgres:16.0-bullseye' to 'postgres:16.0'")
110+
log.Print("END OF: Test 'GIVEN existing Kubegres is updated with spec 'image' set from 'postgres:16.0' to 'postgres:16.1'")
111111
})
112112

113113
})

0 commit comments

Comments
 (0)