diff --git a/README.md b/README.md index a3c70c6..5fa28f8 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ This library aims to require as little configuration as possible, favouring over | Username | postgres | | Password | postgres | | Database | postgres | -| Version | 12.1.0 | +| Version | 15.3.0 | | CachePath | $USER_HOME/.embedded-postgres-go/ | | RuntimePath | $USER_HOME/.embedded-postgres-go/extracted | | DataPath | $USER_HOME/.embedded-postgres-go/extracted/data | diff --git a/config.go b/config.go index 8f73a33..75d4f64 100644 --- a/config.go +++ b/config.go @@ -27,7 +27,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: 14 +// Version: 15 // Port: 5432 // Database: postgres // Username: postgres @@ -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", @@ -146,11 +146,12 @@ type PostgresVersion string // Predefined supported Postgres versions. const ( - 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") + V16 = PostgresVersion("16.2.0") + V15 = PostgresVersion("15.6.0") + V14 = PostgresVersion("14.11.0") + V13 = PostgresVersion("13.14.0") + V12 = PostgresVersion("12.17.0") + V11 = PostgresVersion("11.22.0") V10 = PostgresVersion("10.23.0") V9 = PostgresVersion("9.6.24") ) diff --git a/platform-test/platform_test.go b/platform-test/platform_test.go index 07b4b89..42addc0 100644 --- a/platform-test/platform_test.go +++ b/platform-test/platform_test.go @@ -14,6 +14,7 @@ import ( func Test_AllMajorVersions(t *testing.T) { allVersions := []embeddedpostgres.PostgresVersion{ + embeddedpostgres.V16, embeddedpostgres.V15, embeddedpostgres.V14, } diff --git a/version_strategy_test.go b/version_strategy_test.go index e2c9527..49213b9 100644 --- a/version_strategy_test.go +++ b/version_strategy_test.go @@ -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) { @@ -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) { @@ -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) {