Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: upgrade azurite and enable loose mode #5272

Merged
merged 2 commits into from
Jan 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 4 additions & 6 deletions tests/func/test_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down