36 lines
983 B
YAML
36 lines
983 B
YAML
name: test-validate
|
|
version: 1
|
|
description: Validate tests are runnable and non-failing by default
|
|
runtime: script
|
|
input:
|
|
state: test-write-pending
|
|
tags_required: []
|
|
required_artifacts: [test_file]
|
|
output:
|
|
state: test-validated
|
|
scope_budget:
|
|
files_modified_max: 1
|
|
lines_diff_max: 50
|
|
wall_clock_seconds_max: 600
|
|
nodes:
|
|
- id: preflight-test-collection
|
|
kind: script
|
|
cmd: scripts/workflow/preflight-test-collection
|
|
on_fail: refuse_dispatch
|
|
- id: preflight-fixture-lint
|
|
kind: script
|
|
cmd: scripts/workflow/preflight-fixture-lint
|
|
on_fail: refuse_dispatch
|
|
- id: preflight-test-fail-mode
|
|
kind: script
|
|
cmd: scripts/workflow/preflight-test-fail-mode
|
|
on_fail: continue
|
|
- id: state-tx
|
|
kind: script
|
|
cmd: scripts/workflow/state-tx
|
|
on_fail: continue
|
|
runtime_env:
|
|
CP_URL: "http://controlplane.agent-runtimes.svc.cluster.local:8100"
|
|
STATE_TX_NEW_STATE: test-validated
|
|
STATE_TX_FROM_STATES: test-write-pending
|