| |
_Who:_ `cib-devs`
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| - |
|
| - |
given file refsfetched.json
|
| - |
given file set-rid
|
| - |
when I run bash radenv.sh env HOME=../homedir python3 set-rid refsfetched.json testy
|
| - |
when I run synthetic-events synt.sock refsfetched.json --log log.txt
|
| - |
|
| - |
given file adapter.sh from adapter-with-url.sh
|
| - |
when I run chmod +x adapter.sh
|
| - |
|
| - |
given file broker.yaml
|
| - |
given a directory reports
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter adapter-with-url.sh
|
| + |
given a Git repository xyzzy in the Radicle node
|
| + |
given the Radicle node emits a refsUpdated event for xyzzy
|
| |
|
| - |
when I try to run bash radenv.sh RAD_SOCKET=synt.sock cib --config broker.yaml insert
|
| + |
when I run ./env.sh synthetic-events synt.sock event.json --log log.txt
|
| + |
when I try to run ./env.sh cib --config broker.yaml insert
|
| |
then command is successful
|
| |
~~~
|
| |
|
| |
_Who:_ `cib-devs`
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| - |
|
| - |
when I run synthetic-events synt.sock --log log.txt
|
| - |
given file broker.yaml
|
| - |
when I try to run bash radenv.sh RAD_SOCKET=synt.sock cib --config broker.yaml insert
|
| + |
given a Radicle node, with CI configured with broker.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 try to run ./env.sh cib --config broker.yaml insert
|
| |
then command is successful
|
| |
~~~
|
| |
|
| |
happen in real life.
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| - |
|
| - |
given file broker.yaml
|
| - |
when I run synthetic-events synt.sock --log synt.log
|
| - |
when I try to run bash radenv.sh RAD_SOCKET=synt.sock cib --config broker.yaml insert
|
| - |
when I run cat synt.log
|
| + |
given a Radicle node, with CI configured with broker.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 try to run ./env.sh cib --config broker.yaml insert
|
| |
then command is successful
|
| |
when I run cibtool --db ci-broker.db run list
|
| |
then stdout is empty
|
| |
_Who:_ `cib-devs`
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| - |
|
| - |
when I run bash radenv.sh cibtool --db x.db run add --repo testy --branch main --commit HEAD --failure
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
|
| + |
given a Git repository xyzzy in the Radicle node
|
| |
|
| |
given a directory reports
|
| - |
when I run bash radenv.sh cibtool --db x.db report --output-dir reports
|
| - |
|
| + |
when I run ./env.sh cibtool --db x.db run add --repo xyzzy --branch main --commit HEAD --failure
|
| + |
when I run ./env.sh cibtool --db x.db report --output-dir reports
|
| |
then file reports/index.html exists
|
| - |
then file reports/index.html contains "testy"
|
| + |
then file reports/index.html contains "xyzzy"
|
| |
~~~
|
| |
|
| |
This doesn't check that there is a per-repository HTML file, because
|
| |
_Who:_ `adapter-devs`, `node-ops`
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given a CI adapter adapter.sh from dummy.sh
|
| - |
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| + |
given a Radicle node, with CI configured with broker.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 bash radenv.sh cibtool --db ci-broker.db trigger --repo testy --ref main --commit HEAD
|
| - |
when I run bash radenv.sh cibtool --db ci-broker.db event list --json
|
| + |
when I run ./env.sh cibtool --db ci-broker.db trigger --repo xyzzy --ref main --commit HEAD
|
| + |
when I run ./env.sh cibtool --db ci-broker.db event list --json
|
| |
|
| - |
given file broker.yaml
|
| |
given a directory reports
|
| - |
|
| - |
when I run bash radenv.sh cib --config broker.yaml queued
|
| + |
when I run ./env.sh cib --config broker.yaml queued
|
| |
then stderr contains "Mordor"
|
| |
~~~
|
| |
|
| |
_Who:_ `node-ops`
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| - |
|
| - |
given file broker.yaml
|
| - |
given a directory reports
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
|
| |
|
| - |
when I run bash radenv.sh cib --config broker.yaml config
|
| + |
when I run ./env.sh cib --config broker.yaml config
|
| |
then stderr contains "CI broker starts"
|
| |
|
| - |
when I run bash radenv.sh cib --config broker.yaml --log-level error config
|
| + |
when I run ./env.sh cib --config broker.yaml --log-level error config
|
| |
then stderr is exactly ""
|
| |
~~~
|
| |
|
| |
be of the correct form.
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
|
| + |
given a Git repository xyzzy in the Radicle node
|
| |
|
| |
when I run cibtool --db x.db event list
|
| |
then stdout is empty
|
| |
|
| - |
when I run bash radenv.sh cibtool --db x.db event add --repo testy --ref main --commit HEAD --base HEAD --id-file id.txt
|
| + |
when I run ./env.sh cibtool --db x.db event add --repo xyzzy --ref main --commit HEAD --base HEAD --id-file id.txt
|
| |
|
| |
when I run cibtool --db x.db event show --id-file id.txt
|
| |
then stdout contains "rad:"
|
| |
_Who:_ `cib-devs`, `node-ops`
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
|
| + |
given a Git repository testy in the Radicle node
|
| |
|
| |
when I run cibtool --db x.db event list
|
| |
then stdout is empty
|
| |
|
| - |
when I run bash radenv.sh cibtool --db x.db event add --repo testy --ref main --commit HEAD --base HEAD
|
| - |
when I run bash radenv.sh cibtool --db x.db event add --repo testy --ref main --commit HEAD --base HEAD
|
| - |
when I run bash radenv.sh cibtool --db x.db event add --repo testy --ref main --commit HEAD --base HEAD
|
| - |
when I run bash radenv.sh cibtool --db x.db event add --repo testy --ref main --commit HEAD --base HEAD
|
| - |
when I run bash radenv.sh cibtool --db x.db event add --repo testy --ref main --commit HEAD --base HEAD
|
| - |
when I run bash radenv.sh cibtool --db x.db event add --repo testy --ref main --commit HEAD --base HEAD
|
| + |
when I run ./env.sh cibtool --db x.db event add --repo testy --ref main --commit HEAD --base HEAD
|
| + |
when I run ./env.sh cibtool --db x.db event add --repo testy --ref main --commit HEAD --base HEAD
|
| + |
when I run ./env.sh cibtool --db x.db event add --repo testy --ref main --commit HEAD --base HEAD
|
| + |
when I run ./env.sh cibtool --db x.db event add --repo testy --ref main --commit HEAD --base HEAD
|
| + |
when I run ./env.sh cibtool --db x.db event add --repo testy --ref main --commit HEAD --base HEAD
|
| + |
when I run ./env.sh cibtool --db x.db event add --repo testy --ref main --commit HEAD --base HEAD
|
| |
|
| |
when I run cibtool --db x.db event remove --all
|
| |
when I run cibtool --db x.db event list
|
| |
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
|
| + |
given a Git repository xyzzy in the Radicle node
|
| |
|
| - |
when I run bash radenv.sh cibtool --db x.db trigger --repo testy --ref main --commit HEAD --id-file id.txt
|
| + |
when I run ./env.sh cibtool --db x.db trigger --repo xyzzy --ref main --commit HEAD --id-file id.txt
|
| |
|
| |
when I run cibtool --db x.db event show --id-file id.txt
|
| |
then stdout contains "rad:"
|
| |
_Who:_ `cib-devs`
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| + |
given a Radicle node, with CI configured with broker.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 cibtool --db x.db run list
|
| |
then stdout is empty
|
| |
|
| - |
when I run bash radenv.sh cibtool --db x.db run add --id xyzzy --repo testy --branch main --commit main --triggered
|
| + |
when I run ./env.sh cibtool --db x.db run add --id runny --repo xyzzy --branch main --commit main --triggered
|
| |
when I run cibtool --db x.db run list --json
|
| - |
then stdout contains "xyzzy"
|
| + |
then stdout contains "runny"
|
| |
then stdout contains ""state": "triggered""
|
| |
~~~
|
| |
|
| |
_Who:_ `cib-dev`.
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
|
| + |
given a Git repository xyzzy in the Radicle node
|
| |
|
| |
when I run cibtool --db x.db run list
|
| |
then stdout is empty
|
| |
|
| - |
when I run bash radenv.sh cibtool --db x.db run add --repo testy --url https://x/1 --branch main --commit HEAD --running
|
| + |
when I run ./env.sh cibtool --db x.db run add --repo xyzzy --url https://x/1 --branch main --commit HEAD --running
|
| |
when I run cibtool --db x.db run list --json
|
| - |
then stdout contains ""repo_name": "testy""
|
| + |
then stdout contains ""repo_name": "xyzzy""
|
| |
then stdout contains ""state": "running""
|
| |
~~~
|
| |
|
| |
_Who:_ `cib-dev`.
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
|
| + |
given a Git repository xyzzy in the Radicle node
|
| |
|
| |
when I run cibtool --db x.db run list
|
| |
then stdout is empty
|
| |
|
| - |
when I run bash radenv.sh cibtool --db x.db run add --id xyzzy --repo testy --branch main --commit HEAD --success
|
| + |
when I run ./env.sh cibtool --db x.db run add --id runny --repo xyzzy --branch main --commit HEAD --success
|
| |
when I run cibtool --db x.db run list --json
|
| |
then stdout contains ""state": "finished""
|
| |
then stdout contains ""result": "success""
|
| |
_Who:_ `cib-dev`.
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
|
| + |
given a Git repository testy in the Radicle node
|
| |
|
| |
when I run cibtool --db x.db run list
|
| |
then stdout is empty
|
| |
|
| - |
when I run bash radenv.sh cibtool --db x.db run add --id xyzzy --repo testy --branch main --commit HEAD --failure
|
| + |
when I run ./env.sh cibtool --db x.db run add --id xyzzy --repo testy --branch main --commit HEAD --failure
|
| |
when I run cibtool --db x.db run list --json
|
| |
then stdout contains ""state": "finished""
|
| |
then stdout contains ""result": "failure""
|
| |
_Who:_ `cib-dev`.
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
|
| + |
given a Git repository testy in the Radicle node
|
| |
|
| |
when I run cibtool --db x.db run list
|
| |
then stdout is empty
|
| |
|
| - |
when I run bash radenv.sh cibtool --db x.db run add --id x --repo testy --branch main --commit HEAD --triggered
|
| + |
when I run ./env.sh cibtool --db x.db run add --id x --repo testy --branch main --commit HEAD --triggered
|
| |
when I run cibtool --db x.db run list
|
| |
then stdout has one line
|
| |
when I run cibtool --db x.db run show x
|
| |
`cibtool event add` and `cibtool trigger`, to cover all the cases.
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
|
| + |
given a Git repository testy in the Radicle node
|
| |
|
| - |
when I try to run bash radenv.sh cibtool --db x.db event add --repo missing --ref main --commit HEAD --base c0ffee
|
| + |
when I try to run ./env.sh cibtool --db x.db event add --repo missing --ref main --commit HEAD --base c0ffee
|
| |
then command fails
|
| |
then stderr contains "missing"
|
| |
|
| - |
when I try to run bash radenv.sh cibtool --db x.db event add --repo rad:z3byzFpcfbMJBp4tKYyuuTZiP8WUB --ref main --commit HEAD --base c0ffee
|
| + |
when I try to run ./env.sh cibtool --db x.db event add --repo rad:z3byzFpcfbMJBp4tKYyuuTZiP8WUB --ref main --commit HEAD --base c0ffee
|
| |
then command fails
|
| |
then stderr contains "rad:z3byzFpcfbMJBp4tKYyuuTZiP8WUB"
|
| |
|
| - |
when I try to run bash radenv.sh cibtool --db x.db trigger --repo missing --ref main --commit HEAD --id-file id.txt
|
| + |
when I try to run ./env.sh cibtool --db x.db trigger --repo missing --ref main --commit HEAD --id-file id.txt
|
| |
then command fails
|
| |
then stderr contains "missing"
|
| |
|
| - |
when I try to run bash radenv.sh cibtool --db x.db trigger --repo rad:z3byzFpcfbMJBp4tKYyuuTZiP8WUB --ref main --commit HEAD --id-file id.txt
|
| + |
when I try to run ./env.sh cibtool --db x.db trigger --repo rad:z3byzFpcfbMJBp4tKYyuuTZiP8WUB --ref main --commit HEAD --id-file id.txt
|
| |
then command fails
|
| |
then stderr contains "rad:z3byzFpcfbMJBp4tKYyuuTZiP8WUB"
|
| |
|
| |
_Who:_ `cib-devs`, `node-ops`
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| - |
|
| - |
given file refsfetched.json
|
| - |
given file set-rid
|
| - |
when I run bash radenv.sh env HOME=../homedir python3 set-rid refsfetched.json testy
|
| - |
when I run synthetic-events synt.sock refsfetched.json --log log.txt
|
| + |
given a Radicle node, with CI configured with broker.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 bash radenv.sh cibtool event record --output events.json
|
| + |
when I run ./env.sh cibtool event record --output events.json
|
| |
then file events.json contains ""type":"refsFetched""
|
| |
~~~
|
| |
|
| |
_Who:_ `cib-dev`, `node-ops`
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| - |
|
| - |
given file refsfetched.json
|
| - |
given file set-rid
|
| - |
when I run bash radenv.sh env HOME=../homedir python3 set-rid refsfetched.json testy
|
| - |
when I run synthetic-events synt.sock refsfetched.json --log log.txt
|
| - |
|
| - |
when I run bash radenv.sh cibtool event record --output node-events.json
|
| - |
when I run bash radenv.sh cibtool event ci --output ci-events.json node-events.json
|
| + |
given a Radicle node, with CI configured with broker.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 cibtool event record --output node-events.json
|
| + |
when I run ./env.sh cibtool event ci --output ci-events.json node-events.json
|
| |
when I run cat ci-events.json
|
| |
then file ci-events.json contains "BranchUpdated""
|
| |
~~~
|
| |
_Who:_ `cib-dev`, `node-ops`
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| - |
|
| - |
given file refsfetched.json
|
| - |
given file set-rid
|
| - |
when I run bash radenv.sh env HOME=../homedir python3 set-rid refsfetched.json testy
|
| - |
when I run synthetic-events synt.sock refsfetched.json --log log.txt
|
| + |
given a Radicle node, with CI configured with broker.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 bash radenv.sh cibtool event record --output node-events.json
|
| - |
when I run bash radenv.sh cibtool event ci --output ci-events.json node-events.json
|
| + |
when I run ./env.sh cibtool event record --output node-events.json
|
| + |
when I run ./env.sh cibtool event ci --output ci-events.json node-events.json
|
| |
|
| |
given file allow.yaml
|
| |
when I run cibtool event filter allow.yaml ci-events.json
|
| |
when properly set up.
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given a CI adapter adapter.sh from dummy.sh
|
| - |
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
|
| |
|
| - |
given file broker.yaml
|
| |
given a directory reports
|
| - |
when I run bash radenv.sh cib --config broker.yaml queued
|
| + |
when I run ./env.sh cib --config broker.yaml queued
|
| |
|
| |
then stderr contains "CI broker starts"
|
| |
then stderr contains "CI broker ends successfully"
|
| |
_Who:_ `node-ops`
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| - |
|
| - |
given file broker.yaml
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
|
| |
given a directory reports
|
| |
|
| - |
when I run bash radenv.sh cib --config broker.yaml queued
|
| + |
when I run cib --config broker.yaml queued
|
| |
then file reports/status.json exists
|
| |
|
| |
when I run jq .event_queue_length reports/status.json
|
| |
to be updated when a new release is made.
|
| |
|
| |
~~~scenario
|
| - |
given an installed CI broker
|
| - |
given a CI adapter adapter.sh from dummy.sh
|
| - |
|
| - |
given file radenv.sh
|
| - |
given file setup-node.sh
|
| - |
when I run bash radenv.sh bash setup-node.sh
|
| + |
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
|
| + |
given a Git repository testy in the Radicle node
|
| |
|
| - |
given file broker.yaml
|
| |
given file verify-upgrade
|
| |
given a directory reports
|
| |
|
| |
when I touch file run-list.txt
|
| - |
when I run bash radenv.sh bash -x verify-upgrade run-list.txt 535b1592904125fbe62c3c8c383d7741d9f432ac
|
| - |
when I run bash radenv.sh bash -x verify-upgrade run-list.txt 869b451728d16719b560df142b2d901cbaf3764c
|
| - |
when I run bash radenv.sh bash -x verify-upgrade run-list.txt HEAD
|
| + |
when I run ./env.sh bash -x verify-upgrade run-list.txt 535b1592904125fbe62c3c8c383d7741d9f432ac
|
| + |
when I run ./env.sh bash -x verify-upgrade run-list.txt 869b451728d16719b560df142b2d901cbaf3764c
|
| + |
when I run ./env.sh bash -x verify-upgrade run-list.txt HEAD
|
| |
~~~
|
| |
|
| |
~~~{#verify-upgrade .file .sh}
|