1# vi: set ft=conf
 2
 3# create a repo
 4soft repo create repo-123
 5stderr 'Created repository repo-123.*'
 6stdout ssh://localhost:$SSH_PORT/repo-123.git
 7
 8# create webhook
 9soft repo webhook create repo-123 https://webhook.site/794fa12b-08d4-4362-a0a9-a6f995f22e17 -e branch_tag_create -e branch_tag_delete -e collaborator -e push -e repository -e repository_visibility_change
10
11# list webhooks
12soft repo webhook list repo-123
13stdout '1.*https://webhook.site/794fa12b-08d4-4362-a0a9-a6f995f22e17.*'
14
15# clone repo
16git clone ssh://localhost:$SSH_PORT/repo-123 repo-123
17
18# create files
19mkfile ./repo-123/README.md 'foobar'
20git -C repo-123 add -A
21git -C repo-123 commit -m 'first'
22git -C repo-123 push origin HEAD
23
24# list webhook deliveries
25# TODO: enable this test when githooks tests are fixed
26# soft repo webhook deliver list repo-123 1
27# stdout '.*https://webhook.site/.*'