summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-04-08 15:10:14 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-04-08 15:10:14 +0100
commit08a1423a022392b045a483697731ba048a3eebc4 (patch)
tree774c6d3bfdb21715016f0bd116821a6df6720d89 /testing
parent14b50b9543181de6bf154dcf0edb385616506bbc (diff)
downloadgitano-08a1423a022392b045a483697731ba048a3eebc4.tar.gz
adds a test for server-info files in new repos
Even new repositories need http server info files.
Diffstat (limited to 'testing')
-rw-r--r--testing/02-commands-create.yarn13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/02-commands-create.yarn b/testing/02-commands-create.yarn
index 2b65fe5..b579e5b 100644
--- a/testing/02-commands-create.yarn
+++ b/testing/02-commands-create.yarn
@@ -25,3 +25,16 @@ comprehensible error message to that effect.
THEN stderr contains CRIT: Repository creation is not permitted.
FINALLY the instance is torn down
+
+When creating a repository, we update the HTTP server information file because
+that way gitweb and the like don't get upset even if nothing has been pushed,
+and HTTP smart access can be permitted, which might be necessary for the push
+in the first place.
+
+ SCENARIO created repositories have server info
+
+ GIVEN a standard instance
+
+ WHEN testinstance adminkey runs create foobar
+ THEN server-side foobar.git file objects/info/packs exists
+ AND server-side foobar.git file info/refs exists