summaryrefslogtreecommitdiff
path: root/testing/03-cgit-support.yarn
blob: e9a33d8692fe935561d94fa73bdf5f095302e549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!-- -*- 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

    FINALLY the instance is torn down