Skip to content

Commit

Permalink
can't push an empty folder
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorcary committed Sep 25, 2024
1 parent 2a70c4f commit 03dcfb9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/api2/test_cloud_sync_storj.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"bucket": STORJ_IX_BUCKET,
"folder": "",
}
DIR_NAME = "a"
FILENAME = "a"


def test_storj_verify():
Expand All @@ -48,9 +48,9 @@ def test_storj_list_buckets(storj_credential):

@pytest.fixture(scope="module")
def storj_sync(storj_credential):
"""Reset the remote bucket to only contain a single empty folder."""
"""Reset the remote bucket to only contain a single empty file."""
with dataset("test_storj_sync") as ds:
ssh(f"mkdir /mnt/{ds}/{DIR_NAME}")
ssh(f"touch /mnt/{ds}/{FILENAME}")
with task({
"direction": "PUSH",
"transfer_mode": "SYNC",
Expand All @@ -67,7 +67,7 @@ def test_storj_list_directory(storj_credential, storj_sync):
"attributes": TASK_ATTRIBUTES,
})
assert len(result) == 1
assert result[0]["Name"] == DIR_NAME
assert result[0]["Name"] == FILENAME


def test_storj_pull(storj_credential, storj_sync):
Expand All @@ -81,4 +81,4 @@ def test_storj_pull(storj_credential, storj_sync):
}) as t:
run_task(t)

assert ssh(f"ls /mnt/{ds}") == DIR_NAME + "\n"
assert ssh(f"ls /mnt/{ds}") == FILENAME + "\n"

0 comments on commit 03dcfb9

Please sign in to comment.