tests: upgrade azurite and enable loose mode (#5272)

* tests: upgrade azurite and enable loose mode

Azure tests started failing recently. They still work with real azure, so this is on azurite side.

* tests: use cloud instead of workspace

also gdrive doesn't support it yet :(
This commit is contained in:
Ruslan Kuprieiev
2021-01-14 20:07:24 +02:00
committed by GitHub
parent 3e42e015d6
commit a2cac8b423
2 changed files with 6 additions and 7 deletions
+2 -1
View File
@@ -2,7 +2,8 @@
version: '3.2'
services:
azurite:
image: mcr.microsoft.com/azure-storage/azurite:3.9.0
image: mcr.microsoft.com/azure-storage/azurite:3.10.0
command: azurite -L -l /data --blobHost 0.0.0.0 --queueHost 0.0.0.0
ports:
- "10000"
oss:
+4 -6
View File
@@ -279,20 +279,18 @@ def test_walk_dont_ignore_subrepos(tmp_dir, scm, dvc):
@pytest.mark.parametrize(
"workspace",
"cloud",
[
pytest.lazy_fixture("local_cloud"),
pytest.lazy_fixture("s3"),
pytest.lazy_fixture("gs"),
pytest.lazy_fixture("gdrive"),
pytest.lazy_fixture("hdfs"),
pytest.lazy_fixture("http"),
],
indirect=True,
)
def test_tree_getsize(dvc, workspace):
workspace.gen({"data": {"foo": "foo"}, "baz": "baz baz"})
tree = get_cloud_tree(dvc, url=workspace.url)
def test_tree_getsize(dvc, cloud):
cloud.gen({"data": {"foo": "foo"}, "baz": "baz baz"})
tree = get_cloud_tree(dvc, **cloud.config)
path_info = tree.path_info
assert tree.getsize(path_info / "baz") == 7