mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-28 03:17:41 +08:00
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>
30 lines
1.1 KiB
Python
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)
|