mirror of
https://github.com/outbackdingo/debos.git
synced 2026-01-27 02:18:42 +00:00
Merge pull request #597 from go-debos/copilot/fix-d5fc231f-957e-4e33-8683-9d0d0b3f27aa
Add overlay-non-existent-destination test to CI
This commit is contained in:
@@ -67,6 +67,7 @@ expect_success debos good.yaml
|
||||
expect_failure debos bad.yaml
|
||||
expect_failure debos pre-machine-failure.yaml
|
||||
expect_failure debos post-machine-failure.yaml
|
||||
expect_failure debos overlay-non-existent-destination.yaml
|
||||
expect_failure rename_command NOT_DEBOS debos good.yaml
|
||||
|
||||
expect_failure $SUDO debos non-existent-file.yaml --disable-fakemachine
|
||||
@@ -77,6 +78,7 @@ expect_success $SUDO debos good.yaml --disable-fakemachine
|
||||
expect_failure $SUDO debos bad.yaml --disable-fakemachine
|
||||
expect_failure $SUDO debos pre-machine-failure.yaml --disable-fakemachine
|
||||
expect_failure $SUDO debos post-machine-failure.yaml --disable-fakemachine
|
||||
expect_failure $SUDO debos overlay-non-existent-destination.yaml --disable-fakemachine
|
||||
|
||||
echo
|
||||
if [[ $FAILURES -ne 0 ]]; then
|
||||
|
||||
9
tests/exit_test/overlay-non-existent-destination.yaml
Normal file
9
tests/exit_test/overlay-non-existent-destination.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
architecture: amd64
|
||||
|
||||
actions:
|
||||
# This overlay action is expected to error out 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
|
||||
@@ -1,17 +0,0 @@
|
||||
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