Skip to content

Commit

Permalink
test(clearly-defined): Do not test against the development server
Browse files Browse the repository at this point in the history
The development server is less stable and might suffer from occasional
configuration errors or disappearing curations, so do not rely on it in
tests.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Sep 27, 2023
1 parent 2f3708f commit 9f7debd
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,30 +70,6 @@ class ClearlyDefinedPackageCurationProviderFunTest : WordSpec({
}
}

"The development server" should {
val provider = ClearlyDefinedPackageCurationProvider(Server.DEVELOPMENT)

"return an existing curation for the platform-express NPM package" {
val packages = createPackagesFromIds("NPM:@nestjs:platform-express:6.2.3")

withRetry {
val curations = provider.getCurationsFor(packages)

curations.map { it.data.concludedLicense } shouldHaveSingleElement "Apache-1.0".toSpdx()
}
}

"return no curation for a non-existing dummy Maven package" {
val packages = createPackagesFromIds("Maven:group:name:1.2.3")

withRetry {
val curations = provider.getCurationsFor(packages)

curations should beEmpty()
}
}
}

"Curations" should {
"get filtered by score" {
val config = ClearlyDefinedPackageCurationProviderConfig(
Expand Down

0 comments on commit 9f7debd

Please sign in to comment.