mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-13 09:32:24 -06:00
terraform: fix tests
This commit is contained in:
parent
c6474b3e5c
commit
e59ff6e92c
@ -196,7 +196,8 @@ func (i *VariableInterpolation) Interpolate(
|
||||
v, ok := vs[i.key]
|
||||
if !ok {
|
||||
return "", fmt.Errorf(
|
||||
"%s: value for variable '%s' not found", v)
|
||||
"%s: value for variable not found",
|
||||
i.key)
|
||||
}
|
||||
|
||||
return v, nil
|
||||
|
@ -1168,10 +1168,6 @@ func TestContextPlan_computed(t *testing.T) {
|
||||
t.Fatalf("err: %s", err)
|
||||
}
|
||||
|
||||
if len(plan.Diff.Resources) < 2 {
|
||||
t.Fatalf("bad: %#v", plan.Diff.Resources)
|
||||
}
|
||||
|
||||
actual := strings.TrimSpace(plan.String())
|
||||
expected := strings.TrimSpace(testTerraformPlanComputedStr)
|
||||
if actual != expected {
|
||||
|
@ -1,3 +1,7 @@
|
||||
variable "value" {
|
||||
default = ""
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {
|
||||
num = "2"
|
||||
compute = "dynamical"
|
||||
|
Loading…
Reference in New Issue
Block a user