Skip to content

Commit

Permalink
[databases]: minor variable renaming in mongo advanced configuration …
Browse files Browse the repository at this point in the history
…test (#1244)
  • Loading branch information
loosla authored Oct 9, 2024
1 parent 22d938a commit 816dbe1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ func TestAccDigitalOceanDatabaseMongoDBConfig_Basic(t *testing.T) {
CheckDestroy: testAccCheckDigitalOceanDatabaseClusterDestroy,
Steps: []resource.TestStep{
{
Config: fmt.Sprintf(testAccCheckDigitalOceanDatabaseMongoDBConfigConfigBasic, dbConfig, "available", 1),
Config: fmt.Sprintf(testAccCheckDigitalOceanDatabaseMongoDBConfigBasic, dbConfig, "available", 1),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("digitalocean_database_mongodb_config.foobar", "default_read_concern", "available"),
resource.TestCheckResourceAttr("digitalocean_database_mongodb_config.foobar", "transaction_lifetime_limit_seconds", "1"),
),
},
{
Config: fmt.Sprintf(testAccCheckDigitalOceanDatabaseMongoDBConfigConfigBasic, dbConfig, "majority", 100),
Config: fmt.Sprintf(testAccCheckDigitalOceanDatabaseMongoDBConfigBasic, dbConfig, "majority", 100),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("digitalocean_database_mongodb_config.foobar", "default_read_concern", "majority"),
resource.TestCheckResourceAttr("digitalocean_database_mongodb_config.foobar", "transaction_lifetime_limit_seconds", "100"),
Expand All @@ -35,7 +35,7 @@ func TestAccDigitalOceanDatabaseMongoDBConfig_Basic(t *testing.T) {
})
}

const testAccCheckDigitalOceanDatabaseMongoDBConfigConfigBasic = `
const testAccCheckDigitalOceanDatabaseMongoDBConfigBasic = `
%s
resource "digitalocean_database_mongodb_config" "foobar" {
Expand Down

0 comments on commit 816dbe1

Please sign in to comment.