Skip to content

Commit

Permalink
Synching tests to the implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Gergely Csatari <[email protected]>
  • Loading branch information
CsatariGergely committed Nov 7, 2024
1 parent 4e93ac3 commit b0ae5bb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tools/openchain_telco_sbom_validator/testing/test-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -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"
}
Expand Down Expand Up @@ -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"
}

Expand Down

0 comments on commit b0ae5bb

Please sign in to comment.