|
|
|
@ -640,7 +640,6 @@ func TestStackChangeProgressDuringPlanNormal(t *testing.T) {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
want: []*stacks.StackChangeProgress{
|
|
|
|
want: []*stacks.StackChangeProgress{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
Event: &stacks.StackChangeProgress_ComponentInstanceChanges_{
|
|
|
|
Event: &stacks.StackChangeProgress_ComponentInstanceChanges_{
|
|
|
|
ComponentInstanceChanges: &stacks.StackChangeProgress_ComponentInstanceChanges{
|
|
|
|
ComponentInstanceChanges: &stacks.StackChangeProgress_ComponentInstanceChanges{
|
|
|
|
Addr: &stacks.ComponentInstanceInStackAddr{
|
|
|
|
Addr: &stacks.ComponentInstanceInStackAddr{
|
|
|
|
@ -695,7 +694,8 @@ func TestStackChangeProgressDuringPlanNormal(t *testing.T) {
|
|
|
|
ProviderAddr: "registry.terraform.io/hashicorp/testing",
|
|
|
|
ProviderAddr: "registry.terraform.io/hashicorp/testing",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}, {
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
Event: &stacks.StackChangeProgress_ComponentInstanceChanges_{
|
|
|
|
Event: &stacks.StackChangeProgress_ComponentInstanceChanges_{
|
|
|
|
ComponentInstanceChanges: &stacks.StackChangeProgress_ComponentInstanceChanges{
|
|
|
|
ComponentInstanceChanges: &stacks.StackChangeProgress_ComponentInstanceChanges{
|
|
|
|
Addr: &stacks.ComponentInstanceInStackAddr{
|
|
|
|
Addr: &stacks.ComponentInstanceInStackAddr{
|
|
|
|
@ -977,6 +977,22 @@ func TestStackChangeProgressDuringPlanNormal(t *testing.T) {
|
|
|
|
ComponentInstanceAddr: "component.self",
|
|
|
|
ComponentInstanceAddr: "component.self",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Status: stacks.StackChangeProgress_ComponentInstanceStatus_PLANNED,
|
|
|
|
Status: stacks.StackChangeProgress_ComponentInstanceStatus_PLANNED,
|
|
|
|
|
|
|
|
"action_invocations": {
|
|
|
|
|
|
|
|
// This test verifies that the ActionInvocation field exists in ComponentInstanceChanges
|
|
|
|
|
|
|
|
// and is included in the total count. Once we implement action invocation tracking logic,
|
|
|
|
|
|
|
|
// this field will have a value > 0 for components with actions.
|
|
|
|
|
|
|
|
source: "git::https://example.com/action_invocations.git",
|
|
|
|
|
|
|
|
want: []*stacks.StackChangeProgress{
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Event: &stacks.StackChangeProgress_ComponentInstanceChanges_{
|
|
|
|
|
|
|
|
ComponentInstanceChanges: &stacks.StackChangeProgress_ComponentInstanceChanges{
|
|
|
|
|
|
|
|
Addr: &stacks.ComponentInstanceInStackAddr{
|
|
|
|
|
|
|
|
ComponentAddr: "component.self",
|
|
|
|
|
|
|
|
ComponentInstanceAddr: "component.self",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
Total: 2,
|
|
|
|
|
|
|
|
Add: 1,
|
|
|
|
|
|
|
|
ActionInvocation: 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -1896,7 +1912,6 @@ func TestStacksMigrateTerraformState(t *testing.T) {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("unexpected error: %s", err)
|
|
|
|
t.Fatalf("unexpected error: %s", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|