From 693b70cf9d1da5a4d868ad1fa9241b79cbd9fe7b Mon Sep 17 00:00:00 2001 From: kthui <18255193+kthui@users.noreply.github.com> Date: Mon, 22 May 2023 16:27:02 -0700 Subject: [PATCH 1/2] Restore AWS_SECRET_ACCESS_KEY --- qa/L0_storage_S3_local/test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qa/L0_storage_S3_local/test.sh b/qa/L0_storage_S3_local/test.sh index 5ab79f15ee..4d7210bc74 100755 --- a/qa/L0_storage_S3_local/test.sh +++ b/qa/L0_storage_S3_local/test.sh @@ -321,6 +321,7 @@ kill $SERVER_PID wait $SERVER_PID # Test access decline +AWS_SECRET_ACCESS_KEY_BACKUP=$AWS_SECRET_ACCESS_KEY export AWS_SECRET_ACCESS_KEY="[Invalid]" SERVER_ARGS="--model-repository=s3://localhost:4572/${BUCKET_NAME}1 --exit-timeout-secs=120" SERVER_LOG="./inference_server.access_decline.log" @@ -341,6 +342,7 @@ else RET=1 fi fi +export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY_BACKUP # Destroy buckets for BUCKET_SUFFIX in 1 2; do From 12a5449af238d063bbf712c0539b30c53bc18410 Mon Sep 17 00:00:00 2001 From: kthui <18255193+kthui@users.noreply.github.com> Date: Mon, 22 May 2023 16:54:36 -0700 Subject: [PATCH 2/2] Add reason for restoring keys --- qa/L0_storage_S3_local/test.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/qa/L0_storage_S3_local/test.sh b/qa/L0_storage_S3_local/test.sh index 4d7210bc74..27d5e67daa 100755 --- a/qa/L0_storage_S3_local/test.sh +++ b/qa/L0_storage_S3_local/test.sh @@ -342,6 +342,7 @@ else RET=1 fi fi +# Restore keys for destroying buckets export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY_BACKUP # Destroy buckets