From ada6f45871b50d0cd35b615d24a3061e86fe94b4 Mon Sep 17 00:00:00 2001 From: Pam Selle <204372+pselle@users.noreply.github.com> Date: Wed, 30 Sep 2020 13:55:45 -0400 Subject: [PATCH] Add test file for bad sensitive value Adds a test file for an incorrectly typed (non-boolean) sensitive value to ensure it errors --- configs/testdata/invalid-files/variable-bad-sensitive.tf | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 configs/testdata/invalid-files/variable-bad-sensitive.tf diff --git a/configs/testdata/invalid-files/variable-bad-sensitive.tf b/configs/testdata/invalid-files/variable-bad-sensitive.tf new file mode 100644 index 000000000..0a0e25650 --- /dev/null +++ b/configs/testdata/invalid-files/variable-bad-sensitive.tf @@ -0,0 +1,7 @@ +terraform { + experiments = [sensitive_variables] +} + +variable "sensitive-value" { + sensitive = "123" # must be boolean +}