From ba2226d75ae4bc132fd08bff76f18f7f9f3d8f88 Mon Sep 17 00:00:00 2001 From: mitto nagisa Date: Sat, 8 Aug 2015 13:39:30 +0900 Subject: [PATCH] fix failed test Fixed test for the credentials check is enhanced when you run from version 0.6.2 'terraform plan'. Ref: https://github.com/hashicorp/terraform/pull/2730 --- Library/Formula/terraform.rb | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/Library/Formula/terraform.rb b/Library/Formula/terraform.rb index 40f5e808b8bc..16f5fa93769d 100644 --- a/Library/Formula/terraform.rb +++ b/Library/Formula/terraform.rb @@ -134,34 +134,6 @@ def install end test do - minimal = testpath/"minimal.tf" - minimal.write <<-EOS.undent - variable "aws_region" { - default = "us-west-2" - } - - variable "aws_amis" { - default = { - eu-west-1 = "ami-b1cf19c6" - us-east-1 = "ami-de7ab6b6" - us-west-1 = "ami-3f75767a" - us-west-2 = "ami-21f78e11" - } - } - - # Specify the provider and access details - provider "aws" { - access_key = "this_is_a_fake_access" - secret_key = "this_is_a_fake_secret" - region = "${var.aws_region}" - } - - resource "aws_instance" "web" { - instance_type = "m1.small" - ami = "${lookup(var.aws_amis, var.aws_region)}" - count = 4 - } - EOS - system "#{bin}/terraform", "plan", "-var", "aws.region=us-west-2", testpath + system "#{bin}/terraform", "version" end end