@@ -530,17 +530,17 @@ func testStep_AccHerokuBuild_Generation_FirValid(spaceConfig, spaceName string)
530530 Config : fmt .Sprintf (`
531531%s
532532
533- resource "heroku_app" "fir_build_app " {
534- name = "tftest-fir-build -%s"
533+ resource "heroku_app" "fir_build_app_valid " {
534+ name = "tftest-fir-bld-v -%s"
535535 region = heroku_space.foobar.region
536- space = heroku_space.foobar.id
536+ space = heroku_space.foobar.name
537537 organization {
538538 name = heroku_space.foobar.organization
539539 }
540540}
541541
542542resource "heroku_build" "fir_build_valid" {
543- app_id = heroku_app.fir_build_app .id
543+ app_id = heroku_app.fir_build_app_valid .id
544544 # No buildpacks - should work with CNB
545545
546546 source {
@@ -549,7 +549,7 @@ resource "heroku_build" "fir_build_valid" {
549549}
550550` , spaceConfig , acctest .RandString (6 )),
551551 Check : resource .ComposeTestCheckFunc (
552- resource .TestCheckResourceAttr ("heroku_app.fir_build_app " , "generation" , "fir" ),
552+ resource .TestCheckResourceAttr ("heroku_app.fir_build_app_valid " , "generation" , "fir" ),
553553 resource .TestCheckResourceAttr ("heroku_build.fir_build_valid" , "status" , "succeeded" ),
554554 ),
555555 }
@@ -561,26 +561,17 @@ func testStep_AccHerokuBuild_Generation_FirInvalid(spaceConfig, spaceName string
561561 Config : fmt .Sprintf (`
562562%s
563563
564- resource "heroku_app" "fir_build_app " {
565- name = "tftest-fir-build -%s"
564+ resource "heroku_app" "fir_build_app_invalid " {
565+ name = "tftest-fir-bld-i -%s"
566566 region = heroku_space.foobar.region
567- space = heroku_space.foobar.id
567+ space = heroku_space.foobar.name
568568 organization {
569569 name = heroku_space.foobar.organization
570570 }
571571}
572572
573- resource "heroku_build" "fir_build_valid" {
574- app_id = heroku_app.fir_build_app.id
575- # No buildpacks - should work with CNB
576-
577- source {
578- path = "test-fixtures/app"
579- }
580- }
581-
582573resource "heroku_build" "fir_build_invalid" {
583- app_id = heroku_app.fir_build_app .id
574+ app_id = heroku_app.fir_build_app_invalid .id
584575 buildpacks = ["heroku/nodejs"] # Should fail
585576
586577 source {
0 commit comments