Skip to content

Commit

Permalink
check image exists in bats
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnamehrotra committed Aug 4, 2023
1 parent 51f48bf commit a39252e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ teardown_file(){
docker stop buildkitd
}

@test "Check patched docker image IDs" {
@test "Check patched exists" {
docker images
id=$(docker images --quiet 'nginx:1.21.6-patched')
assert_not_equal "$id" "4319b9b0e0c2"
assert_not_equal "$id" ""
}

@test "Run trivy on patched image" {
Expand Down

0 comments on commit a39252e

Please sign in to comment.