Add test for non-boolean values in ssh_private_ip for FixerAmazonPrivateIP
This commit is contained in:
parent
e4faa98b6f
commit
04de86d211
@ -75,3 +75,19 @@ func TestFixerAmazonPrivateIP(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestFixerAmazonPrivateIPNonBoolean(t *testing.T) {
|
||||||
|
var f FixerAmazonPrivateIP
|
||||||
|
|
||||||
|
input := map[string]interface{}{
|
||||||
|
"builders": []map[string]interface{}{map[string]interface{}{
|
||||||
|
"type": "amazon-ebs",
|
||||||
|
"ssh_private_ip": "not-a-boolean-value",
|
||||||
|
}},
|
||||||
|
}
|
||||||
|
|
||||||
|
_, err := f.Fix(input)
|
||||||
|
if err == nil {
|
||||||
|
t.Fatal("should have errored")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user