Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
test(ci-broker.md): add scenario to run cib without a report dir
Lars Wirzenius committed 1 year ago
commit 29c37f9095e2f5becaa48d488ca7e376bc23c5f4
parent 47fc131
1 file changed +28 -0
modified 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.