Skip to content

Commit

Permalink
Add more test cases for MySQL config
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Starr-Bochicchio <[email protected]>
  • Loading branch information
kallydev and andrewsomething authored Oct 17, 2023
1 parent cd57297 commit 2a67d90
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions digitalocean/database/resource_database_mysql_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ func TestAccDigitalOceanDatabaseMySQLConfig_Basic(t *testing.T) {
resource.TestCheckResourceAttr("digitalocean_database_mysql_config.foobar", "default_time_zone", "UTC"),
),
},
{
Config: fmt.Sprintf(testAccCheckDigitalOceanDatabaseMySQLConfigConfigBasic, dbConfig, 15, "SYSTEM"),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("digitalocean_database_mysql_config.foobar", "connect_timeout", "15"),
resource.TestCheckResourceAttr("digitalocean_database_mysql_config.foobar", "default_time_zone", "SYSTEM"),
),
},
},
})
}
Expand Down

0 comments on commit 2a67d90

Please sign in to comment.