Skip to content

Commit

Permalink
chore: add test for failing on missing bind source
Browse files Browse the repository at this point in the history
Just copied Ryan's test from the description of project-stacker#624 with minimal
editing.

Signed-off-by: Michael McCracken <mikmccra@cisco.com>
  • Loading branch information
mikemccracken committed Jun 11, 2024
1 parent 8fbf329 commit ffd2cd3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/binds.bats
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,19 @@ EOF

stat tree1/foo/bar
}

@test "fail on missing bind source" {
cat > stacker.yaml <<"EOF"
hello-binds:
from:
type: docker
url: ${{BUSYBOX_OCI}}
binds:
- thats_no_dir -> /mydir
run: |
mkdir -p /hello-stacker-app
echo 'echo "Hello Stacker!"' > /hello-stacker-app/hello.sh
EOF

bad_stacker build -f stacker.yaml --substitute=BUSYBOX_OCI="$BUSYBOX_OCI"
}

0 comments on commit ffd2cd3

Please sign in to comment.