Skip to content

Commit 0c7d03d

Browse files
fergusstrangeferguss
andauthored
Add support for Postgres 17 and update default version (#159)
* Add support for Postgres 17 and update default version * Update tests to use Postgres 17 as the default version --------- Co-authored-by: ferguss <[email protected]>
1 parent bab016e commit 0c7d03d

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

config.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type Config struct {
3636
// StartTimeout: 15 Seconds
3737
func DefaultConfig() Config {
3838
return Config{
39-
version: V16,
39+
version: V17,
4040
port: 5432,
4141
database: "postgres",
4242
username: "postgres",
@@ -153,11 +153,12 @@ type PostgresVersion string
153153

154154
// Predefined supported Postgres versions.
155155
const (
156-
V16 = PostgresVersion("16.4.0")
157-
V15 = PostgresVersion("15.8.0")
158-
V14 = PostgresVersion("14.13.0")
159-
V13 = PostgresVersion("13.16.0")
160-
V12 = PostgresVersion("12.20.0")
156+
V17 = PostgresVersion("17.5.0")
157+
V16 = PostgresVersion("16.9.0")
158+
V15 = PostgresVersion("15.13.0")
159+
V14 = PostgresVersion("14.18.0")
160+
V13 = PostgresVersion("13.21.0")
161+
V12 = PostgresVersion("12.22.0")
161162
V11 = PostgresVersion("11.22.0")
162163
V10 = PostgresVersion("10.23.0")
163164
V9 = PostgresVersion("9.6.24")

platform-test/platform_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414

1515
func Test_AllMajorVersions(t *testing.T) {
1616
allVersions := []embeddedpostgres.PostgresVersion{
17+
embeddedpostgres.V17,
1718
embeddedpostgres.V16,
1819
embeddedpostgres.V15,
1920
embeddedpostgres.V14,

version_strategy_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V6(t *testing.T) {
105105

106106
assert.Equal(t, "linux", operatingSystem)
107107
assert.Equal(t, "arm32v6", architecture)
108-
assert.Equal(t, V16, postgresVersion)
108+
assert.Equal(t, V17, postgresVersion)
109109
}
110110

111111
func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) {
@@ -121,7 +121,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) {
121121

122122
assert.Equal(t, "linux", operatingSystem)
123123
assert.Equal(t, "arm32v7", architecture)
124-
assert.Equal(t, V16, postgresVersion)
124+
assert.Equal(t, V17, postgresVersion)
125125
}
126126

127127
func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) {
@@ -139,7 +139,7 @@ func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) {
139139

140140
assert.Equal(t, "linux", operatingSystem)
141141
assert.Equal(t, "amd64-alpine", architecture)
142-
assert.Equal(t, V16, postgresVersion)
142+
assert.Equal(t, V17, postgresVersion)
143143
}
144144

145145
func Test_DefaultVersionStrategy_shouldUseAlpineLinuxBuild(t *testing.T) {

0 commit comments

Comments
 (0)