Skip to content

Commit

Permalink
Fix test for mysql8_0 resource
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfriesen committed Dec 12, 2023
1 parent 01d92c2 commit a9ed223
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gridscale/resource_gridscale_mysql8_0_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
},
},
Expand All @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit a9ed223

Please sign in to comment.