Skip to content

Commit

Permalink
databases: Update Postgres versions in acceptance tests. (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsomething committed Jul 3, 2023
1 parent 073b8d5 commit d665002
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions digitalocean/database/datasource_database_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const testAccCheckDataSourceDigitalOceanDatabaseClusterConfigBasic = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
Expand All @@ -101,7 +101,7 @@ const testAccCheckDataSourceDigitalOceanDatabaseClusterConfigWithDatasource = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
Expand Down
22 changes: 11 additions & 11 deletions digitalocean/database/resource_database_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ func TestAccDigitalOceanDatabaseCluster_MongoDBPassword(t *testing.T) {
func TestAccDigitalOceanDatabaseCluster_Upgrade(t *testing.T) {
var database godo.Database
databaseName := acceptance.RandomTestName()
previousPGVersion := "13"
latestPGVersion := "14"
previousPGVersion := "14"
latestPGVersion := "15"

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acceptance.TestAccPreCheck(t) },
Expand Down Expand Up @@ -671,7 +671,7 @@ const testAccCheckDigitalOceanDatabaseClusterConfigBasic = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-2gb"
region = "nyc1"
node_count = 1
Expand All @@ -682,7 +682,7 @@ const testAccCheckDigitalOceanDatabaseClusterConfigWithBackupRestore = `
resource "digitalocean_database_cluster" "foobar_backup" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-2gb"
region = "nyc1"
node_count = 1
Expand All @@ -697,7 +697,7 @@ const testAccCheckDigitalOceanDatabaseClusterConfigWithUpdate = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-2vcpu-4gb"
region = "nyc1"
node_count = 1
Expand All @@ -708,7 +708,7 @@ const testAccCheckDigitalOceanDatabaseClusterConfigWithMigration = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-2gb"
region = "lon1"
node_count = 1
Expand All @@ -719,7 +719,7 @@ const testAccCheckDigitalOceanDatabaseClusterConfigWithMaintWindow = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
Expand Down Expand Up @@ -814,7 +814,7 @@ const testAccCheckDigitalOceanDatabaseClusterConfigWithEvictionPolicyError = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
Expand All @@ -826,7 +826,7 @@ const testAccCheckDigitalOceanDatabaseClusterConfigTagUpdate = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-2gb"
region = "nyc1"
node_count = 1
Expand All @@ -842,7 +842,7 @@ resource "digitalocean_vpc" "foobar" {
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-2gb"
region = "nyc1"
node_count = 1
Expand Down Expand Up @@ -878,7 +878,7 @@ resource "digitalocean_project" "foobar" {
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-2gb"
region = "nyc1"
node_count = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const testAccCheckDigitalOceanDatabaseConnectionPoolConfigBasic = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
Expand All @@ -216,7 +216,7 @@ const testAccCheckDigitalOceanDatabaseConnectionPoolConfigUpdated = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
Expand All @@ -234,7 +234,7 @@ const testAccCheckDigitalOceanDatabaseConnectionPoolConfigBad = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
Expand All @@ -253,7 +253,7 @@ const testAccCheckDigitalOceanDatabaseConnectionPoolConfigInboundUser = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
Expand Down
2 changes: 1 addition & 1 deletion digitalocean/database/resource_database_db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const testAccCheckDigitalOceanDatabaseDBConfigBasic = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
Expand Down
6 changes: 3 additions & 3 deletions digitalocean/database/resource_database_firewall_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const testAccCheckDigitalOceanDatabaseFirewallConfigBasic = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
Expand All @@ -112,7 +112,7 @@ const testAccCheckDigitalOceanDatabaseFirewallConfigAddRule = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
Expand All @@ -137,7 +137,7 @@ const testAccCheckDigitalOceanDatabaseFirewallConfigMultipleResourceTypes = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
Expand Down
2 changes: 1 addition & 1 deletion digitalocean/database/resource_database_user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const testAccCheckDigitalOceanDatabaseUserConfigBasic = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "11"
version = "15"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
Expand Down

0 comments on commit d665002

Please sign in to comment.