summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-10-28 14:32:34 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-10-30 18:56:52 +0100
commit9b08ff46d495b694179d8c8dbe72b660a69d2040 (patch)
tree5f4deeda49382d9588c1169a64a1b3ac383ca79e
parent17bf0c11025e525e843516f5a67cf342082e4bb7 (diff)
downloadgitano-9b08ff46d495b694179d8c8dbe72b660a69d2040.tar.bz2
yarns: Check cgit hide=1 set when project.archived
-rw-r--r--Makefile2
-rw-r--r--testing/03-cgit-support.yarn17
2 files changed, 18 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9651c0e..d62641a 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ TESTS := 01-basics 02-commands-as 02-commands-config 02-commands-copy \
02-commands-group 02-commands-help 02-commands-ls 02-commands-readme \
02-commands-rename 02-commands-set-description 02-commands-set-head \
02-commands-set-owner 02-commands-sshkey 02-commands-user \
- 02-commands-whoami
+ 02-commands-whoami 03-cgit-support
MODS := gitano \
diff --git a/testing/03-cgit-support.yarn b/testing/03-cgit-support.yarn
new file mode 100644
index 0000000..ffc2e91
--- /dev/null
+++ b/testing/03-cgit-support.yarn
@@ -0,0 +1,17 @@
+<!-- -*- markdown -*- -->
+
+Check listing of archived repositories
+======================================
+
+CGit can hide a repository from the listing while still allowing access
+by setting `repo.hide=1` in the main cgitrc,
+or just `hide=1` in the per-repository cgitrc.
+
+Rather than introducing excessive test requirements,
+we test that Gitano produces the right config,
+rather than starting a CGit instance and inspecting its UI.
+
+ SCENARIO Gitano configures CGit to hide archived repositories
+ GIVEN a standard instance
+ WHEN testinstance adminkey runs config gitano-admin set project.archived true
+ THEN server-side gitano-admin.git file cgitrc contains hide=1