Skip to content

Commit c8b44dd

Browse files
authored
TST: update gbq service account key (#35090)
Re-enable gbq integration tests.
1 parent 6a7e775 commit c8b44dd

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

ci/travis_encrypt_gbq.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if [[ ! -f $GBQ_JSON_FILE ]]; then
1919
fi
2020

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

2525
echo "Adding your secure key to travis_gbq_config.txt ..."

ci/travis_gbq.json.enc

0 Bytes
Binary file not shown.

ci/travis_gbq_config.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
TRAVIS_IV_ENV=encrypted_1d9d7b1f171b_iv
2-
TRAVIS_KEY_ENV=encrypted_1d9d7b1f171b_key
1+
TRAVIS_IV_ENV=encrypted_e05c934e101e_iv
2+
TRAVIS_KEY_ENV=encrypted_e05c934e101e_key

ci/travis_process_gbq_encryption.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [[ -n ${SERVICE_ACCOUNT_KEY} ]]; then
77
elif [[ -n ${!TRAVIS_IV_ENV} ]]; then
88
openssl aes-256-cbc -K ${!TRAVIS_KEY_ENV} -iv ${!TRAVIS_IV_ENV} \
99
-in ci/travis_gbq.json.enc -out ci/travis_gbq.json -d;
10-
export GBQ_PROJECT_ID='pandas-travis';
10+
export GBQ_PROJECT_ID='pandas-gbq-tests';
1111
echo 'Successfully decrypted gbq credentials'
1212
fi
1313

pandas/tests/io/test_gbq.py

-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ def mock_read_gbq(sql, **kwargs):
148148

149149

150150
@pytest.mark.single
151-
@pytest.mark.xfail(reason="skipping gbq integration for now, xref #34779")
152151
class TestToGBQIntegrationWithServiceAccountKeyPath:
153152
@pytest.fixture()
154153
def gbq_dataset(self):

0 commit comments

Comments
 (0)