diff --git a/advisor/src/funTest/kotlin/OsvFunTest.kt b/advisor/src/funTest/kotlin/OsvFunTest.kt index 90ed9bfd2eedc..e7a6f1fadd889 100644 --- a/advisor/src/funTest/kotlin/OsvFunTest.kt +++ b/advisor/src/funTest/kotlin/OsvFunTest.kt @@ -42,7 +42,7 @@ class OsvFunTest : StringSpec({ "Go::github.com/nats-io/nats-server/v2:2.1.0", "Maven:com.jfinal:jfinal:1.4", "NPM::rebber:1.0.0", - "NuGet::Microsoft.ChakraCore:1.10.0", + "NuGet:Microsoft:ChakraCore:1.10.0", "Pub::http:0.13.1", "PyPI::Plone:3.2" ).mapTo(mutableSetOf()) { diff --git a/downloader/src/test/kotlin/VersionControlSystemTest.kt b/downloader/src/test/kotlin/VersionControlSystemTest.kt index e43812ece3089..ccc15f1078b57 100644 --- a/downloader/src/test/kotlin/VersionControlSystemTest.kt +++ b/downloader/src/test/kotlin/VersionControlSystemTest.kt @@ -31,7 +31,6 @@ import java.io.IOException import java.lang.UnsupportedOperationException import org.ossreviewtoolkit.downloader.vcs.Git -import org.ossreviewtoolkit.model.Identifier import org.ossreviewtoolkit.model.Package import org.ossreviewtoolkit.model.VcsInfo import org.ossreviewtoolkit.model.VcsType @@ -77,10 +76,9 @@ class VersionControlSystemTest : WordSpec({ "getRevisionCandidates()" should { "prefer a matching tag name over a branch name from metadata" { val pkg = Package.EMPTY.copy( - id = Identifier("Gem::google-cloud-core:1.6.0"), vcsProcessed = VcsInfo( type = VcsType.GIT, - url = "https://github.com/googleapis/google-cloud-ruby.git", + url = "", revision = "master" ) ) @@ -96,12 +94,10 @@ class VersionControlSystemTest : WordSpec({ "add 'main' as a candidate for Git if otherwise 'master' is the only one" { val pkg = Package.EMPTY.copy( - id = Identifier("NuGet::Microsoft.NETFramework.ReferenceAssemblies.net40:1.0.0-preview.2"), vcsProcessed = VcsInfo( type = VcsType.GIT, - url = "https://github.com/Microsoft/dotnet.git", - revision = "master", - path = "releases/reference-assemblies" + url = "", + revision = "master" ) )