feat(SBOMER-225): Adjust bom-ref for container image manifests #1891
105 passed, 2 failed and 1 skipped
✅ cli/target/surefire-reports/TEST-org.jboss.sbomer.cli.test.unit.cli.PathConverterTest.xml
1 tests were completed in 594ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.cli.test.unit.cli.PathConverterTest | 1✅ | 594ms |
✅ org.jboss.sbomer.cli.test.unit.cli.PathConverterTest
✅ testConvert
✅ cli/target/surefire-reports/TEST-org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.PncBuildAdjusterTest.xml
1 tests were completed in 459ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.PncBuildAdjusterTest | 1✅ | 459ms |
✅ org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.PncBuildAdjusterTest
✅ shouldAddSerialNumber
✅ cli/target/surefire-reports/TEST-org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.SkopeoInspectTest.xml
1 tests were completed in 48ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.SkopeoInspectTest | 1✅ | 48ms |
✅ org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.SkopeoInspectTest
✅ parseSkopeoOutput
❌ cli/target/surefire-reports/TEST-org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.SyftImageAdjusterTest.xml
11 tests were completed in 6s with 9 passed, 2 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.SyftImageAdjusterTest | 9✅ | 2❌ | 6s |
❌ org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.SyftImageAdjusterTest
❌ metadataComponentShouldBeBareRepresentationOfMainComponent
org.opentest4j.AssertionFailedError: expected: <3893910a10b83660> but was: <pkg:oci/console-ui-rhel9@sha256%3Aee4e27734a21cc6b8a8597ef2af32822ad0b4677dbde0a794509f55cbaff5ab3?arch=amd64&os=linux&tag=2.7.0-8.1718294415>
✅ shouldAdjustNameAndPurl
✅ generatedDependenciesShouldHaveProperDependsOn
✅ removeAllRpmsLeavePrefix
✅ preserveRpmsWithPrefix
✅ shouldAdjustVendorAndPublisher
✅ preserveRpms
✅ removeAllRpms
✅ removeExternalReferencesWithBadURI
✅ shouldLeaveOnlyArchAndEpochQualifiers
❌ depdsShouldPointToComponents
org.opentest4j.AssertionFailedError: expected: <0> but was: <1>
✅ cli/target/surefire-reports/TEST-org.jboss.sbomer.cli.test.unit.feature.sbom.DefaultProcessorTest.xml
4 tests were completed in 4s with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.cli.test.unit.feature.sbom.DefaultProcessorTest | 4✅ | 4s |
✅ org.jboss.sbomer.cli.test.unit.feature.sbom.DefaultProcessorTest
✅ baseTest
✅ testAddBrewInfo
✅ testAddBrewInfoForRpm
✅ testProcessingWhenNoDataIsAvailable
✅ cli/target/surefire-reports/TEST-org.jboss.sbomer.cli.test.unit.generate.MavenDominoGeneratorTest.xml
8 tests were completed in 454ms with 8 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.cli.test.unit.generate.MavenDominoGeneratorTest | 8✅ | 454ms |
✅ org.jboss.sbomer.cli.test.unit.generate.MavenDominoGeneratorTest
✅ testGenerate
✅ testFailedWhenNoDominoDirProvided(Path)
✅ testFailedWhenDominoDoesntExistForDefaultVersion(Path, Path)
✅ testGenerateWithEmptyCustomArgs
✅ testFailedWhenDominoDirDoesntExistWithCustomVersion(Path, Path)
✅ testGenerateWithSettingsXml
✅ testGenerateWithCustomArgs
✅ testFailedWhenDominoDirDoesntExist(Path)
✅ cli/target/surefire-reports/TEST-org.jboss.sbomer.cli.test.unit.generate.ProcessRunnerTest.xml
4 tests were completed in 13ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.cli.test.unit.generate.ProcessRunnerTest | 4✅ | 13ms |
✅ org.jboss.sbomer.cli.test.unit.generate.ProcessRunnerTest
✅ notAWorkingDirectoryDirectoryProvided(Path)
✅ noCommandProvided
✅ noWorkDirProvided
✅ nonExistingWorkingDirectoryProvided
✅ cli/target/surefire-reports/TEST-org.jboss.sbomer.cli.test.unit.process.RedHatProductProcessorTest.xml
2 tests were completed in 11ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.cli.test.unit.process.RedHatProductProcessorTest | 2✅ | 11ms |
✅ org.jboss.sbomer.cli.test.unit.process.RedHatProductProcessorTest
✅ addAll
✅ addOnlyIfMissing
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest.xml
No tests found
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest | 325ms |
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest$DeliverableAnalysisConfigTests.xml
4 tests were completed in 17ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest$DeliverableAnalysisConfigTests | 4✅ | 17ms |
✅ org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest$DeliverableAnalysisConfigTests
✅ validateConfig
✅ shouldGracefullyFailOnNullConfig
✅ shouldNotFailOnValidProductConfig
✅ shouldNotFailOnValidMinimalConfig
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest$OperationConfigTests.xml
3 tests were completed in 22ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest$OperationConfigTests | 3✅ | 22ms |
✅ org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest$OperationConfigTests
✅ shouldNotFailOnValidConfig
✅ validateConfig
✅ shouldGracefullyFailOnNullConfig
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest$PncBuildConfigTests.xml
4 tests were completed in 48ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest$PncBuildConfigTests | 4✅ | 48ms |
✅ org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest$PncBuildConfigTests
✅ shouldNotFailOnValidConfig
✅ shouldFailOnInvalidObjectListingAllProblems
✅ shouldNotOnMissingRedHatProductProcessor
✅ shouldGracefullyFailOnNullConfig
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest$SyftConfigTests.xml
5 tests were completed in 226ms with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest$SyftConfigTests | 5✅ | 226ms |
✅ org.jboss.sbomer.core.test.unit.config.ConfigSchemaValidatorTest$SyftConfigTests
✅ shouldAllowProcessors
✅ shouldAllowDirectories
✅ minimalConfigShouldBeValid
✅ validateProductConfig
✅ validatePlainConfig
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.config.ConfigTest.xml
No tests found
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.config.ConfigTest | 64ms |
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.config.ConfigTest$DeliverableAnalysisConfigTest.xml
1 tests were completed in 2ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.config.ConfigTest$DeliverableAnalysisConfigTest | 1✅ | 2ms |
✅ org.jboss.sbomer.core.test.unit.config.ConfigTest$DeliverableAnalysisConfigTest
✅ shouldReturnDefault
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.config.ConfigTest$OperationConfigTest.xml
1 tests were completed in 4ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.config.ConfigTest$OperationConfigTest | 1✅ | 4ms |
✅ org.jboss.sbomer.core.test.unit.config.ConfigTest$OperationConfigTest
✅ shouldReturnDefault
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.config.ConfigTest$PncBuildConfigTest.xml
1 tests were completed in 2ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.config.ConfigTest$PncBuildConfigTest | 1✅ | 2ms |
✅ org.jboss.sbomer.core.test.unit.config.ConfigTest$PncBuildConfigTest
✅ shouldReturnDefault
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.config.ConfigTest$SyftImageConfigTest.xml
15 tests were completed in 9ms with 15 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.config.ConfigTest$SyftImageConfigTest | 15✅ | 9ms |
✅ org.jboss.sbomer.core.test.unit.config.ConfigTest$SyftImageConfigTest
org.jboss.sbomer.core.test.unit.config.ConfigTest
✅ shouldHandleInvalidType
✅ shouldConvertToAnalysisConfig
✅ shouldHandleInvalidContent
✅ shouldHandleNull
✅ shouldHandleEmptyObject
✅ shouldHandleNullValue
✅ shouldHandleEmptyString
✅ shouldHandleAdditionalWhitespace
✅ shouldConvertToPncBuildConfig
✅ shouldConvertToSyftImageConfig
✅ shouldConvertToOperationConfig
✅ shouldAddDefaultProcessor
✅ shouldReturnNewInstance
✅ shouldReturnValidProcessorCommand
✅ shouldReturnValidProcessorCommandForRhProduct
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.config.ProductConfigTest.xml
2 tests were completed in 4ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.config.ProductConfigTest | 2✅ | 4ms |
✅ org.jboss.sbomer.core.test.unit.config.ProductConfigTest
✅ testGenerateOperationCommand
✅ testGenerateCommand
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.config.SbomerConfigProviderTest.xml
No tests found
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.config.SbomerConfigProviderTest | 108ms |
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.config.SbomerConfigProviderTest$ConfigAdjusting.xml
7 tests were completed in 10ms with 7 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.config.SbomerConfigProviderTest$ConfigAdjusting | 7✅ | 10ms |
✅ org.jboss.sbomer.core.test.unit.config.SbomerConfigProviderTest$ConfigAdjusting
org.jboss.sbomer.core.test.unit.config.SbomerConfigProviderTest
✅ shouldReturnDefaultGenerationConfig
✅ shouldNotAdjustExplicitGeneratorVersion
✅ shouldProvideDefaultValues
✅ shouldNotAdjustExplicitGeneratorOperationArgs
✅ shouldNotAddTwiceDefaultProcessor
✅ shouldNotFailOnEmptyProducts
✅ shouldNotAdjustExplicitGeneratorArgs
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.MavenCommandLineParserTest.xml
12 tests were completed in 510ms with 12 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.MavenCommandLineParserTest | 12✅ | 510ms |
✅ org.jboss.sbomer.core.test.unit.MavenCommandLineParserTest
✅ tackleDivaCoreTest
✅ windupMtrWebDistributionTest
✅ windupParentTest
✅ jwsTomcatTest
✅ windupOperatorTest
✅ windupMtrCliTest
✅ windupMtrMavenPluginTest
✅ windupOpenShiftParentTest
✅ tackleDoubleMvnCommandTest
✅ tackleAlternativePomFileTest
✅ windupWebParentTest
✅ windupRulesetsTest
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.SbomUtilsTest.xml
No tests found
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.SbomUtilsTest | 1s |
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.SbomUtilsTest$SbomUtilsTestNested.xml
16 tests were completed in 1s with 15 passed, 0 failed and 1 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.SbomUtilsTest$SbomUtilsTestNested | 15✅ | 1⚪ | 1s |
✅ org.jboss.sbomer.core.test.unit.SbomUtilsTest$SbomUtilsTestNested
org.jboss.sbomer.core.test.unit.SbomUtilsTest
✅ testUpdatePurl
✅ shouldSetPncMetadata
✅ shouldHandleGitProtocolUrlsForPedigrees
✅ shouldRemoveErrataPropertiesFromJsonNode
✅ shouldNotFailOnEmptyPropertiesFindProperty
✅ shouldRemoveErrataPropertiesFromBom
✅ shouldSetBrewMetadata
✅ shouldCreateMetadata
✅ shouldNotFailOnNullPropertiesFindProperty
✅ shouldNotFailOnNullFindProperty
✅ shouldHandleRegularProtocolUrlsForPedigrees
✅ shouldCreateComponent
✅ shouldReadSbomFromString
✅ shouldReadSbomFromFile
✅ shouldNotFailOnNullRemoveErrataProperties
⚪ shouldReadFromFileAndConvertToJsonNode
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.UrlUtilsTest.xml
No tests found
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.UrlUtilsTest | 42ms |
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.unit.UrlUtilsTest$QualifiersTest.xml
4 tests were completed in 22ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.unit.UrlUtilsTest$QualifiersTest | 4✅ | 22ms |
✅ org.jboss.sbomer.core.test.unit.UrlUtilsTest$QualifiersTest
✅ testHandleEmptyAllowList
✅ testHandleNullValues
✅ testHandleNullAllowList
✅ testHandleAllowList
✅ core/target/surefire-reports/TEST-org.jboss.sbomer.core.test.validation.CycloneDxBomValidatorTest.xml
1 tests were completed in 1s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
org.jboss.sbomer.core.test.validation.CycloneDxBomValidatorTest | 1✅ | 1s |
✅ org.jboss.sbomer.core.test.validation.CycloneDxBomValidatorTest
✅ testBomValidation
Annotations
github-actions / Test Results
org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.SyftImageAdjusterTest ► metadataComponentShouldBeBareRepresentationOfMainComponent
Failed test found in:
cli/target/surefire-reports/TEST-org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.SyftImageAdjusterTest.xml
Error:
org.opentest4j.AssertionFailedError: expected: <3893910a10b83660> but was: <pkg:oci/console-ui-rhel9@sha256%3Aee4e27734a21cc6b8a8597ef2af32822ad0b4677dbde0a794509f55cbaff5ab3?arch=amd64&os=linux&tag=2.7.0-8.1718294415>
Raw output
org.opentest4j.AssertionFailedError: expected: <3893910a10b83660> but was: <pkg:oci/console-ui-rhel9@sha256%3Aee4e27734a21cc6b8a8597ef2af32822ad0b4677dbde0a794509f55cbaff5ab3?arch=amd64&os=linux&tag=2.7.0-8.1718294415>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
at org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.SyftImageAdjusterTest.metadataComponentShouldBeBareRepresentationOfMainComponent(SyftImageAdjusterTest.java:222)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
github-actions / Test Results
org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.SyftImageAdjusterTest ► depdsShouldPointToComponents
Failed test found in:
cli/target/surefire-reports/TEST-org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.SyftImageAdjusterTest.xml
Error:
org.opentest4j.AssertionFailedError: expected: <0> but was: <1>
Raw output
org.opentest4j.AssertionFailedError: expected: <0> but was: <1>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:531)
at org.jboss.sbomer.cli.test.unit.feature.sbom.adjust.SyftImageAdjusterTest.depdsShouldPointToComponents(SyftImageAdjusterTest.java:178)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)