Skip to content

Commit

Permalink
Restore AWS_SECRET_ACCESS_KEY on S3 local test (#5832)
Browse files Browse the repository at this point in the history
* Restore AWS_SECRET_ACCESS_KEY

* Add reason for restoring keys
  • Loading branch information
kthui authored May 23, 2023
1 parent 9ed44ae commit c1ad1bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qa/L0_storage_S3_local/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -341,6 +342,8 @@ else
RET=1
fi
fi
# Restore keys for destroying buckets
export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY_BACKUP

# Destroy buckets
for BUCKET_SUFFIX in 1 2; do
Expand Down

0 comments on commit c1ad1bf

Please sign in to comment.