Skip to content

Commit

Permalink
test(fossid): Align the way to call scanPackage()
Browse files Browse the repository at this point in the history
Use the same helper function here as used in all other tests.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Jan 15, 2024
1 parent 2cf9032 commit 8bc273e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions plugins/scanners/fossid/src/test/kotlin/FossIdTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ class FossIdTest : WordSpec({
val projectCode = projectCode(PROJECT)
val scanCode = scanCode(PROJECT, null)
val config = createConfig(deltaScans = false)
val pkgId = createIdentifier(index = 1)
val vcsInfo = createVcsInfo()

val service = FossIdRestService.create(config.serverUrl)
Expand All @@ -586,15 +587,7 @@ class FossIdTest : WordSpec({

shouldTimeout(1000.milliseconds) {
runInterruptible {
fossId.scanPackage(
createPackage(createIdentifier(index = 1), vcsInfo),
null,
ScanContext(
labels = emptyMap(),
packageType = PackageType.PACKAGE,
Excludes()
)
)
fossId.scan(createPackage(pkgId, vcsInfo))
}
}

Expand Down

0 comments on commit 8bc273e

Please sign in to comment.