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{
|
||||
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)
|
||||
}
|
||||
|
@ -9,5 +9,5 @@ locals {
|
||||
}
|
||||
|
||||
resource "aws_instance" "two" {
|
||||
val = local.one_id
|
||||
value = local.one_id
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user