Skip to content

Commit

Permalink
remove use of heroku-16 stack from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidji99 committed Feb 24, 2021
1 parent 2a4f4d8 commit febf992
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion heroku/data_source_heroku_app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func TestAccDatasourceHerokuApp_Basic(t *testing.T) {
appName := fmt.Sprintf("tftest-%s", acctest.RandString(10))
appStack := "heroku-16"
appStack := "heroku-20"
gitUrl := fmt.Sprintf("https://git.heroku.com/%s.git", appName)
webUrl := fmt.Sprintf("https://%s.herokuapp.com/", appName)
herokuHostname := fmt.Sprintf("%s.herokuapp.com", appName)
Expand Down
2 changes: 1 addition & 1 deletion heroku/import_heroku_app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func TestAccHerokuApp_importBasic(t *testing.T) {
appName := fmt.Sprintf("tftest-%s", acctest.RandString(10))
appStack := "heroku-16"
appStack := "heroku-20"

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down
12 changes: 6 additions & 6 deletions heroku/resource_heroku_app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
func TestAccHerokuApp_Basic(t *testing.T) {
var app heroku.App
appName := fmt.Sprintf("tftest-%s", acctest.RandString(10))
appStack := "heroku-16"
appStack := "heroku-20"

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand All @@ -26,7 +26,7 @@ func TestAccHerokuApp_Basic(t *testing.T) {
Config: testAccCheckHerokuAppConfig_basic(appName, appStack),
Check: resource.ComposeTestCheckFunc(
testAccCheckHerokuAppExists("heroku_app.foobar", &app),
testAccCheckHerokuAppAttributes(&app, appName, "heroku-16"),
testAccCheckHerokuAppAttributes(&app, appName, "heroku-20"),
resource.TestCheckResourceAttr(
"heroku_app.foobar", "name", appName),
resource.TestCheckResourceAttrSet(
Expand Down Expand Up @@ -67,8 +67,8 @@ func TestAccHerokuApp_Change(t *testing.T) {
var app heroku.App
appName := fmt.Sprintf("tftest-%s", acctest.RandString(10))
appName2 := fmt.Sprintf("%s-v2", appName)
appStack := "heroku-16"
appStack2 := "heroku-18"
appStack := "heroku-18"
appStack2 := "heroku-20"

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down Expand Up @@ -110,7 +110,7 @@ func TestAccHerokuApp_Change(t *testing.T) {
func TestAccHerokuApp_NukeVars(t *testing.T) {
var app heroku.App
appName := fmt.Sprintf("tftest-%s", acctest.RandString(10))
appStack := "heroku-16"
appStack := "heroku-20"

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand All @@ -121,7 +121,7 @@ func TestAccHerokuApp_NukeVars(t *testing.T) {
Config: testAccCheckHerokuAppConfig_basic(appName, appStack),
Check: resource.ComposeTestCheckFunc(
testAccCheckHerokuAppExists("heroku_app.foobar", &app),
testAccCheckHerokuAppAttributes(&app, appName, "heroku-16"),
testAccCheckHerokuAppAttributes(&app, appName, "heroku-20"),
resource.TestCheckResourceAttr(
"heroku_app.foobar", "name", appName),
resource.TestCheckResourceAttr(
Expand Down

0 comments on commit febf992

Please sign in to comment.