mirror of
https://seed.radicle.dev/rad:zwTxygwuz5LDGBq255RA2CbNGrz8.git
synced 2026-10-18 19:30:29 +08:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user