Skip to content

Commit

Permalink
Adjusted testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Huanca committed Oct 23, 2018
1 parent 842cae0 commit ddfb5ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ requirements: bin/terraform ## Install required software

test: requirements ## Execute all tests
@echo "Temp directory: $(TEMPDIR)"
@cp tests/provider.tf temp_provider.tf
@bin/terraform init > /dev/null 2>&1
@for i in `find . -name terraform.\*.tfvars.example`; do \
bin/terraform plan -var-file $$i 1> $(TEMPDIR)/$$i.output && \
Expand Down
8 changes: 8 additions & 0 deletions tests/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
variable "aws_access_key" {}
variable "aws_secret_key" {}

provider "aws" {
access_key = "${var.aws_access_key}"
secret_key = "${var.aws_secret_key}"
region = "${var.aws_region}"
}

0 comments on commit ddfb5ad

Please sign in to comment.