From aa2660ff81a319df2c781b9ac5e4e3d3f9d7b3d3 Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Tue, 3 Sep 2024 15:00:52 +0200 Subject: [PATCH] enable integration test --- test/functional/tools/sample_tool_conf.xml | 1 + test/integration/test_container_resolvers.py | 52 ++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/test/functional/tools/sample_tool_conf.xml b/test/functional/tools/sample_tool_conf.xml index 80c032c93601..576dbebeffed 100644 --- a/test/functional/tools/sample_tool_conf.xml +++ b/test/functional/tools/sample_tool_conf.xml @@ -275,6 +275,7 @@ + diff --git a/test/integration/test_container_resolvers.py b/test/integration/test_container_resolvers.py index 1d1fda4739ea..1b4864dacd96 100644 --- a/test/integration/test_container_resolvers.py +++ b/test/integration/test_container_resolvers.py @@ -539,6 +539,58 @@ class TestDefaultContainerResolvers(DockerContainerResolverTestCase, ContainerRe } +class TestDefaultContainerResolversWithBuildInfo(DockerContainerResolverTestCase, ContainerResolverTestCases, MulledTestCaseWithBuildInfo): + """ + Same as TestDefaultContainerResolvers but with a tool using build info + serves to check if the mulled hashes are cumputed correctly + """ + + assumptions: Dict[str, Any] = { + "run": { + "output": [ + "bedtools v2.26.0", + "samtools: error while loading shared libraries: libcrypto.so.1.0.0", + ], + "cached": True, + "resolver_type": "mulled", # only used to check mulled / explicit + "cache_name": f"quay.io/biocontainers/{MulledTestCaseWithBuildInfo.mulled_hash}", + "cache_namespace": "biocontainers", + }, + "list": [ + { + "resolver_type": "mulled", + "identifier": f"quay.io/biocontainers/{MulledTestCaseWithBuildInfo.mulled_hash}", + "cached": False, + "cache_name": f"quay.io/biocontainers/{MulledTestCaseWithBuildInfo.mulled_hash}", + "cache_namespace": "biocontainers", + }, + { + "resolver_type": "mulled", + "identifier": f"quay.io/biocontainers/{MulledTestCaseWithBuildInfo.mulled_hash}", + "cached": False, + "cache_name": f"quay.io/biocontainers/{MulledTestCaseWithBuildInfo.mulled_hash}", + "cache_namespace": "biocontainers", + }, + ], + "build": [ + { + "resolver_type": "mulled", + "identifier": f"quay.io/biocontainers/{MulledTestCaseWithBuildInfo.mulled_hash}", + "cached": True, + "cache_name": f"quay.io/biocontainers/{MulledTestCaseWithBuildInfo.mulled_hash}", + "cache_namespace": "biocontainers", + }, + { + "resolver_type": "cached_mulled", + "identifier": f"quay.io/biocontainers/{MulledTestCaseWithBuildInfo.mulled_hash}", + "cached": True, + "cache_name": f"quay.io/biocontainers/{MulledTestCaseWithBuildInfo.mulled_hash}", + "cache_namespace": "biocontainers", + }, + ], + } + + class TestDefaultSingularityContainerResolvers( SingularityContainerResolverTestCase, ContainerResolverTestCases, MulledTestCase ):