diff --git a/scanner/src/funTest/kotlin/provenance/DefaultNestedProvenanceResolverFunTest.kt b/scanner/src/funTest/kotlin/provenance/DefaultNestedProvenanceResolverFunTest.kt index 912456c2c2616..8d513800a92c2 100644 --- a/scanner/src/funTest/kotlin/provenance/DefaultNestedProvenanceResolverFunTest.kt +++ b/scanner/src/funTest/kotlin/provenance/DefaultNestedProvenanceResolverFunTest.kt @@ -203,6 +203,20 @@ class DefaultNestedProvenanceResolverFunTest : WordSpec() { NestedProvenance(root = provenance, subRepositories = emptyMap()) } } + + "work for Subversion tags".config(enabled = false /* This needs fixing, see ORT issue 6160. */) { + val provenance = RepositoryProvenance( + vcsInfo = VcsInfo( + type = VcsType.SUBVERSION, + url = "https://svn.apache.org/repos/asf/xerces/xml-commons", + revision = "tags/xml-commons-external-1_3_03" + ), + resolvedRevision = "380970" + ) + + resolver.resolveNestedProvenance(provenance) shouldBe + NestedProvenance(root = provenance, subRepositories = emptyMap()) + } } } } diff --git a/scanner/src/funTest/kotlin/provenance/DefaultPackageProvenanceResolverFunTest.kt b/scanner/src/funTest/kotlin/provenance/DefaultPackageProvenanceResolverFunTest.kt index bdb7ad7188d6f..81721e149e838 100644 --- a/scanner/src/funTest/kotlin/provenance/DefaultPackageProvenanceResolverFunTest.kt +++ b/scanner/src/funTest/kotlin/provenance/DefaultPackageProvenanceResolverFunTest.kt @@ -136,6 +136,23 @@ class DefaultPackageProvenanceResolverFunTest : WordSpec() { resolvedRevision = "ad0367b7b9920144a47b8d30cc0c84cea102b821" ) } + + "work for Subversion tags" { + val pkg = Package.EMPTY.copy( + id = Identifier("Maven:xml-apis:xml-apis:1.3.03"), + vcsProcessed = VcsInfo( + type = VcsType.SUBVERSION, + url = "https://svn.apache.org/repos/asf/xerces/xml-commons", + revision = "tags/xml-commons-external-1_3_03" + ) + ) + + resolver.resolveProvenance(pkg, listOf(SourceCodeOrigin.VCS)) shouldBe + RepositoryProvenance( + vcsInfo = pkg.vcsProcessed, + resolvedRevision = "380970" + ) + } } "Resolving the provenance for multiple origins" should {