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:
Sjoerd Simons
2025-11-01 21:32:52 +00:00
committed by GitHub
3 changed files with 11 additions and 17 deletions

View File

@@ -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

View 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

View File

@@ -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