diff --git a/config.go b/config.go index 18df3d8..3e732e6 100644 --- a/config.go +++ b/config.go @@ -24,7 +24,7 @@ type Config struct { // DefaultConfig provides a default set of configuration to be used "as is" or modified using the provided builders. // The following can be assumed as defaults: -// Version: 12 +// Version: 14 // Port: 5432 // Database: postgres // Username: postgres @@ -32,7 +32,7 @@ type Config struct { // StartTimeout: 15 Seconds func DefaultConfig() Config { return Config{ - version: V12, + version: V14, port: 5432, database: "postgres", username: "postgres", @@ -123,10 +123,10 @@ type PostgresVersion string // Predefined supported Postgres versions. const ( - V14 = PostgresVersion("14.3.0") - V13 = PostgresVersion("13.7.0") - V12 = PostgresVersion("12.11.0") - V11 = PostgresVersion("11.16.0") - V10 = PostgresVersion("10.21.0") + V14 = PostgresVersion("14.5.0") + V13 = PostgresVersion("13.8.0") + V12 = PostgresVersion("12.12.0") + V11 = PostgresVersion("11.17.0") + V10 = PostgresVersion("10.22.0") V9 = PostgresVersion("9.6.24") ) diff --git a/version_strategy_test.go b/version_strategy_test.go index 32f4f6c..8b0eccc 100644 --- a/version_strategy_test.go +++ b/version_strategy_test.go @@ -74,7 +74,7 @@ func Test_DefaultVersionStrategy_AllGolangDistributions(t *testing.T) { assert.Equal(t, expected[0], operatingSystem) assert.Equal(t, expected[1], architecture) - assert.Equal(t, V12, postgresVersion) + assert.Equal(t, V14, postgresVersion) }) } } @@ -92,7 +92,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V6(t *testing.T) { assert.Equal(t, "linux", operatingSystem) assert.Equal(t, "arm32v6", architecture) - assert.Equal(t, V12, postgresVersion) + assert.Equal(t, V14, postgresVersion) } func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) { @@ -108,7 +108,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) { assert.Equal(t, "linux", operatingSystem) assert.Equal(t, "arm32v7", architecture) - assert.Equal(t, V12, postgresVersion) + assert.Equal(t, V14, postgresVersion) } func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) { @@ -126,7 +126,7 @@ func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) { assert.Equal(t, "linux", operatingSystem) assert.Equal(t, "amd64-alpine", architecture) - assert.Equal(t, V12, postgresVersion) + assert.Equal(t, V14, postgresVersion) } func Test_DefaultVersionStrategy_shouldUseAlpineLinuxBuild(t *testing.T) {