From a6dc5865fccf607b6882cf16b20b940abd37ecf5 Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Fri, 15 Dec 2023 15:57:19 +0000 Subject: [PATCH] Fix failing AWS CLI calls when no region is used --- tests/script_removes_all_files/expected_variables.json | 2 +- tests/script_removes_all_files/terraform.tfvars | 1 + tests/script_retains_all_files/expected_variables.json | 2 +- tests/script_retains_all_files/terraform.tfvars | 1 + tests/test_data_retrieval_with_no_arn/expected_variables.json | 2 +- tests/test_data_retrieval_with_no_arn/terraform.tfvars | 1 + 6 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/script_removes_all_files/expected_variables.json b/tests/script_removes_all_files/expected_variables.json index f1d03e8..cb379fa 100644 --- a/tests/script_removes_all_files/expected_variables.json +++ b/tests/script_removes_all_files/expected_variables.json @@ -10,6 +10,6 @@ "aws_cli_query": "max_by(Contents, &Size)", "external_id": "", "profile": "", - "region": "", + "region": "eu-west-1", "role_session_name": "" } diff --git a/tests/script_removes_all_files/terraform.tfvars b/tests/script_removes_all_files/terraform.tfvars index 208923c..084f346 100644 --- a/tests/script_removes_all_files/terraform.tfvars +++ b/tests/script_removes_all_files/terraform.tfvars @@ -1,4 +1,5 @@ aws_cli_commands = ["s3api", "list-objects", "--bucket=ryft-public-sample-data", "--no-sign-request"] aws_cli_query = "max_by(Contents, &Size)" +region = "eu-west-1" alternative_path = "test-reports/script_removes_all_files/aws" diff --git a/tests/script_retains_all_files/expected_variables.json b/tests/script_retains_all_files/expected_variables.json index a72bffd..75318c0 100644 --- a/tests/script_retains_all_files/expected_variables.json +++ b/tests/script_retains_all_files/expected_variables.json @@ -10,6 +10,6 @@ "aws_cli_query": "max_by(Contents, &Size)", "external_id": "", "profile": "", - "region": "", + "region": "eu-west-1", "role_session_name": "" } diff --git a/tests/script_retains_all_files/terraform.tfvars b/tests/script_retains_all_files/terraform.tfvars index b6c0251..66fa8f7 100644 --- a/tests/script_retains_all_files/terraform.tfvars +++ b/tests/script_retains_all_files/terraform.tfvars @@ -1,4 +1,5 @@ aws_cli_commands = ["s3api", "list-objects", "--bucket=ryft-public-sample-data", "--no-sign-request"] aws_cli_query = "max_by(Contents, &Size)" +region = "eu-west-1" alternative_path = "test-reports/script_retains_all_files/aws" diff --git a/tests/test_data_retrieval_with_no_arn/expected_variables.json b/tests/test_data_retrieval_with_no_arn/expected_variables.json index a1dddc4..0467f8f 100644 --- a/tests/test_data_retrieval_with_no_arn/expected_variables.json +++ b/tests/test_data_retrieval_with_no_arn/expected_variables.json @@ -10,6 +10,6 @@ "aws_cli_query": "max_by(Contents, &Size)", "external_id": "", "profile": "", - "region": "", + "region": "eu-west-1", "role_session_name": "" } diff --git a/tests/test_data_retrieval_with_no_arn/terraform.tfvars b/tests/test_data_retrieval_with_no_arn/terraform.tfvars index 6f5f123..19b59e1 100644 --- a/tests/test_data_retrieval_with_no_arn/terraform.tfvars +++ b/tests/test_data_retrieval_with_no_arn/terraform.tfvars @@ -1,4 +1,5 @@ aws_cli_commands = ["s3api", "list-objects", "--bucket=ryft-public-sample-data", "--no-sign-request"] aws_cli_query = "max_by(Contents, &Size)" +region = "eu-west-1" alternative_path = "test-reports/test_data_retrieval_with_no_arn/aws"