| |
when I run bash radenv.sh bash setup-node.sh
|
| |
|
| |
given an installed cibtool
|
| - |
when I run cibtool --db x.db run add --id x --repo rad:zwTxygwuz5LDGBq255RA2CbNGrz8 --alias x --url https://x/1 --branch main --commit f1815dde6ae406d8fe3cec0b96c4486766342716 --who x --failure --timestamp 2024-07-09T02:00:00
|
| + |
when I run bash radenv.sh cibtool --db x.db run add --repo testy --branch main --commit HEAD --failure
|
| |
|
| |
given a directory reports
|
| |
when I run bash radenv.sh cibtool --db x.db report --output-dir reports
|
| |
|
| |
then file reports/index.html exists
|
| - |
then file reports/index.html contains "zwTxygwuz5LDGBq255RA2CbNGrz8"
|
| - |
|
| - |
then file reports/zwTxygwuz5LDGBq255RA2CbNGrz8.html exists
|
| - |
then file reports/zwTxygwuz5LDGBq255RA2CbNGrz8.html contains "success"
|
| + |
then file reports/index.html contains "testy"
|
| |
~~~
|
| |
|
| + |
This doesn't check that there is a per-repository HTML file, because
|
| + |
we have not convenient way to know the repository ID.
|
| |
|
| |
# Acceptance criteria for test tooling
|
| |
|
| |
_Who:_ `cib-devs`
|
| |
|
| |
~~~scenario
|
| + |
given file radenv.sh
|
| + |
given file setup-node.sh
|
| + |
when I run bash radenv.sh bash setup-node.sh
|
| + |
|
| |
given an installed cibtool
|
| |
when I run cibtool --db x.db run list
|
| |
then stdout is exactly ""
|
| |
|
| - |
when I run cibtool --db x.db run add --id x --repo rad:zwTxygwuz5LDGBq255RA2CbNGrz8 --alias x --url https://x/1 --branch main --commit f1815dde6ae406d8fe3cec0b96c4486766342716 --who x --triggered --timestamp 2024-07-09T02:00:00
|
| + |
when I run bash radenv.sh cibtool --db x.db run add --id xyzzy --repo testy --branch main --commit main --triggered
|
| |
when I run cibtool --db x.db run list --json
|
| - |
then stdout contains "rad:zwTxygwuz5LDGBq255RA2CbNGrz8"
|
| + |
then stdout contains "xyzzy"
|
| |
then stdout contains ""state": "triggered""
|
| |
~~~
|
| |
|
| |
_Who:_ `cib-dev`.
|
| |
|
| |
~~~scenario
|
| + |
given file radenv.sh
|
| + |
given file setup-node.sh
|
| + |
when I run bash radenv.sh bash setup-node.sh
|
| + |
|
| |
given an installed cibtool
|
| |
when I run cibtool --db x.db run list
|
| |
then stdout is exactly ""
|
| |
|
| - |
when I run cibtool --db x.db run add --id x --repo rad:zwTxygwuz5LDGBq255RA2CbNGrz8 --alias x --url https://x/1 --branch main --commit f1815dde6ae406d8fe3cec0b96c4486766342716 --who x --running --timestamp 2024-07-09T02:00:00
|
| + |
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 cibtool --db x.db run list --json
|
| - |
then stdout contains "rad:zwTxygwuz5LDGBq255RA2CbNGrz8"
|
| + |
then stdout contains ""repo_name": "testy""
|
| |
then stdout contains ""state": "running""
|
| |
~~~
|
| |
|
| |
_Who:_ `cib-dev`.
|
| |
|
| |
~~~scenario
|
| + |
given file radenv.sh
|
| + |
given file setup-node.sh
|
| + |
when I run bash radenv.sh bash setup-node.sh
|
| + |
|
| |
given an installed cibtool
|
| |
when I run cibtool --db x.db run list
|
| |
then stdout is exactly ""
|
| |
|
| - |
when I run cibtool --db x.db run add --id x --repo rad:zwTxygwuz5LDGBq255RA2CbNGrz8 --alias x --url https://x/1 --branch main --commit f1815dde6ae406d8fe3cec0b96c4486766342716 --who x --success --timestamp 2024-07-09T02:00:00
|
| + |
when I run bash radenv.sh cibtool --db x.db run add --id xyzzy --repo testy --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""
|
| - |
then stdout contains "rad:zwTxygwuz5LDGBq255RA2CbNGrz8"
|
| + |
then stdout contains "xyzzy"
|
| |
~~~
|
| |
|
| |
|
| |
_Who:_ `cib-dev`.
|
| |
|
| |
~~~scenario
|
| + |
given file radenv.sh
|
| + |
given file setup-node.sh
|
| + |
when I run bash radenv.sh bash setup-node.sh
|
| + |
|
| |
given an installed cibtool
|
| |
when I run cibtool --db x.db run list
|
| |
then stdout is exactly ""
|
| |
|
| - |
when I run cibtool --db x.db run add --id x --repo rad:zwTxygwuz5LDGBq255RA2CbNGrz8 --alias x --url https://x/1 --branch main --commit f1815dde6ae406d8fe3cec0b96c4486766342716 --who x --failure --timestamp 2024-07-09T02:00:00
|
| + |
when I run bash radenv.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""
|
| - |
then stdout contains "rad:zwTxygwuz5LDGBq255RA2CbNGrz8"
|
| + |
then stdout contains "xyzzy"
|
| |
|
| |
when I run cibtool --db x.db run list --adapter-run-id abracadabra
|
| |
then stdout is exactly ""
|
| |
_Who:_ `cib-dev`.
|
| |
|
| |
~~~scenario
|
| + |
given file radenv.sh
|
| + |
given file setup-node.sh
|
| + |
when I run bash radenv.sh bash setup-node.sh
|
| + |
|
| |
given an installed cibtool
|
| |
when I run cibtool --db x.db run list
|
| |
then stdout is exactly ""
|
| |
|
| - |
when I run cibtool --db x.db run add --id x --repo rad:zwTxygwuz5LDGBq255RA2CbNGrz8 --alias x --url https://x/1 --branch main --commit f1815dde6ae406d8fe3cec0b96c4486766342716 --who x --triggered --timestamp 2024-07-09T02:00:00
|
| + |
when I run bash radenv.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
|