From 2a67d904f2923dde8ea68b2916c002cfcaaa6350 Mon Sep 17 00:00:00 2001 From: KallyDev Date: Tue, 17 Oct 2023 00:42:58 +0000 Subject: [PATCH] Add more test cases for MySQL config Co-authored-by: Andrew Starr-Bochicchio --- .../database/resource_database_mysql_config_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/digitalocean/database/resource_database_mysql_config_test.go b/digitalocean/database/resource_database_mysql_config_test.go index 1a59e89ec..4fda6773e 100644 --- a/digitalocean/database/resource_database_mysql_config_test.go +++ b/digitalocean/database/resource_database_mysql_config_test.go @@ -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"), + ), + }, }, }) }