Skip to content

Commit

Permalink
Fix up acceptance tests after change in command
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed May 6, 2023
1 parent e3440db commit d49ef66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acceptance.bats
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 ]
}

0 comments on commit d49ef66

Please sign in to comment.