File tree Expand file tree Collapse file tree
plugins/advisors/scanoss/src/funTest/kotlin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ import org.ossreviewtoolkit.utils.test.identifierToPackage
4343
4444@EnabledIf(ScanOssCheck ::class )
4545class ScanOssFunTest : WordSpec ({
46- val apiKey = checkNotNull(ScanOssCheck .getApiKey ())
46+ val apiKey = checkNotNull(ScanOssCheck .getScanOssApiKey ())
4747 val scanoss = ScanOssFactory .create(apiKey = Secret (apiKey))
4848
4949 " retrievePackageFindings()" should {
@@ -135,7 +135,8 @@ class ScanOssFunTest : WordSpec({
135135})
136136
137137internal object ScanOssCheck : Condition {
138- fun getApiKey (): String? = System .getenv(" SCANOSS_API_KEY" )
138+ fun getScanOssApiKey (): String? = System .getenv(" SCANOSS_API_KEY" )
139139
140- override fun evaluate (kclass : KClass <out Spec >): Boolean = getApiKey() != null
140+ // Vulnerabilities (and copyrights) are commercial features.
141+ override fun evaluate (kclass : KClass <out Spec >): Boolean = getScanOssApiKey() != null
141142}
You can’t perform that action at this time.
0 commit comments