diff options
authorRichard Maw <>2013-11-04 14:21:27 +0000
committerRichard Maw <>2013-11-04 14:21:47 +0000
commit71c0d781ce475320ba0aa36847d33d1de3ae24f6 (patch)
parent4cb991a303e8826da72244e0ccfb40fea376260d (diff)
Add basic test for copy commandadd-copy-tests
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/02-commands-copy.yarn b/testing/02-commands-copy.yarn
index f282cb0..8319cb6 100644
--- a/testing/02-commands-copy.yarn
+++ b/testing/02-commands-copy.yarn
@@ -1 +1,28 @@
<!-- -*- markdown -*- -->
+`copy <oldrepo> <newrepo>`
+The `copy` command can be used to fork a repository, so you could work on
+a project hosted in the same gitano instance without needing push access.
+Basic operation
+The basic operation of a copy is to duplicate a repository. This by
+itself is not useful, since the primary use-case is to provide a copy
+of a repository you are not allowed to write to, to a place you are.
+ SCENARIO Basic operation of copy
+ GIVEN a standard instance
+ WHEN testinstance adminkey runs create stoat
+ AND testinstance adminkey runs copy stoat badger
+ AND testinstance adminkey runs ls
+ THEN stdout contains badger
+Permissions checking
+TODO: This requires gitano rules that are not the default of there being
+gitano-admin and everyone else, since only gitano-admin is able to read
+admin repositories.