From 4483f549872894079bc8baf02e271c353470c68e Mon Sep 17 00:00:00 2001 From: bom Date: Wed, 19 Jan 2022 16:26:50 +0100 Subject: [PATCH] fixed a plan test --- test/test_terraform.py | 3 +-- test/vars_require_input/main.tf | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/test/test_terraform.py b/test/test_terraform.py index 1f36b5e..e45b265 100644 --- a/test/test_terraform.py +++ b/test/test_terraform.py @@ -430,8 +430,7 @@ class TestTerraform: with pytest.raises(TerraformCommandError) as e: tf.plan(plan) assert ( - e.value.err - == """\nError: Missing required argument\n\nThe argument "region" is required, but was not set.\n\n""" + "\nError: Unsupported argument\n\n" in e.value.err ) def test_fmt(self, fmt_test_file): diff --git a/test/vars_require_input/main.tf b/test/vars_require_input/main.tf index d3eaed3..1638666 100644 --- a/test/vars_require_input/main.tf +++ b/test/vars_require_input/main.tf @@ -1,16 +1,16 @@ variable "ami" { default = "foo" - type = "string" + type = string } variable "list" { default = [] - type = "list" + type = list } variable "map" { default = {} - type = "map" + type = map } resource "aws_instance" "bar" {