Files
davelopezandJohn Chilton 1ecf59c154 Test get_data_head against SeaweedFS-backed boto3 and cloud stores
The mocked unit tests can't show that a real S3-compatible store behaves as
assumed. Run get_data_head against SeaweedFS for a stale empty cached copy,
an empty dataset and a missing object.

The tests are a mixin of the existing boto3 and cloud test classes, which
have the same configuration, so they start no Galaxy servers of their own.

Co-authored-by: John Chilton <jmchilton@gmail.com>
2026-10-30 12:58:19 +01:00

30 lines
1.1 KiB
Python

from galaxy_test.driver import integration_util
from ._base import (
BaseCloudObjectStoreIntegrationTestCase,
GetDataHeadTests,
)
TEST_TOOL_IDS = [
"multi_output",
"multi_output_configured",
"composite_output",
"metadata",
"output_format",
]
class TestCloudObjectStoreIntegration(BaseCloudObjectStoreIntegrationTestCase, GetDataHeadTests):
def test_big_dataset_roundtrip(self):
# 12 MiB crosses the configured 5 MiB multipart threshold, so this
# dataset uploads to SeaweedFS through cloudbridge's multipart path.
with self.dataset_populator.test_history() as history_id:
content = ("x" * 1023 + "\n") * (12 * 1024)
hda = self.dataset_populator.new_dataset(history_id, content=content, wait=True)
fetched = self.dataset_populator.get_history_dataset_content(history_id, dataset=hda)
assert len(fetched) == len(content)
assert fetched == content
instance = integration_util.integration_module_instance(TestCloudObjectStoreIntegration)
test_tools = integration_util.integration_tool_runner(TEST_TOOL_IDS)