terraform: fix tests

This commit is contained in:
Mitchell Hashimoto 2014-07-22 08:29:49 -07:00
parent c6474b3e5c
commit e59ff6e92c
3 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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 {

View File

@ -1,3 +1,7 @@
variable "value" {
default = ""
}
resource "aws_instance" "foo" {
num = "2"
compute = "dynamical"