From b0ae5bb99a81619e59d4ea4641347a82ee55b92d Mon Sep 17 00:00:00 2001 From: Gergely Csatari Date: Thu, 7 Nov 2024 15:50:19 +0200 Subject: [PATCH] Synching tests to the implementation Signed-off-by: Gergely Csatari --- tools/openchain_telco_sbom_validator/testing/test-test.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tools/openchain_telco_sbom_validator/testing/test-test.sh b/tools/openchain_telco_sbom_validator/testing/test-test.sh index 221e854..6f18700 100755 --- a/tools/openchain_telco_sbom_validator/testing/test-test.sh +++ b/tools/openchain_telco_sbom_validator/testing/test-test.sh @@ -28,7 +28,6 @@ function test_no_supplier_no_checksum assert_terminated_normally assert_exit_fail assert_has_output - assert_output_contains "libldap-2.4-2 | Supplier field is missing" assert_output_contains "libldap-2.4-2 | Checksum field is missing" assert_output_contains "The SPDX file test-sbom-01.spdx is not compliant with the OpenChain Telco SBOM Guide" } @@ -44,12 +43,7 @@ function test_no_name_no_version_no_supplier assert_output_contains "Package without a name" assert_output_contains "golang.org/x/sync-empty- | Package without a package" assert_output_contains "golang.org/x/sync- | Package without a package" - assert_output_contains "libldap-2.4-2 | Supplier field is missing" - assert_output_contains "golang.org/x/sync-empty- | Version field is missing" - assert_output_contains "golang.org/x/sync-empty- | Supplier field is missing" assert_output_contains "golang.org/x/sync-empty- | Checksum field is missing" - assert_output_contains "golang.org/x/sync- | Version field is missing" - assert_output_contains "golang.org/x/sync- | Supplier field is missing" assert_output_contains "golang.org/x/sync- | Checksum field is missing" assert_output_contains "The SPDX file test-sbom-02.spdx is not compliant with the OpenChain Telco SBOM Guide" } @@ -114,7 +108,7 @@ function test_no_version_json assert_terminated_normally assert_exit_fail assert_has_output - assert_output_contains "scanoss/engine | Version field is missing" + assert_output_contains "scanoss/engine | Package without a version" assert_output_contains "The SPDX file test-sbom-06.spdx.json is not compliant with the OpenChain Telco SBOM Guide" }