Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #111 from hashicorp/iam-fix
Browse files Browse the repository at this point in the history
Disable region eu-north-1 as it's missing instance types
  • Loading branch information
Etiene authored Jan 22, 2019
2 parents 056106d + ed9bf68 commit d681333
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/consul_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ const AWS_DEFAULT_REGION_ENV_VAR = "AWS_DEFAULT_REGION"
// 3. Deploying that AMI using the consul-cluster Terraform code
// 4. Checking that the Consul cluster comes up within a reasonable time period and can respond to requests
func runConsulClusterTest(t *testing.T, packerBuildName string, examplesFolder string, packerTemplatePath string, sshUser string, enterpriseUrl string) {
runConsulClusterTestWithVars(t,
packerBuildName,
examplesFolder,
packerTemplatePath,
sshUser,
map[string]interface{}{},
enterpriseUrl)
runConsulClusterTestWithVars(t,
packerBuildName,
examplesFolder,
packerTemplatePath,
sshUser,
map[string]interface{}{},
enterpriseUrl)
}

func runConsulClusterTestWithVars(t *testing.T, packerBuildName string, examplesFolder string, packerTemplatePath string, sshUser string, terraformVarsMerge map[string]interface{}, enterpriseUrl string) {
exampleFolder := test_structure.CopyTerraformFolderToTemp(t, REPO_ROOT, examplesFolder)

test_structure.RunTestStage(t, "setup_ami", func() {
awsRegion := aws.GetRandomRegion(t, nil, nil)
awsRegion := aws.GetRandomRegion(t, nil, []string{"eu-north-1"})
test_structure.SaveString(t, exampleFolder, SAVED_AWS_REGION, awsRegion)

amiId := buildAmi(t, packerTemplatePath, packerBuildName, awsRegion, enterpriseUrl)
Expand Down

0 comments on commit d681333

Please sign in to comment.