diff --git a/ci-broker.md b/ci-broker.md index 417fd32b..78537669 100644 --- a/ci-broker.md +++ b/ci-broker.md @@ -378,6 +378,34 @@ then stdout contains ""id": "xyzzy"" ~~~ +## Runs adapter without a report directory + +_Want:_ CI broker can run without a report directory. + +_Why:_ We don't require the report directory to be specified, or +exist, but we do require `cib` to handle this. + +_Who:_ `cib-devs` + +~~~scenario +given a Radicle node, with CI configured with broker-with-triggers.yaml and adapter dummy.sh +given a Git repository xyzzy in the Radicle node +given the Radicle node emits a refsUpdated event for xyzzy +when I run ./env.sh synthetic-events synt.sock event.json --log log.txt +when I run ./env.sh cib --config broker-with-triggers.yaml process-events + +then stderr contains "CibStart" +then stderr contains "CibConfig" +then stderr contains "CibEndSuccess" + +when I run cibtool --db ci-broker.db event list +then stdout is empty + +when I run cibtool --db ci-broker.db run list --json +then stdout contains ""id": "xyzzy"" +~~~ + + ## Runs adapters for all matching triggers _Want:_ CI broker can run its adapter.