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

View File

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