mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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:
parent
5f344c9590
commit
d13a932dac
@ -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())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -9,5 +9,5 @@ locals {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_instance" "two" {
|
resource "aws_instance" "two" {
|
||||||
val = local.one_id
|
value = local.one_id
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user