Skip to content

Commit

Permalink
bincapz: fix test (#2647)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Hall <[email protected]>
  • Loading branch information
imjasonh authored May 9, 2024
1 parent 1f4d9fd commit 4e41f15
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions images/bincapz/tests/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ variable "digest" {
description = "The image digest to run tests over."
}

data "oci_exec_test" "help" {
digest = var.digest
script = "docker run --rm $IMAGE_NAME -help"
}

data "oci_exec_test" "test-bincapz" {
digest = var.digest
script = "docker run --rm $IMAGE_NAME /usr/bin/bincapz | grep -Ei 'RISK|DESCRIPTION|EVIDENCE'"
script = "docker run --rm $IMAGE_NAME --ignore-self=false /usr/bin/bincapz | tee /dev/stderr | grep -Ei 'RISK|DESCRIPTION|EVIDENCE'"
}

0 comments on commit 4e41f15

Please sign in to comment.