Skip to content

Commit

Permalink
add target test
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Quick <jared.quick@salesforce.com>
  • Loading branch information
jquick committed Feb 28, 2024
1 parent 9104607 commit 7d923ea
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/image-override-file.bats
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,23 @@ EOF
assert_output "$myservice_override_file2"
}

@test "Build a docker-compose file with target" {
myservice_override_file3=$(cat <<-EOF
version: '3.2'
services:
myservice:
image: newimage:1.0.0
build:
target: build
EOF
)

run build_image_override_file_with_version "3.2" "myservice" "newimage:1.0.0" "build" 0

assert_success
assert_output "$myservice_override_file3"
}

@test "Build a docker-compose file with cache-from" {
myservice_override_file3=$(cat <<-EOF
version: '3.2'
Expand Down

0 comments on commit 7d923ea

Please sign in to comment.