mirror of
https://github.com/outbackdingo/debos.git
synced 2026-01-27 18:18:45 +00:00
Add test to overlay into a non-existent destination
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 <chris.obbard@collabora.com>
This commit is contained in:
committed by
Sjoerd Simons
parent
44118fe78d
commit
d08d5d1cfb
@@ -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
|
||||
Reference in New Issue
Block a user