Skip to content

Commit

Permalink
change to check for vulns
Browse files Browse the repository at this point in the history
Signed-off-by: ashnamehrotra <[email protected]>
  • Loading branch information
ashnamehrotra committed Aug 4, 2023
1 parent 7ba72ab commit e814b2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 148 deletions.
147 changes: 0 additions & 147 deletions test/data/patched-report.json

This file was deleted.

3 changes: 2 additions & 1 deletion test/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ teardown_file(){
@test "Run trivy on patched image" {
run trivy image --vuln-type os --ignore-unfixed -f json -o nginx.1.21.6-patched.json 'docker.io/library/nginx:1.21.6-patched'
run diff "./data/patched-report.json" "nginx.1.21.6-patched.json"
assert_equal "$output" ""
vulns=$(echo $json | jq '.Results[0].Vulnerabilities | length')
assert_equal "0" "$vulns"
}

0 comments on commit e814b2a

Please sign in to comment.