test: use creds when testing external gs deps/outs

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2019-02-06 00:13:19 +02:00
parent 2c67b59fc0
commit 99ef6081c1
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -28,5 +28,4 @@ if [[ "$TRAVIS_PULL_REQUEST" == "false" && \
aws configure set region us-east-2
openssl enc -d -aes-256-cbc -md md5 -k $GCP_CREDS -in scripts/ci/gcp-creds.json.enc -out scripts/ci/gcp-creds.json
gcloud auth activate-service-account --key-file scripts/ci/gcp-creds.json
fi
+1 -1
View File
@@ -957,7 +957,7 @@ class TestReproExternalGS(TestReproExternalBase):
return "gsutil cp {} {}".format(i, o)
def write(self, bucket, key, body):
client = gc.Client()
client = gc.Client.from_service_account_json(self.GCP_CREDS_FILE)
bucket = client.bucket(bucket)
bucket.blob(key).upload_from_string(body)