diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2015-10-13 15:59:59 +0200 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2015-10-13 15:59:59 +0200 |
commit | 474f4298edf7992e4d4a10888df04ac112ce774f (patch) | |
tree | f10ac05bbfbe790065fa2f61b5da036249c31236 /testing/02-commands-ls.yarn | |
parent | 664c812884d764515594db6b971f344d0998c832 (diff) | |
download | gitano-474f4298edf7992e4d4a10888df04ac112ce774f.tar.gz |
Merge archiverepo work
Diffstat (limited to 'testing/02-commands-ls.yarn')
-rw-r--r-- | testing/02-commands-ls.yarn | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/testing/02-commands-ls.yarn b/testing/02-commands-ls.yarn index 6a6178c..ad6fd08 100644 --- a/testing/02-commands-ls.yarn +++ b/testing/02-commands-ls.yarn @@ -17,7 +17,7 @@ repositories. SCENARIO Basic operation of ls GIVEN a standard instance WHEN testinstance adminkey runs ls - THEN stdout contains RW gitano-admin + THEN stdout contains RW \ gitano-admin AND stderr is empty General access control for ls @@ -35,4 +35,23 @@ when you run `ls`. THEN stdout does not contain stoat AND stderr is empty +Check listing of archived repositories +====================================== + +When a repository is marked as archived, it should not show up when you +run `ls` even if you have access, unless you pass `--all` to the ls command. + + SCENARIO Archived repositories do not show in ls + GIVEN a standard instance + WHEN testinstance adminkey runs ls + THEN stdout contains gitano-admin + AND stderr is empty + WHEN testinstance adminkey runs config gitano-admin set project.archived true + AND testinstance adminkey runs ls + THEN stdout does not contain gitano-admin + AND stderr is empty + WHEN testinstance adminkey runs ls --all + THEN stdout contains RWA gitano-admin + AND stderr is empty + TODO: Add more tests when we have rule control to govern things a little more. |