Skip to content

Commit

Permalink
TC-1593 CycloneDX SBOM package to Product relationship is missing: so…
Browse files Browse the repository at this point in the history
…rted HasMetadata output

Signed-off-by: mrizzi <[email protected]>
  • Loading branch information
mrizzi committed Jun 25, 2024
1 parent 095c075 commit dbaaba0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion internal/testing/e2e-trustification/e2e
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ time go run ./cmd/guacone collect files ${GUAC_DIR}/internal/testing/testdata/ex

echo @@@@ Running TC_1593 queries and validating output

cat "$queries" | gql-cli http://localhost:8080/query -o TC_1593_HasMetadata | jq 'del(.. | .id?) | .HasMetadata' > "${GUAC_DIR}/gotTC_1593_HasMetadata.json"
cat "$queries" | gql-cli http://localhost:8080/query -o TC_1593_HasMetadata | jq 'del(.. | .id?) | .HasMetadata | sort ' > "${GUAC_DIR}/gotTC_1593_HasMetadata.json"
diff -u "${SCRIPT_DIR}/expectTC_1593_HasMetadata.json" "${GUAC_DIR}/gotTC_1593_HasMetadata.json"

cat "$queries" | gql-cli http://localhost:8080/query -o TC_1593_FindDependentProduct | jq 'del(.. | .id?) | del(.. | .downloadLocation?) | .findDependentProduct' > "${GUAC_DIR}/gotTC_1593_FindDependentProduct.json"
Expand Down
32 changes: 16 additions & 16 deletions internal/testing/e2e-trustification/expectTC_1593_HasMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"namespace": "com.fasterxml.jackson.core",
"names": [
{
"name": "jackson-core",
"name": "jackson-annotations",
"versions": [
{
"version": "2.14.0",
Expand All @@ -31,13 +31,13 @@
"type": "maven",
"namespaces": [
{
"namespace": "org.projectlombok",
"namespace": "com.fasterxml.jackson.core",
"names": [
{
"name": "lombok",
"name": "jackson-core",
"versions": [
{
"version": "1.16.6",
"version": "2.14.0",
"qualifiers": [
{
"key": "type",
Expand All @@ -58,13 +58,13 @@
"type": "maven",
"namespaces": [
{
"namespace": "log4j",
"namespace": "com.fasterxml.jackson.core",
"names": [
{
"name": "log4j",
"name": "jackson-databind",
"versions": [
{
"version": "1.2.17",
"version": "2.14.0",
"qualifiers": [
{
"key": "type",
Expand All @@ -85,13 +85,13 @@
"type": "maven",
"namespaces": [
{
"namespace": "pom-with-deps-no-ignore",
"namespace": "log4j",
"names": [
{
"name": "pom-with-dependency-not-ignored-for-tests",
"name": "log4j",
"versions": [
{
"version": "0.0.1",
"version": "1.2.17",
"qualifiers": [
{
"key": "type",
Expand All @@ -112,13 +112,13 @@
"type": "maven",
"namespaces": [
{
"namespace": "com.fasterxml.jackson.core",
"namespace": "org.projectlombok",
"names": [
{
"name": "jackson-databind",
"name": "lombok",
"versions": [
{
"version": "2.14.0",
"version": "1.16.6",
"qualifiers": [
{
"key": "type",
Expand All @@ -139,13 +139,13 @@
"type": "maven",
"namespaces": [
{
"namespace": "com.fasterxml.jackson.core",
"namespace": "pom-with-deps-no-ignore",
"names": [
{
"name": "jackson-annotations",
"name": "pom-with-dependency-not-ignored-for-tests",
"versions": [
{
"version": "2.14.0",
"version": "0.0.1",
"qualifiers": [
{
"key": "type",
Expand Down

0 comments on commit dbaaba0

Please sign in to comment.