Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Fix system tests #713

Merged
merged 7 commits into from
May 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions scripts/run_system_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ set -ev

# If we're on Travis, we need to set up the environment.
if [[ "${TRAVIS}" == "true" ]]; then
# If merging to master and not a pull request, run system test.
if [[ "${TRAVIS_BRANCH}" == "master" ]] && \
[[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
echo "Running in Travis during merge, decrypting stored key file."
# If secure variables are available, run system test.
if [[ "${TRAVIS_SECURE_ENV_VARS}" ]]; then
echo "Running in Travis, decrypting stored key file."
# Convert encrypted JSON key file into decrypted file to be used.
openssl aes-256-cbc -K ${OAUTH2CLIENT_KEY} \
-iv ${OAUTH2CLIENT_IV} \
Expand All @@ -34,8 +33,8 @@ if [[ "${TRAVIS}" == "true" ]]; then
-in tests/data/key.p12.enc \
-out ${OAUTH2CLIENT_TEST_P12_KEY_PATH} -d
# Convert encrypted User JSON key file into decrypted file to be used.
openssl aes-256-cbc -K ${OAUTH2CLIENT_KEY} \
-iv ${OAUTH2CLIENT_IV} \
openssl aes-256-cbc -K ${encrypted_1ee98544e5ca_key} \
-iv ${encrypted_1ee98544e5ca_iv} \
-in tests/data/user-key.json.enc \
-out ${OAUTH2CLIENT_TEST_USER_KEY_PATH} -d
else
Expand Down
Binary file modified tests/data/user-key.json.enc
Binary file not shown.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ deps =
pycrypto>=2.6
cryptography>=1.0
pyopenssl>=0.14
passenv = GOOGLE_* OAUTH2CLIENT_* TRAVIS*
passenv = GOOGLE_* OAUTH2CLIENT_* TRAVIS* encrypted_*

This comment was marked as spam.

This comment was marked as spam.


[testenv:system-tests3]
basepython =
Expand Down