Skip to content

Commit

Permalink
Add test to overlay into a non-existent destination
Browse files Browse the repository at this point in the history
Attempt to overlay a file into a directory in the filesystem which doesn't
exist. The expected behavior is to cause an error.

This test is currently a manual test case and is not hooked into the CI.

Signed-off-by: Christopher Obbard <[email protected]>
  • Loading branch information
obbardc authored and sjoerdsimons committed Jul 10, 2023
1 parent 44118fe commit d08d5d1
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
architecture: amd64

actions:
# This overlay action is expected to error out here because the destination
# doesn't exist in the filesystem.
- action: overlay
description: Overlay file into a non-existent destination
source: overlay-non-existent-destination.yaml
destination: /this/path/does/not/exist/overlay-non-existent-destination.yaml

- action: run
description: Check if path exists
command: "[ -e /this/path/does/not/exist/overlay-non-existent-destination.yaml ] || exit 1"

- action: run
postprocess: true
command: echo Test

0 comments on commit d08d5d1

Please sign in to comment.