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

87 bug download url missing in scicat dataset #98

Merged
merged 6 commits into from
Aug 27, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Disable end to end test
phwissmann committed Aug 27, 2024
commit 3a5103a955ead33b1f6ab720c1e98aa1b396e88b
3 changes: 2 additions & 1 deletion backend/archiver/tests/test_e2e.py
Original file line number Diff line number Diff line change
@@ -227,7 +227,7 @@ async def test_end_to_end(scicat_token_setup, set_env, minio_client):

# Verify datablocks in MINIO
orig_datablocks = list(map(lambda idx: minio_client.stat_object(bucket_name="landingzone",
object_name=f"openem-network/datasets/{dataset_pid}/origdatablocks/{dataset_pid}_{idx}.tar.gz"), range(9)))
object_name=f"openem-network/datasets/{dataset_pid}/raw_files/file_{idx}.bin"), range(9)))
assert len(orig_datablocks) == 9

# trigger archive job in scicat
@@ -288,6 +288,7 @@ async def test_end_to_end(scicat_token_setup, set_env, minio_client):
retrieved_datablock = minio_client.stat_object(
bucket_name="retrieval", object_name=f"openem-network/datasets/{dataset_pid}/datablocks/{dataset_pid}_0.tar.gz")
assert retrieved_datablock is not None
assert retrieved_datablock.size > 80 * 1024 * 1024

# Verify Scicat datasetlifecycle
dataset = await get_scicat_dataset(dataset_pid=dataset_pid, token=scicat_token_setup)