Skip to content

Commit efbf4fb

Browse files
committed
update tests for idempotency
1 parent cf85270 commit efbf4fb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/single_scope_ipv4/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ module "basic" {
2020

2121
sandbox = {
2222
name = "mysandbox"
23-
netmask_length = 20
23+
cidr = ["10.0.0.0/20"]
2424
ram_share_principals = var.sandbox_ou_arn
2525
allocation_resource_tags = {
2626
env = "sandbox"
2727
}
2828
}
2929
dev = {
30-
cidr = ["10.1.0.0/20"]
30+
netmask_length = 20
3131

3232
sub_pools = {
3333
team_a = {
@@ -37,7 +37,7 @@ module "basic" {
3737
}
3838

3939
team_b = {
40-
cidr = ["10.1.1.0/24"]
40+
netmask_length = 26
4141
ram_share_principals = var.prod_account # prod account
4242
}
4343
}

test/examples_single_scope_ipv4_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ func TestExamplesIPv4Basic(t *testing.T) {
3232

3333
defer terraform.Destroy(t, terraformOptions)
3434
terraform.InitAndApply(t, terraformOptions)
35+
terraform.ApplyAndIdempotent(t, terraformOptions)
3536
}

0 commit comments

Comments
 (0)