@@ -14,7 +14,7 @@ func TestAccHerokuSpace(t *testing.T) {
14
14
var space spaceWithNAT
15
15
spaceName := fmt .Sprintf ("tftest1-%s" , acctest .RandString (10 ))
16
16
org := testAccConfig .GetAnyOrganizationOrSkip (t )
17
- spaceConfig := testAccCheckHerokuSpaceConfig_basic (spaceName , org , "10.0.0.0/16" , "10.1.0.0/20" )
17
+ spaceConfig := testAccCheckHerokuSpaceConfig_basic (spaceName , org , "10.0.0.0/16" )
18
18
19
19
resource .Test (t , resource.TestCase {
20
20
PreCheck : func () {
@@ -30,7 +30,7 @@ func TestAccHerokuSpace(t *testing.T) {
30
30
testAccCheckHerokuSpaceExists ("heroku_space.foobar" , & space ),
31
31
resource .TestCheckResourceAttrSet ("heroku_space.foobar" , "outbound_ips.#" ),
32
32
resource .TestCheckResourceAttr ("heroku_space.foobar" , "cidr" , "10.0.0.0/16" ),
33
- resource .TestCheckResourceAttr ("heroku_space.foobar" , "data_cidr" , "10.1.0.0/20 " ),
33
+ resource .TestCheckResourceAttrSet ("heroku_space.foobar" , "data_cidr" ),
34
34
),
35
35
},
36
36
// append space test Steps, sharing the space, instead of recreating for each test
@@ -54,16 +54,15 @@ func TestAccHerokuSpace(t *testing.T) {
54
54
// …
55
55
// }
56
56
57
- func testAccCheckHerokuSpaceConfig_basic (spaceName , orgName , cidr , dataCidr string ) string {
57
+ func testAccCheckHerokuSpaceConfig_basic (spaceName , orgName , cidr string ) string {
58
58
return fmt .Sprintf (`
59
59
resource "heroku_space" "foobar" {
60
60
name = "%s"
61
61
organization = "%s"
62
62
region = "virginia"
63
63
cidr = "%s"
64
- data_cidr = "%s"
65
64
}
66
- ` , spaceName , orgName , cidr , dataCidr )
65
+ ` , spaceName , orgName , cidr )
67
66
}
68
67
69
68
func testAccCheckHerokuSpaceExists (n string , space * spaceWithNAT ) resource.TestCheckFunc {
0 commit comments