From 2c5e2d6b5bc23b354347404c4b006359b68cc2dc Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 3 Apr 2020 11:28:31 -0400 Subject: [PATCH] add missing action check in orphan test --- terraform/context_plan_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/terraform/context_plan_test.go b/terraform/context_plan_test.go index a1bbbeb9a0..4b3e63e64d 100644 --- a/terraform/context_plan_test.go +++ b/terraform/context_plan_test.go @@ -6186,5 +6186,10 @@ resource "aws_instance" "foo" { if res.Action != want { t.Fatalf("expected %s action, got: %q %s", want, res.Addr, res.Action) } + delete(expected, res.Addr.String()) + } + + for res, action := range expected { + t.Errorf("missing %s change for %s", action, res) } }