-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix up acceptance tests after change in command
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
#!/usr/bin/env bats | ||
|
||
@test "Not fail when testing a JavaScript SBOM" { | ||
run ./parlay enrich testing/sbom.cyclonedx.json | ||
run ./parlay ecosystems enrich testing/sbom.cyclonedx.json | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "Not fail when testing an SBOM on stdin" { | ||
run bash -c "cat testing/sbom.cyclonedx.json | ./parlay enrich -" | ||
run bash -c "cat testing/sbom.cyclonedx.json | ./parlay ecosystems enrich -" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "Not fail when testing a Java SBOM" { | ||
run ./parlay enrich testing/sbom2.cyclonedx.json | ||
run ./parlay ecosystems enrich testing/sbom2.cyclonedx.json | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "Fail when testing a non-existent file" { | ||
run ./parlay enrich not-here | ||
run ./parlay ecosystems enrich not-here | ||
[ "$status" -eq 1 ] | ||
} |