From fa9a79008bf5c1e4f2c058e7069e0812c0930eb6 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sun, 1 Jul 2018 03:01:16 +0300 Subject: [PATCH] test: use gauth --- tests/test_data_cloud.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_data_cloud.py b/tests/test_data_cloud.py index 066f6c6a6..ba8a16ab4 100644 --- a/tests/test_data_cloud.py +++ b/tests/test_data_cloud.py @@ -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