From 565790d8da0adebc8f1a4c10abe10567aa2345a3 Mon Sep 17 00:00:00 2001 From: Chris Marchesi Date: Wed, 21 Jun 2017 09:15:50 -0700 Subject: [PATCH] core: Fix scale-out refresh graph test Since the transformer that changed stateless nodes in refresh to NodePlannableResourceInstance is not being used anymore, this test needed to be adjusted to ensure that the right output was expected. --- terraform/node_resource_refresh_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/node_resource_refresh_test.go b/terraform/node_resource_refresh_test.go index b2ac4d346..8eca1c1f8 100644 --- a/terraform/node_resource_refresh_test.go +++ b/terraform/node_resource_refresh_test.go @@ -59,11 +59,11 @@ func TestNodeRefreshableManagedResourceDynamicExpand_scaleOut(t *testing.T) { actual := g.StringWithNodeTypes() expected := `aws_instance.foo[0] - *terraform.NodeRefreshableManagedResourceInstance aws_instance.foo[1] - *terraform.NodeRefreshableManagedResourceInstance -aws_instance.foo[2] - *terraform.NodePlannableResourceInstance +aws_instance.foo[2] - *terraform.NodeRefreshableManagedResourceInstance root - terraform.graphNodeRoot aws_instance.foo[0] - *terraform.NodeRefreshableManagedResourceInstance aws_instance.foo[1] - *terraform.NodeRefreshableManagedResourceInstance - aws_instance.foo[2] - *terraform.NodePlannableResourceInstance + aws_instance.foo[2] - *terraform.NodeRefreshableManagedResourceInstance ` if expected != actual { t.Fatalf("Expected:\n%s\nGot:\n%s", expected, actual)