Skip to content

Commit

Permalink
Added an acceptance test for the stdin input
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed Apr 23, 2023
1 parent 07b60c1 commit beaf63d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions acceptance.bats
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
[ "$status" -eq 0 ]
}

@test "Not fail when testing an SBOM on stdin" {
run bash -c "cat testing/sbom.cyclonedx.json | ./parlay enrich -"
[ "$status" -eq 0 ]
}

@test "Not fail when testing a Java SBOM" {
run ./parlay enrich testing/sbom2.cyclonedx.json
[ "$status" -eq 0 ]
Expand Down

0 comments on commit beaf63d

Please sign in to comment.