Skip to content

Commit

Permalink
Upgrade versions (#132)
Browse files Browse the repository at this point in the history
* Upgrade versions

* Fix default version

* Try rolling back v12

---------

Co-authored-by: ferguss <fergus@sitehvie.co>
  • Loading branch information
fergusstrange and ferguss committed Feb 28, 2024
1 parent 0db55ea commit 74c945b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions config.go
Expand Up @@ -35,7 +35,7 @@ type Config struct {
// StartTimeout: 15 Seconds
func DefaultConfig() Config {
return Config{
version: V15,
version: V16,
port: 5432,
database: "postgres",
username: "postgres",
Expand Down Expand Up @@ -147,11 +147,11 @@ type PostgresVersion string
// Predefined supported Postgres versions.
const (
V16 = PostgresVersion("16.2.0")
V15 = PostgresVersion("15.3.0")
V14 = PostgresVersion("14.8.0")
V15 = PostgresVersion("15.6.0")
V14 = PostgresVersion("14.11.0")
V13 = PostgresVersion("13.14.0")
V12 = PostgresVersion("12.15.0")
V11 = PostgresVersion("11.20.0")
V12 = PostgresVersion("12.17.0")
V11 = PostgresVersion("11.22.0")
V10 = PostgresVersion("10.23.0")
V9 = PostgresVersion("9.6.24")
)
6 changes: 3 additions & 3 deletions version_strategy_test.go
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, V15, postgresVersion)
assert.Equal(t, V16, 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, V15, postgresVersion)
assert.Equal(t, V16, 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, V15, postgresVersion)
assert.Equal(t, V16, postgresVersion)
}

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

0 comments on commit 74c945b

Please sign in to comment.