Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Updates #113

Merged
merged 1 commit into from
May 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,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 @@ -123,11 +123,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