Skip to content

Commit

Permalink
Update default version (#113)
Browse files Browse the repository at this point in the history
Update major versions
  • Loading branch information
fergusstrange authored May 21, 2023
1 parent 54a6dcf commit b632dc8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Config struct {
// StartTimeout: 15 Seconds
func DefaultConfig() Config {
return Config{
version: V14,
version: V15,
port: 5432,
database: "postgres",
username: "postgres",
Expand Down Expand Up @@ -128,11 +128,11 @@ type PostgresVersion string

// Predefined supported Postgres versions.
const (
V15 = PostgresVersion("15.1.0")
V14 = PostgresVersion("14.6.0")
V13 = PostgresVersion("13.9.0")
V12 = PostgresVersion("12.13.0")
V11 = PostgresVersion("11.18.0")
V15 = PostgresVersion("15.3.0")
V14 = PostgresVersion("14.8.0")
V13 = PostgresVersion("13.11.0")
V12 = PostgresVersion("12.15.0")
V11 = PostgresVersion("11.20.0")
V10 = PostgresVersion("10.23.0")
V9 = PostgresVersion("9.6.24")
)
8 changes: 4 additions & 4 deletions version_strategy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func Test_DefaultVersionStrategy_AllGolangDistributions(t *testing.T) {
PostgresVersion("14.0.0"): {},
PostgresVersion("14.1.0"): {},
PostgresVersion("14.2.0"): {"darwin/arm64": {"darwin", "arm64v8"}},
V14: {"darwin/arm64": {"darwin", "arm64v8"}},
V15: {"darwin/arm64": {"darwin", "arm64v8"}},
}
defaultConfig := DefaultConfig()

Expand Down Expand Up @@ -105,7 +105,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V6(t *testing.T) {

assert.Equal(t, "linux", operatingSystem)
assert.Equal(t, "arm32v6", architecture)
assert.Equal(t, V14, postgresVersion)
assert.Equal(t, V15, postgresVersion)
}

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

assert.Equal(t, "linux", operatingSystem)
assert.Equal(t, "arm32v7", architecture)
assert.Equal(t, V14, postgresVersion)
assert.Equal(t, V15, postgresVersion)
}

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

assert.Equal(t, "linux", operatingSystem)
assert.Equal(t, "amd64-alpine", architecture)
assert.Equal(t, V14, postgresVersion)
assert.Equal(t, V15, postgresVersion)
}

func Test_DefaultVersionStrategy_shouldUseAlpineLinuxBuild(t *testing.T) {
Expand Down

0 comments on commit b632dc8

Please sign in to comment.