diff options
author | Christopher Baines <mail@cbaines.net> | 2018-05-28 20:45:15 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-05-30 20:17:50 +0100 |
commit | 40e2d6f41c2b49a3077afe9fe066895d558f595e (patch) | |
tree | b10fc750e4cae48cd5f15514734bf98ab1c63642 /test | |
parent | f5f7adc1d517dba42e2e73a23511d35422ce9d31 (diff) | |
download | govuk-mini-environment-admin-40e2d6f41c2b49a3077afe9fe066895d558f595e.tar govuk-mini-environment-admin-40e2d6f41c2b49a3077afe9fe066895d558f595e.tar.gz |
Fix the terraform aws controller test
These were broken when adding some additional fields.
Diffstat (limited to 'test')
-rw-r--r-- | test/controllers/backends/terraform_aws_controller_test.rb | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/test/controllers/backends/terraform_aws_controller_test.rb b/test/controllers/backends/terraform_aws_controller_test.rb index 41373b8..be575f1 100644 --- a/test/controllers/backends/terraform_aws_controller_test.rb +++ b/test/controllers/backends/terraform_aws_controller_test.rb @@ -15,7 +15,10 @@ class Backends::TerraformAwsControllerTest < ActionDispatch::IntegrationTest label: 'Test Backend', aws_region: 'test-region', aws_access_key_id: 'test-access-key-id', - aws_secret_access_key: 'test-secret-access-key' + aws_secret_access_key: 'test-secret-access-key', + route_53_zone_id: 'test-route-53-zone-id', + efs_file_system_id: 'test-efs-file-system-id', + vpc_id: 'test-vpc-id' } post( @@ -40,7 +43,10 @@ class Backends::TerraformAwsControllerTest < ActionDispatch::IntegrationTest label: 'Old label', aws_region: 'old-test-region', aws_access_key_id: 'old-test-access-key-id', - aws_secret_access_key: 'old-test-secret-access-key' + aws_secret_access_key: 'old-test-secret-access-key', + route_53_zone_id: 'old-test-route-53-zone-id', + efs_file_system_id: 'test-efs-file-system-id', + vpc_id: 'test-vpc-id' ) new_attributes = { @@ -66,7 +72,10 @@ class Backends::TerraformAwsControllerTest < ActionDispatch::IntegrationTest label: 'Test Backend', aws_region: 'old-test-region', aws_access_key_id: 'old-test-access-key-id', - aws_secret_access_key: 'old-test-secret-access-key' + aws_secret_access_key: 'old-test-secret-access-key', + route_53_zone_id: 'old-test-route-53-zone-id', + efs_file_system_id: 'test-efs-file-system-id', + vpc_id: 'test-vpc-id' ) get terraform_aws_backend_path(backend) @@ -79,7 +88,10 @@ class Backends::TerraformAwsControllerTest < ActionDispatch::IntegrationTest label: 'Test Backend', aws_region: 'old-test-region', aws_access_key_id: 'old-test-access-key-id', - aws_secret_access_key: 'old-test-secret-access-key' + aws_secret_access_key: 'old-test-secret-access-key', + route_53_zone_id: 'old-test-route-53-zone-id', + efs_file_system_id: 'test-efs-file-system-id', + vpc_id: 'test-vpc-id' ) delete terraform_aws_backend_path(backend) |