fixed a plan test
This commit is contained in:
parent
42b4f18b3f
commit
4483f54987
2 changed files with 4 additions and 5 deletions
|
@ -430,8 +430,7 @@ class TestTerraform:
|
||||||
with pytest.raises(TerraformCommandError) as e:
|
with pytest.raises(TerraformCommandError) as e:
|
||||||
tf.plan(plan)
|
tf.plan(plan)
|
||||||
assert (
|
assert (
|
||||||
e.value.err
|
"\nError: Unsupported argument\n\n" in e.value.err
|
||||||
== """\nError: Missing required argument\n\nThe argument "region" is required, but was not set.\n\n"""
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_fmt(self, fmt_test_file):
|
def test_fmt(self, fmt_test_file):
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
variable "ami" {
|
variable "ami" {
|
||||||
default = "foo"
|
default = "foo"
|
||||||
type = "string"
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "list" {
|
variable "list" {
|
||||||
default = []
|
default = []
|
||||||
type = "list"
|
type = list
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "map" {
|
variable "map" {
|
||||||
default = {}
|
default = {}
|
||||||
type = "map"
|
type = map
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_instance" "bar" {
|
resource "aws_instance" "bar" {
|
||||||
|
|
Loading…
Reference in a new issue