Skip to content

TST: update gbq service account key #35090

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

Merged
merged 1 commit into from
Jul 9, 2020
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
2 changes: 1 addition & 1 deletion ci/travis_encrypt_gbq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [[ ! -f $GBQ_JSON_FILE ]]; then
fi

echo "Encrypting $GBQ_JSON_FILE..."
read -d "\n" TRAVIS_KEY TRAVIS_IV <<<$(travis encrypt-file $GBQ_JSON_FILE \
read -d "\n" TRAVIS_KEY TRAVIS_IV <<<$(travis encrypt-file -r pandas-dev/pandas $GBQ_JSON_FILE \
travis_gbq.json.enc -f | grep -o "\w*_iv\|\w*_key");

echo "Adding your secure key to travis_gbq_config.txt ..."
Expand Down
Binary file modified ci/travis_gbq.json.enc
Binary file not shown.
4 changes: 2 additions & 2 deletions ci/travis_gbq_config.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
TRAVIS_IV_ENV=encrypted_1d9d7b1f171b_iv
TRAVIS_KEY_ENV=encrypted_1d9d7b1f171b_key
TRAVIS_IV_ENV=encrypted_e05c934e101e_iv
TRAVIS_KEY_ENV=encrypted_e05c934e101e_key
2 changes: 1 addition & 1 deletion ci/travis_process_gbq_encryption.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ -n ${SERVICE_ACCOUNT_KEY} ]]; then
elif [[ -n ${!TRAVIS_IV_ENV} ]]; then
openssl aes-256-cbc -K ${!TRAVIS_KEY_ENV} -iv ${!TRAVIS_IV_ENV} \
-in ci/travis_gbq.json.enc -out ci/travis_gbq.json -d;
export GBQ_PROJECT_ID='pandas-travis';
export GBQ_PROJECT_ID='pandas-gbq-tests';
echo 'Successfully decrypted gbq credentials'
fi

1 change: 0 additions & 1 deletion pandas/tests/io/test_gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ def mock_read_gbq(sql, **kwargs):


@pytest.mark.single
@pytest.mark.xfail(reason="skipping gbq integration for now, xref #34779")
class TestToGBQIntegrationWithServiceAccountKeyPath:
@pytest.fixture()
def gbq_dataset(self):
Expand Down