mirror of
https://github.com/hashicorp/terraform.git
synced 2026-02-03 20:50:59 -05:00
stacks: ensure an empty plan sends an applied status for the component
This commit is contained in:
parent
ed79a4745b
commit
fa14a97346
1 changed files with 23 additions and 0 deletions
|
|
@ -1278,6 +1278,29 @@ func TestStackChangeProgressDuringApply(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
"empty": {
|
||||
mode: stacks.PlanMode_NORMAL,
|
||||
source: "git::https://example.com/empty.git",
|
||||
state: []stackstate.AppliedChange{
|
||||
&stackstate.AppliedChangeComponentInstance{
|
||||
ComponentAddr: mustAbsComponent(t, "component.self"),
|
||||
ComponentInstanceAddr: mustAbsComponentInstance(t, "component.self"),
|
||||
},
|
||||
},
|
||||
want: []*stacks.StackChangeProgress{
|
||||
{
|
||||
Event: &stacks.StackChangeProgress_ComponentInstanceStatus_{
|
||||
ComponentInstanceStatus: &stacks.StackChangeProgress_ComponentInstanceStatus{
|
||||
Addr: &stacks.ComponentInstanceInStackAddr{
|
||||
ComponentAddr: "component.self",
|
||||
ComponentInstanceAddr: "component.self",
|
||||
},
|
||||
Status: stacks.StackChangeProgress_ComponentInstanceStatus_APPLIED,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for name, tc := range tcs {
|
||||
|
|
|
|||
Loading…
Reference in a new issue