mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
test: use creds when testing external gs deps/outs
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user