Files
osmedeus/test/testdata/workflows/test-hooks-flow.yaml
T
j3ssie baac7a016a feat: add worker management, hooks support, and db cleanup enhancements
- Add worker eval command for distributed function execution with Redis hooks registration
- Add worker set command to update worker fields (alias, public-ip, ssh-enabled, ssh-keys-path)
- Enhance worker status with JSON output, search filtering, and column selection (--columns, --exclude-columns, --search)
- Add --keep-setting flag to install base/validate commands to preserve osm-settings.yaml after base installation
- Fix binary installation in Nix: replace CopyInstalledBinaryToFolder with SymlinkInstalledBinaryToFolder
- Add --clean-ws flag to db clean command for removing workspace data
- Add HooksEnabled field to Run records when creating runs from CLI and API
- Add comprehensive test coverage for hook execution (pre/post hooks, execution order, failure handling)
- Add test coverage for worker commands (eval, set, status with JSON) and db clean operations
- Improve usage documentation for worker subcommands and db operations
2026-02-15 10:47:44 +07:00

26 lines
595 B
YAML

name: test-hooks-flow
kind: flow
description: Test flow with pre/post scan hooks
tags: test,hooks,flow
params:
- name: target
required: true
hooks:
pre_scan_steps:
- name: flow-pre-init
type: bash
command: echo "[FLOW-HOOK-PRE] Initializing flow for {{Target}}"
post_scan_steps:
- name: flow-post-cleanup
type: bash
command: echo "[FLOW-HOOK-POST] Flow completed for {{Target}}"
modules:
- name: hooks-inline-module
steps:
- name: inline-step
type: bash
command: echo "[FLOW-MODULE] Inline module executed for {{Target}}"