From 5dbe02db2fa12ef40c616ab6ab3fc3513e9b9a74 Mon Sep 17 00:00:00 2001 From: Paul Abumov Date: Fri, 5 Apr 2024 17:16:51 -0400 Subject: [PATCH] Addressed Github issue #1133 --- docker/envs/env.dev | 21 +++++++++---------- .../config_validation/test_utils.py | 5 +++-- .../form_composer/test_remote_procedures.py | 5 +++-- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/docker/envs/env.dev b/docker/envs/env.dev index f5b1710ee..931d2241b 100644 --- a/docker/envs/env.dev +++ b/docker/envs/env.dev @@ -1,16 +1,15 @@ -# Uncomment and paste Prolific credentials here if you're using Prolific provider -# PROLIFIC_API_KEY="..." +# Paste Prolific credentials here if you're using Prolific provider +PROLIFIC_API_KEY=your_key # Uncomment and paste Mturk credentials here if you're using Mturk sandbox provider -# MTURK_SANDBOX_NAME="..." -# MTURK_SANDBOX_ACCESS_KEY_ID="..." -# MTURK_SANDBOX_SECRET_ACCESS_KEY="..." +# MTURK_SANDBOX_NAME=your_name +# MTURK_SANDBOX_ACCESS_KEY_ID=your_id +# MTURK_SANDBOX_SECRET_ACCESS_KEY=your_key -# Uncomment and paste AWS credentials here if you're using presigned S3 URLs -# AWS_ACCESS_KEY_ID=... -# AWS_SECRET_ACCESS_KEY=... -# AWS_DEFAULT_REGION=... -# -# S3_URL_EXPIRATION_MINUTES=60 +# Paste AWS credentials here if you're using presigned S3 URLs +AWS_ACCESS_KEY_ID=your_id +AWS_SECRET_ACCESS_KEY=your_key +AWS_DEFAULT_REGION=us-east-1 +S3_URL_EXPIRATION_MINUTES=60 CYPRESS_CACHE_FOLDER=/tmp diff --git a/test/generators/form_composer/config_validation/test_utils.py b/test/generators/form_composer/config_validation/test_utils.py index cb1bc9a94..5964a1736 100644 --- a/test/generators/form_composer/config_validation/test_utils.py +++ b/test/generators/form_composer/config_validation/test_utils.py @@ -240,8 +240,9 @@ def test_get_s3_presigned_url_success(self, mock_generate_presigned_url, *args, "ResponseContentType": content_type, }, }, - "S3Express": { - "bucket_name": s3_bucket, + "input_params": { + "Bucket": s3_bucket, + "Key": s3_key, }, "auth_type": "v4", "signing": { diff --git a/test/generators/form_composer/test_remote_procedures.py b/test/generators/form_composer/test_remote_procedures.py index 5b84e13d3..f2ed440eb 100644 --- a/test/generators/form_composer/test_remote_procedures.py +++ b/test/generators/form_composer/test_remote_procedures.py @@ -51,8 +51,9 @@ def test__get_presigned_url_success(self, mock_generate_presigned_url, *args, ** "ResponseContentType": content_type, }, }, - "S3Express": { - "bucket_name": s3_bucket, + "input_params": { + "Bucket": s3_bucket, + "Key": s3_key, }, "auth_type": "v4", "signing": {