From 1297a8a4b6c97a86aba20a0ba90e79ff37a8a350 Mon Sep 17 00:00:00 2001 From: ashnamehrotra Date: Fri, 4 Aug 2023 16:36:08 +0000 Subject: [PATCH] check image exists in bats Signed-off-by: ashnamehrotra --- test/test.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.bats b/test/test.bats index e79c49a..cec7f46 100755 --- a/test/test.bats +++ b/test/test.bats @@ -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" {