Skip to content

Commit de0b0d3

Browse files
authored
Improve error message when running integration tests without AWS credentials (#128)
1 parent a409c8f commit de0b0d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/run_integration_tests.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ script_utc_start_time=$(date -u +"%Y%m%dT%H%M%S")
2424

2525
mismatch_found=false
2626

27+
if [ -z "$AWS_SECRET_ACCESS_KEY" ]; then
28+
echo "No AWS credentials were found in the environment."
29+
echo "Note that only Datadog employees can run these integration tests."
30+
exit 1
31+
fi
32+
2733
if [ -z "$DD_API_KEY" ]; then
2834
echo "No DD_API_KEY env var set, exiting"
2935
exit 1

0 commit comments

Comments
 (0)