From 3c2ab6593ae1eb7eb671f98bd5b52c59c4955f23 Mon Sep 17 00:00:00 2001 From: David McCown Date: Wed, 11 Apr 2018 14:13:23 -0500 Subject: [PATCH] Fixes configuration for Azure integrationt tests (#2941) Updates some calls in train so we can access the configuration options for some integration tests. Signed-off-by: David McCown --- Rakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 76c1c397f..0118635e1 100644 --- a/Rakefile +++ b/Rakefile @@ -162,7 +162,8 @@ namespace :test do sh("cd #{integration_dir}/build/ && terraform workspace new #{tf_workspace}") # Generate Azure crendentials - creds = Train.create('azure').connection.connect + connection = Train.create('azure').connection + creds = connection.options # Determine the storage account name and the admin password sa_name = (0...15).map { (65 + rand(26)).chr }.join.downcase @@ -208,7 +209,8 @@ namespace :test do abort("You must either call the top-level test:azure task, or set the INSPEC_TERRAFORM_ENV variable.") unless tf_workspace puts '----> Cleanup' - creds = Train.create('azure').connection.connect + connection = Train.create('azure').connection + creds = connection.options cmd = "" cmd += "cd #{integration_dir}/build/ && terraform destroy -force "