mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-28 12:02:03 -04:00
fix apply tests
sSme apply tests had outputs in empty modules, which won't be saved to state.
This commit is contained in:
@@ -8980,12 +8980,6 @@ Outputs:
|
||||
|
||||
result_1 = hello
|
||||
result_3 = hello world
|
||||
|
||||
module.child:
|
||||
<no state>
|
||||
Outputs:
|
||||
|
||||
result = hello
|
||||
`)
|
||||
if got != want {
|
||||
t.Fatalf("wrong final state\ngot:\n%s\nwant:\n%s", got, want)
|
||||
|
||||
@@ -441,12 +441,6 @@ const testTerraformApplyEmptyModuleStr = `
|
||||
Outputs:
|
||||
|
||||
end = XXXX
|
||||
|
||||
module.child:
|
||||
<no state>
|
||||
Outputs:
|
||||
|
||||
aws_route53_zone_id = XXXX
|
||||
`
|
||||
|
||||
const testTerraformApplyDependsCreateBeforeStr = `
|
||||
@@ -661,12 +655,6 @@ aws_instance.bar:
|
||||
provider = provider["registry.terraform.io/hashicorp/aws"]
|
||||
foo = true
|
||||
type = aws_instance
|
||||
|
||||
module.child:
|
||||
<no state>
|
||||
Outputs:
|
||||
|
||||
leader = true
|
||||
`
|
||||
|
||||
const testTerraformApplyModuleDestroyOrderStr = `
|
||||
|
||||
Reference in New Issue
Block a user