Unverified Commit ff504d9d authored by mvdbeek's avatar mvdbeek
Browse files

Extend data bundle integration test to use S3 object store, check that cache can be repopulated

parent 27991b95
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
import os
import shutil

from galaxy.util.compression_utils import decompress_bytes_to_directory
from .objectstore._base import BaseSwiftObjectStoreIntegrationTestCase
from .test_tool_data_delete import DataManagerIntegrationTestCase


class TestDataBundlesIntegration(DataManagerIntegrationTestCase):
class TestDataBundlesIntegration(BaseSwiftObjectStoreIntegrationTestCase, DataManagerIntegrationTestCase):
    def test_admin_build_data_bundle_by_uri(self):
        original_count = self._testbeta_field_count()

@@ -24,6 +26,9 @@ class TestDataBundlesIntegration(DataManagerIntegrationTestCase):
        post_job_count = self._testbeta_field_count()
        assert original_count == post_job_count

        shutil.rmtree(self.object_store_cache_path)
        os.makedirs(self.object_store_cache_path)

        content = self.dataset_populator.get_history_dataset_content(
            history_id, to_ext="data_manager_json", type="bytes"
        )