Parent directory

http-push-create.txtar

752 bytes
 1# vi: set ft=conf
 2
 3# FIXME: don't skip windows
 4[windows] skip 'curl makes github actions hang'
 5
 6# start soft serve
 7exec soft serve &
 8# wait for SSH server to start
 9ensureserverrunning SSH_PORT
10
11soft settings anon-access read-write
12
13# bad credentials never create a repository
14curl http://bob:wrong@localhost:$HTTP_PORT/ghost1.git/info/refs?service=git-receive-pack
15stdout '403.*'
16
17# only the push endpoints create repositories
18curl http://localhost:$HTTP_PORT/ghost2.git/HEAD?service=git-receive-pack
19
20# the push advertisement still creates one
21curl http://localhost:$HTTP_PORT/ghost3.git/info/refs?service=git-receive-pack
22soft repo list
23stdout 'ghost3'
24! stdout 'ghost1'
25! stdout 'ghost2'
26
27# stop the server
28[windows] stopserver
29[windows] ! stderr .