test(ci-broker.md): add scenario to run cib without a report dir

We want to make sure this works.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
Lars Wirzenius
2025-03-24 18:05:06 +02:00
parent 47fc131186
commit 29c37f9095
+28
View File
@@ -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.