Skip to content

Commit

Permalink
Some test assertions require the default postgres plan name
Browse files Browse the repository at this point in the history
  • Loading branch information
mars committed Jul 16, 2024
1 parent 0dba4dd commit 8f0d299
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions heroku/resource_heroku_addon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,22 @@ func TestAccHerokuAddon_noPlan(t *testing.T) {
Config: testAccCheckHerokuAddonConfig_no_plan(appName),
Check: resource.ComposeTestCheckFunc(
testAccCheckHerokuAddonExists("heroku_addon.foobar", &addon),
testAccCheckHerokuAddonPlan(&addon, "heroku-postgresql"),
testAccCheckHerokuAddonPlan(&addon, "heroku-postgresql:essential-0"),
resource.TestCheckResourceAttrSet(
"heroku_addon.foobar", "app_id"),
resource.TestCheckResourceAttr(
"heroku_addon.foobar", "plan", "heroku-postgresql"),
"heroku_addon.foobar", "plan", "heroku-postgresql:essential-0"),
),
},
{
Config: testAccCheckHerokuAddonConfig_no_plan(appName),
Check: resource.ComposeTestCheckFunc(
testAccCheckHerokuAddonExists("heroku_addon.foobar", &addon),
testAccCheckHerokuAddonPlan(&addon, "heroku-postgresql"),
testAccCheckHerokuAddonPlan(&addon, "heroku-postgresql:essential-0"),
resource.TestCheckResourceAttrSet(
"heroku_addon.foobar", "app_id"),
resource.TestCheckResourceAttr(
"heroku_addon.foobar", "plan", "heroku-postgresql"),
"heroku_addon.foobar", "plan", "heroku-postgresql:essential-0"),
),
},
},
Expand All @@ -85,7 +85,7 @@ func TestAccHerokuAddon_ConfigVarValues(t *testing.T) {
Config: testAccCheckHerokuAddonConfig_configVarValues(appName),
Check: resource.ComposeTestCheckFunc(
testAccCheckHerokuAddonExists("heroku_addon.pg", &addon),
testAccCheckHerokuAddonPlan(&addon, "heroku-postgresql"),
testAccCheckHerokuAddonPlan(&addon, "heroku-postgresql:essential-0"),
testAccCheckHerokuAddonConfigVarValueHasDatabaseURL("heroku_addon.pg", &addon),
),
},
Expand Down Expand Up @@ -123,11 +123,11 @@ func TestAccHerokuAddon_CustomName(t *testing.T) {
Config: testAccCheckHerokuAddonConfig_CustomName(appName, customName),
Check: resource.ComposeTestCheckFunc(
testAccCheckHerokuAddonExists("heroku_addon.foobar", &addon),
testAccCheckHerokuAddonPlan(&addon, "heroku-postgresql"),
testAccCheckHerokuAddonPlan(&addon, "heroku-postgresql:essential-0"),
resource.TestCheckResourceAttrSet(
"heroku_addon.foobar", "app_id"),
resource.TestCheckResourceAttr(
"heroku_addon.foobar", "plan", "heroku-postgresql"),
"heroku_addon.foobar", "plan", "heroku-postgresql:essential-0"),
resource.TestCheckResourceAttr(
"heroku_addon.foobar", "name", customName),
),
Expand Down

0 comments on commit 8f0d299

Please sign in to comment.