diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2015-10-28 13:45:43 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2015-10-28 14:16:59 +0000 |
commit | 4c837781eee8604255842e98e31b1157ef12de74 (patch) | |
tree | 162637ae0d146dab7b733b6ef2603da8761404ac | |
parent | 8e29fb9c131a7e77eb15423d76acbc2df2c4c907 (diff) | |
download | gitano-cgit-repo-hide-yarn.tar.bz2 |
yarns: Check cgit hide=1 set when project.archivedcgit-repo-hide-yarn
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | testing/03-cgit-support.yarn | 17 |
2 files changed, 18 insertions, 1 deletions
@@ -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 |