From 9f7debdbb538480d5ee1fd24d524082b5c183a59 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Wed, 27 Sep 2023 14:40:03 +0200 Subject: [PATCH] test(clearly-defined): Do not test against the development server 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 --- ...lyDefinedPackageCurationProviderFunTest.kt | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/plugins/package-curation-providers/clearly-defined/src/funTest/kotlin/ClearlyDefinedPackageCurationProviderFunTest.kt b/plugins/package-curation-providers/clearly-defined/src/funTest/kotlin/ClearlyDefinedPackageCurationProviderFunTest.kt index 951d3b23f2ca5..2d2f263bf9b42 100644 --- a/plugins/package-curation-providers/clearly-defined/src/funTest/kotlin/ClearlyDefinedPackageCurationProviderFunTest.kt +++ b/plugins/package-curation-providers/clearly-defined/src/funTest/kotlin/ClearlyDefinedPackageCurationProviderFunTest.kt @@ -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(