Commit Graph
24 Commits
Author SHA1 Message Date
Ruslan Kuprieiev 4069e34130 dvc: use black instead of flake8
Fixes #1546

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2019-01-30 03:48:36 +02:00
Ruslan Kuprieiev a67988a80e test: enable flake8 checks for tests
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-12-06 06:40:55 +02:00
Ruslan Kuprieiev c02fe1313f config: support 'global' and 'system' configs
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-12-01 02:31:14 +02:00
Ruslan Kuprieiev 7493804312 root: don't check project's lock
Fixes #1260

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-10-23 16:53:26 +03:00
Ruslan Kuprieiev 637fc29b79 test: config: add test for failed write
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-19 08:24:55 +03:00
Ruslan Kuprieiev 0a3a124756 test: cover "Invalid option value" for config
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-19 08:24:55 +03:00
Ruslan Kuprieiev ff51b1ae04 test: add test for local config
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-19 08:24:55 +03:00
Ruslan Kuprieiev 7c90cbab79 test: test root
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 21:02:43 +03:00
Ruslan Kuprieiev 0a951f5ab3 dvc: move cloud/ drivers to remote/
Fixes #741

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-06-20 19:42:33 +03:00
Ruslan Kuprieiev fb4633072e dvc: introduce remotes
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-04-05 21:31:20 +03:00
Ruslan Kuprieiev 5a8aef28f5 config: empty config by default + format verification
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-04-05 01:51:52 +03:00
Ruslan Kuprieiev fa43309222 config: rename 'Global' section to 'Core'
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-03-08 09:04:28 +02:00
Ruslan Kuprieiev d87e8e47af test: add test for non-existing sections/fields in config
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-02-27 04:20:32 +02:00
Ruslan Kuprieiev 8d1832d602 test: add test for modyfing config
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-02-12 17:58:02 +02:00
Ruslan Kuprieiev e4d9755a7e dvc: cloud RFC add support for directories
Fixes #367

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-01-22 03:19:29 +02:00
Ruslan Kuprieiev a130a25e39 dvc: refactor data_cloud
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-01-15 21:11:25 +02:00
Ruslan Kuprieiev f47a2c7585 dvc: initial unittests
Initial unittests for new design.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-01-01 16:52:06 +02:00
Dmitry Petrov 5c062aadaf Extract AWS credentials from data_cloud.py 2017-08-04 19:30:04 -07:00
Dmitry Petrov 0e3278641c Small tests headers fixes 2017-06-19 18:21:58 -07:00
Ruslan Kuprieiev 4078e902d1 test_config: python3 fix
1) use io for StringIO in python3
2) use builtins instead of __builtin__
3) use StringIO instead of BytesIO when mocking aws config
Othervise this test fails on python3.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2017-06-12 00:22:19 +03:00
Ruslan Kuprieiev 0d3ef3c22f test: fix test_config
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2017-06-11 22:25:43 +03:00
Ruslan Kuprieiev a01ef3197c dvc: misc changes for DataCloud, 'data sync' and 'remove'
This patch introduces DataCloud class that used config to
determine proper cloud class(DataCloudAWS and DataCloudGCP
are awailable) to use in "data_sync" and "remove" commands.

This patch focuses on introducing the common class itself
saving original code and definetly needs some RFC later.

It also adds simple DataCloudLOCAL class that uses directory
as a StoragePath and cp as a sync method. Which makes testing
so much easier and covers local scenarios.

And it also introduces ability to run data sync in parallel
by collecting files first and then running sync in a number
of threads.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2017-05-28 22:28:58 +03:00
Dmitry Petrov e2f39a522a Fix unit tests 2017-05-02 23:12:57 -07:00
Earl Hathaway 0a6d831bfc tests around reading aws credentials 2017-04-22 17:28:02 -07:00