Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
test: document and test step to create a repository
Lars Wirzenius committed 1 year ago
commit 4589438f46c47c9f0f4c5df5fc2a76c596737517
parent d802be2a69d2ccbd84abe962a1c2b1c87b9682fe
1 file changed +32 -0
modified ci-broker.md
@@ -305,6 +305,38 @@ then stdout matches regex ^RAD_PASSPHRASE=
then stdout matches regex ^RAD_SOCKET=
~~~

+
## Create a repository
+

+
This step creates a Git repository and makes it into a Radicle
+
repository.
+

+
> `given a Git repository {name} in the Radicle node`
+

+
We run the step and look at the results. We need the node creation
+
step first.
+

+
~~~scenario
+
given a Radicle node, with CI configured with broker.yaml and adapter dummy.sh
+
given a Git repository reppy in the Radicle node
+
~~~
+

+
The Git repository must exist.
+

+
~~~scenario
+
then directory reppy exists
+
then directory reppy/.git exists
+
when I run, in reppy, git show
+
then stdout matches regex ^commit
+
~~~
+

+
It must also be a Radicle repository and in the local node.
+

+
~~~scenario
+
when I run ./env.sh rad ls --all
+
then stdout contains "reppy"
+
~~~
+

+

# Acceptance criteria

## Shows config as JSON