-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: mark run as done when skipif is true (#1672)
- Loading branch information
1 parent
2554a42
commit 1fc2633
Showing
4 changed files
with
140 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
...ests/resources/com/aws/greengrass/integrationtests/lifecyclemanager/skipif_lifecycle.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
services: | ||
aws.greengrass.Nucleus: | ||
configuration: | ||
runWithDefault: | ||
posixUser: nobody | ||
windowsUser: integ-tester | ||
logging: | ||
level: DEBUG | ||
skipInstallAndRun: | ||
lifecycle: | ||
install: | ||
skipif: onpath git | ||
script: touch skipInstallAndRunIndicator | ||
run: echo "running after skipping install" | ||
skipInstallAndStartup: | ||
lifecycle: | ||
install: | ||
skipif: onpath git | ||
script: touch skipInstallAndStartupIndicator | ||
startup: | ||
script: echo "startup after skipping install" | ||
skipStartup: | ||
lifecycle: | ||
startup: | ||
skipif: onpath git | ||
script: touch skipStartupIndicator | ||
skipRun: | ||
lifecycle: | ||
run: | ||
skipif: onpath git | ||
script: touch skipRunIndicator | ||
skipShutdown: | ||
lifecycle: | ||
posix: | ||
install: | ||
requiresPrivilege: true | ||
script: touch skipShutdownIndicator | ||
shutdown: | ||
skipif: onpath git | ||
script: rm skipShutdownIndicator | ||
windows: | ||
install: | ||
requiresPrivilege: true | ||
script: echo NUL > skipShutdownIndicator | ||
shutdown: | ||
skipif: onpath git | ||
script: del skipShutdownIndicator | ||
skipRecover: | ||
lifecycle: | ||
posix: | ||
install: | ||
requiresPrivilege: true | ||
script: touch skipRecoverIndicator | ||
run: |- | ||
exit 1 | ||
recover: | ||
skipif: onpath git | ||
script: rm skipRecoverIndicator | ||
windows: | ||
install: | ||
requiresPrivilege: true | ||
script: echo NUL > skipRecoverIndicator | ||
run: powershell -command "exit 1;" | ||
recover: | ||
skipif: onpath git | ||
script: del skipRecoverIndicator | ||
main: | ||
lifecycle: | ||
run: | ||
echo "Running main" | ||
dependencies: | ||
- skipInstallAndRun | ||
- skipInstallAndStartup | ||
- skipStartup | ||
- skipRun | ||
- skipShutdown | ||
- skipRecover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters