From a60b2982ad8b2a9966fb16aa251ea21a376d711a Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 23 Jun 2018 23:45:03 +0100 Subject: Switch to using the public AWS domain of the build machine Rather than the configured domain, as the corresponding SSH key shouldn't change for the AWS domain (whereas it does for the configured domain, if the machine changes). --- test/models/backends/terraform_aws_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/models') diff --git a/test/models/backends/terraform_aws_test.rb b/test/models/backends/terraform_aws_test.rb index 1a98440..f9a34f3 100644 --- a/test/models/backends/terraform_aws_test.rb +++ b/test/models/backends/terraform_aws_test.rb @@ -3,9 +3,20 @@ require 'test_helper' class Backends::TerraformAwsTest < ActiveSupport::TestCase setup do @backend = Backends::TerraformAws.new + + backend_latest_terraform_state = mock + backend_latest_terraform_state + .stubs(:output_value) + .returns('example.com') + + @backend.stubs(:backend_latest_terraform_state).returns( + backend_latest_terraform_state + ) + @mini_environment = MiniEnvironment.new( id: 1, name: 'Test Mini Environment', + backend: @backend, backend_data: { 'build_output' => '/gnu/store/testbuildoutput' } -- cgit v1.2.3