From edb92e93bfee0d2c6ae705c54d58dee33dcbd3df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20St=C3=B6lzle?= Date: Thu, 12 Mar 2020 16:38:07 +0100 Subject: [PATCH] Add Terraform tests Closes #68 --- .automation/test/terraform/README.md | 0 .automation/test/terraform/init.tf | 3 +++ .automation/test/terraform/terraform_bad_1.tf | 4 ++++ .automation/test/terraform/terraform_good_1.tf | 4 ++++ 4 files changed, 11 insertions(+) create mode 100644 .automation/test/terraform/README.md create mode 100644 .automation/test/terraform/init.tf create mode 100644 .automation/test/terraform/terraform_bad_1.tf create mode 100644 .automation/test/terraform/terraform_good_1.tf diff --git a/.automation/test/terraform/README.md b/.automation/test/terraform/README.md new file mode 100644 index 00000000..e69de29b diff --git a/.automation/test/terraform/init.tf b/.automation/test/terraform/init.tf new file mode 100644 index 00000000..c1259402 --- /dev/null +++ b/.automation/test/terraform/init.tf @@ -0,0 +1,3 @@ +provider "aws" { + region = "us-east-1" +} diff --git a/.automation/test/terraform/terraform_bad_1.tf b/.automation/test/terraform/terraform_bad_1.tf new file mode 100644 index 00000000..780a0839 --- /dev/null +++ b/.automation/test/terraform/terraform_bad_1.tf @@ -0,0 +1,4 @@ +resource "aws_instance" "bad" { + ami = "ami-0ff8a91507f77f867" + instance_type = "t.2xlarge" # invalid type! +} diff --git a/.automation/test/terraform/terraform_good_1.tf b/.automation/test/terraform/terraform_good_1.tf new file mode 100644 index 00000000..1da458e4 --- /dev/null +++ b/.automation/test/terraform/terraform_good_1.tf @@ -0,0 +1,4 @@ +resource "aws_instance" "good" { + ami = "ami-0ff8a91507f77f867" + instance_type = "t2.small" +}