core: Fix TestContext2Apply_scaleInMultivarRef

We have no "val" attribute defined in the schema, so we'll use "value"
here instead.
This commit is contained in:
Martin Atkins 2018-09-13 10:17:35 -07:00
parent 5f344c9590
commit d13a932dac
2 changed files with 4 additions and 8 deletions

View File

@ -9775,7 +9775,7 @@ func TestContext2Apply_scaleInMultivarRef(t *testing.T) {
Primary: &InstanceState{ Primary: &InstanceState{
ID: "foo", ID: "foo",
Attributes: map[string]string{ Attributes: map[string]string{
"val": "foo", "value": "foo",
}, },
}, },
Provider: "provider.aws", Provider: "provider.aws",
@ -9798,13 +9798,9 @@ func TestContext2Apply_scaleInMultivarRef(t *testing.T) {
}) })
_, diags := ctx.Plan() _, diags := ctx.Plan()
if diags.HasErrors() { assertNoErrors(t, diags)
t.Fatalf("plan failed: %s", diags.Err())
}
// Applying the plan should now succeed // Applying the plan should now succeed
_, diags = ctx.Apply() _, diags = ctx.Apply()
if diags.HasErrors() { assertNoErrors(t, diags)
t.Fatalf("apply failed: %s", diags.Err())
}
} }

View File

@ -9,5 +9,5 @@ locals {
} }
resource "aws_instance" "two" { resource "aws_instance" "two" {
val = local.one_id value = local.one_id
} }