From d0e6cb5f91b29caaeb06fe459590d2c0c514c8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Boutemy?= Date: Tue, 16 Jan 2024 08:27:55 +0100 Subject: [PATCH] test dependency type=zip for #431 (reverts #9) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hervé Boutemy --- src/it/makeBom/pom.xml | 6 ++++++ src/it/makeBom/verify.groovy | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/src/it/makeBom/pom.xml b/src/it/makeBom/pom.xml index 3c1ecc8a..85324ca6 100644 --- a/src/it/makeBom/pom.xml +++ b/src/it/makeBom/pom.xml @@ -74,6 +74,12 @@ cyclonedx-core-java 7.2.1 + + com.ibm.websphere.appserver.features + wlp-nd-license + 23.0.0.12 + zip + diff --git a/src/it/makeBom/verify.groovy b/src/it/makeBom/verify.groovy index 4f548021..0c4bac1c 100644 --- a/src/it/makeBom/verify.groovy +++ b/src/it/makeBom/verify.groovy @@ -13,6 +13,10 @@ assert !bomFileJson.text.contains('"timestamp"') assert bomFileJson.text.contains('"name" : "cdx:reproducible",') assert bomFileJson.text.contains('"value" : "enabled"') +// dependency type=zip: check that artifact is described with license info (issue #431) +assert bomFileJson.text.contains('"group" : "com.ibm.websphere.appserver.features"') +assert bomFileJson.text.contains('"name" : "IBM International License Agreement for Non-Warranted Programs",') + File bomAggregateFileXml = new File(basedir, "target/bom-makeAggregateBom.xml") File bomAggregateFileJson = new File(basedir, "target/bom-makeAggregateBom.json")