mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
test: use gauth
This commit is contained in:
@@ -45,6 +45,8 @@ def _should_test_gcp():
|
||||
if os.path.exists(creds):
|
||||
os.unlink(creds)
|
||||
shutil.copyfile(TestDvc.GCP_CREDS_FILE, creds)
|
||||
ret = os.system('gcloud auth activate-service-account --key-file={}'.format(creds))
|
||||
assert ret == 0
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user