diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-23 23:45:03 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-23 23:45:03 +0100 |
commit | a60b2982ad8b2a9966fb16aa251ea21a376d711a (patch) | |
tree | 83597ea8546ab8d97dcd30ca67252985e04f7574 /test/models | |
parent | d1f04420a1890705d4c4965d3f3296edee578920 (diff) | |
download | govuk-mini-environment-admin-a60b2982ad8b2a9966fb16aa251ea21a376d711a.tar govuk-mini-environment-admin-a60b2982ad8b2a9966fb16aa251ea21a376d711a.tar.gz |
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).
Diffstat (limited to 'test/models')
-rw-r--r-- | test/models/backends/terraform_aws_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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' } |