def test_compatible_component_versions_snapshot_qualifier(self) -> None: self.assertEqual( BuildTarget(version="1.1.2", architecture="x86", patches=["1.1.0", "1.1.1"], snapshot=True, qualifier="alpha1").compatible_component_versions, ['1.1.2.0-alpha1-SNAPSHOT', '1.1.0.0-alpha1', '1.1.1.0-alpha1', '1.1.0.0-alpha1-SNAPSHOT', '1.1.1.0-alpha1-SNAPSHOT'], )
def setUp(self) -> None: self.builder = BuilderFromSource( InputComponentFromSource({ "name": "sample_component", "repository": "url", "ref": "ref" }), BuildTarget( name="OpenSearch", version="1.1.0", platform="linux", architecture="x64", snapshot=False, ), ) self.builder_distribution = BuilderFromSource( InputComponentFromSource({ "name": "OpenSearch", "repository": "url", "ref": "ref" }), BuildTarget( name="OpenSearch", version="1.3.0", platform="linux", architecture="x64", distribution="tar", snapshot=False, ), ) self.builder_distribution_support = BuilderFromSource( InputComponentFromSource({ "name": "sample_component", "repository": "url", "ref": "ref" }), BuildTarget( name="OpenSearch", version="1.3.0", platform="linux", architecture="x64", distribution="rpm", snapshot=False, ), ) self.builder_distribution_support_component_not_found = BuilderFromSource( InputComponentFromSource({ "name": "not_found_component", "repository": "url", "ref": "ref" }), BuildTarget( name="OpenSearch", version="1.3.0", platform="linux", architecture="x64", distribution="rpm", snapshot=False, ), )