Skip to content

Commit

Permalink
Fix broken add-on tests to use Heroku add-on instead of 3rd party
Browse files Browse the repository at this point in the history
  • Loading branch information
mars committed Jul 25, 2023
1 parent d73172c commit b77ddd1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 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, "memcachier:dev"),
testAccCheckHerokuAddonPlan(&addon, "heroku-postgresql:mini"),
resource.TestCheckResourceAttrSet(
"heroku_addon.foobar", "app_id"),
resource.TestCheckResourceAttr(
"heroku_addon.foobar", "plan", "memcachier"),
"heroku_addon.foobar", "plan", "heroku-postgresql:mini"),
),
},
{
Config: testAccCheckHerokuAddonConfig_no_plan(appName),
Check: resource.ComposeTestCheckFunc(
testAccCheckHerokuAddonExists("heroku_addon.foobar", &addon),
testAccCheckHerokuAddonPlan(&addon, "memcachier:dev"),
testAccCheckHerokuAddonPlan(&addon, "heroku-postgresql:mini"),
resource.TestCheckResourceAttrSet(
"heroku_addon.foobar", "app_id"),
resource.TestCheckResourceAttr(
"heroku_addon.foobar", "plan", "memcachier"),
"heroku_addon.foobar", "plan", "heroku-postgresql:mini"),
),
},
},
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, "memcachier:dev"),
testAccCheckHerokuAddonPlan(&addon, "heroku-postgresql:mini"),
resource.TestCheckResourceAttrSet(
"heroku_addon.foobar", "app_id"),
resource.TestCheckResourceAttr(
"heroku_addon.foobar", "plan", "memcachier"),
"heroku_addon.foobar", "plan", "heroku-postgresql:mini"),
resource.TestCheckResourceAttr(
"heroku_addon.foobar", "name", customName),
),
Expand Down Expand Up @@ -357,7 +357,7 @@ resource "heroku_app" "foobar" {
resource "heroku_addon" "foobar" {
app_id = heroku_app.foobar.id
plan = "memcachier"
plan = "heroku-postgresql:mini"
}`, appName)
}

Expand All @@ -370,7 +370,7 @@ resource "heroku_app" "foobar" {
resource "heroku_addon" "foobar" {
app_id = heroku_app.foobar.id
plan = "memcachier"
plan = "heroku-postgresql:mini"
name = "%s"
}`, appName, customAddonName)
}

0 comments on commit b77ddd1

Please sign in to comment.