-
Couldn't load subscription status.
- Fork 1.1k
Integration tests #3591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration tests #3591
Changes from 13 commits
11497fc
4599a8a
84a8e47
ab5580a
3a905a5
0ee45e4
2605a09
76c5520
65bc01c
d8bd75c
30b41a9
634da03
cce503c
ed8b8f6
609c09a
c04388c
35d18f4
9f472dd
554378b
a7fb3cb
a48d221
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,8 @@ AWS_ROLE_SESSION_NAME="$3" | |
|
|
||
| echo "Setting the run environment" | ||
| export TEST_ASSUME_ROLE_ARN=arn:aws:iam::${AWS_ACCOUNT}:role/IntegrationTest | ||
| cd ${PREFIX_DIR}/aws-sdk-cpp | ||
| SERVICE_ID=$(git status generated/src/aws-cpp-sdk-* --porcelain | grep "generated/src/" | sed -n 's|.*generated/src/aws-cpp-sdk-\([^/]*\).*|\1|p' | sort -u | tr "\n" "," | sed "s/,$//") | ||
|
||
| export TEST_LAMBDA_CODE_PATH=${PREFIX_DIR}/aws-sdk-cpp/tests/aws-cpp-sdk-lambda-integration-tests/resources | ||
| export sts=$(aws sts assume-role --role-arn "$TEST_ASSUME_ROLE_ARN" --role-session-name "${AWS_ROLE_SESSION_NAME}" --query 'Credentials.[AccessKeyId,SecretAccessKey,SessionToken]') | ||
| export profile=sdk-integ-test | ||
|
|
@@ -32,4 +34,4 @@ export AWS_PROFILE=$profile | |
| export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${PREFIX_DIR}/al2-install/lib64/:${PREFIX_DIR}/al2-build/tests/testing-resources/" | ||
| cd "${PREFIX_DIR}/al2-build" | ||
| if [ -f "${PREFIX_DIR}/aws-sdk-cpp/tools/scripts/suppressions.txt" ]; then export LSAN_OPTIONS=suppressions="${PREFIX_DIR}/aws-sdk-cpp/tools/scripts/suppressions.txt"; fi | ||
| python3 ../aws-sdk-cpp/tools/scripts/run_integration_tests.py --testDir ./tests | ||
| python3 ../aws-sdk-cpp/tools/scripts/run_integration_tests.py --testDir ./tests --serviceId ${SERVICE_ID:-""} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: for this type of operation we really should be using
pushdandpopd, i.e.this was the directory remains the same before and after the operatoin you ran. right now you cd into a dir and dont return, that may not have any complications now, but could in the future.