From a9ed223c537f18d5bc5fb884b42b995bf95619b0 Mon Sep 17 00:00:00 2001 From: Andrej Friesen Date: Tue, 12 Dec 2023 16:43:20 +0100 Subject: [PATCH] Fix test for mysql8_0 resource --- gridscale/resource_gridscale_mysql8_0_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gridscale/resource_gridscale_mysql8_0_test.go b/gridscale/resource_gridscale_mysql8_0_test.go index 2cbcf6419..8f57f4e03 100644 --- a/gridscale/resource_gridscale_mysql8_0_test.go +++ b/gridscale/resource_gridscale_mysql8_0_test.go @@ -22,17 +22,17 @@ func TestAccResourceGridscaleMySQL8_0_Basic(t *testing.T) { { Config: testAccCheckResourceGridscaleMySQL8_0Config_basic(name), Check: resource.ComposeTestCheckFunc( - testAccCheckResourceGridscalePaaSExists("gridscale_mysql.test", &object), + testAccCheckResourceGridscalePaaSExists("gridscale_mysql8_0.test", &object), resource.TestCheckResourceAttr( - "gridscale_mysql.test", "name", name), + "gridscale_mysql8_0.test", "name", name), ), }, { Config: testAccCheckResourceGridscaleMySQL8_0Config_basic_update(), Check: resource.ComposeTestCheckFunc( - testAccCheckResourceGridscalePaaSExists("gridscale_mysql.test", &object), + testAccCheckResourceGridscalePaaSExists("gridscale_mysql8_0.test", &object), resource.TestCheckResourceAttr( - "gridscale_mysql.test", "name", "newname"), + "gridscale_mysql8_0.test", "name", "newname"), ), }, }, @@ -41,7 +41,7 @@ func TestAccResourceGridscaleMySQL8_0_Basic(t *testing.T) { func testAccCheckResourceGridscaleMySQL8_0Config_basic(name string) string { return fmt.Sprintf(` -resource "gridscale_mysql" "test" { +resource "gridscale_mysql8_0" "test" { name = "%s" release = "8.0" performance_class = "standard" @@ -51,7 +51,7 @@ resource "gridscale_mysql" "test" { func testAccCheckResourceGridscaleMySQL8_0Config_basic_update() string { return fmt.Sprintf(` -resource "gridscale_mysql" "test" { +resource "gridscale_mysql8_0" "test" { name = "newname" release = "8.0" performance_class = "standard"