add gdrive remote profile field to config

This commit is contained in:
Ivan Shcheklein
2022-07-27 23:29:18 +03:00
committed by Ruslan Kuprieiev
parent 44a4fb59a7
commit 9ff18502b6
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -219,6 +219,7 @@ SCHEMA = {
**REMOTE_COMMON,
},
"gdrive": {
"profile": str,
"gdrive_use_service_account": Bool,
"gdrive_client_id": str,
"gdrive_client_secret": str,
+10
View File
@@ -279,6 +279,16 @@ def test_load_relative_paths(dvc, field, remote_url):
)
def test_config_gdrive_fields(tmp_dir, dvc):
with dvc.config.edit() as conf:
conf["remote"]["test"] = {
"url": "gdrive://root/test",
"profile": "myprofile",
}
Config(validate=True)
def test_config_remote(tmp_dir, dvc, capsys):
(tmp_dir / ".dvc" / "config").write_text(
"['remote \"myremote\"']\n"