Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinshenker committed Jan 17, 2024
1 parent 8e97870 commit 227ebf3
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions digitalocean/database/resource_database_replica_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ func TestAccDigitalOceanDatabaseReplica_Resize(t *testing.T) {
databaseConfig := fmt.Sprintf(testAccCheckDigitalOceanDatabaseClusterConfigBasic, databaseName)
replicaConfig := fmt.Sprintf(testAccCheckDigitalOceanDatabaseReplicaConfigBasic, databaseReplicaName)
resizedConfig := fmt.Sprintf(testAccCheckDigitalOceanDatabaseReplicaConfigResized, databaseReplicaName)
resizedWithStorageConfig := fmt.Sprintf(testAccCheckDigitalOceanDatabaseReplicaConfigResizedWithStorage, databaseReplicaName)

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acceptance.TestAccPreCheck(t) },
Expand Down Expand Up @@ -158,21 +157,6 @@ func TestAccDigitalOceanDatabaseReplica_Resize(t *testing.T) {
"digitalocean_database_replica.read-01", "uuid"),
),
},
{
Config: databaseConfig + resizedWithStorageConfig,
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDatabaseReplicaExists("digitalocean_database_replica.read-01", &databaseReplica),
testAccCheckDigitalOceanDatabaseReplicaAttributes(&databaseReplica, databaseReplicaName),
resource.TestCheckResourceAttr(
"digitalocean_database_replica.read-01", "size", "db-s-2vcpu-4gb"),
resource.TestCheckResourceAttr(
"digitalocean_database_replica.read-01", "name", databaseReplicaName),
resource.TestCheckResourceAttr(
"digitalocean_database_replica.read-01", "storage_size_mib", "71680"),
resource.TestCheckResourceAttrSet(
"digitalocean_database_replica.read-01", "uuid"),
),
},
},
})
}
Expand Down Expand Up @@ -264,16 +248,6 @@ resource "digitalocean_database_replica" "read-01" {
tags = ["staging"]
}`

const testAccCheckDigitalOceanDatabaseReplicaConfigResizedWithStorage = `
resource "digitalocean_database_replica" "read-01" {
cluster_id = digitalocean_database_cluster.foobar.id
name = "%s"
region = "nyc3"
size = "db-s-2vcpu-4gb"
storage_size_mib = 71680
tags = ["staging"]
}`

const testAccCheckDigitalOceanDatabaseReplicaConfigWithVPC = `
Expand Down

0 comments on commit 227ebf3

Please sign in to comment.