summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2013-11-04 14:21:27 +0000
committerRichard Maw <richard.maw@gmail.com>2013-11-04 14:21:47 +0000
commit71c0d781ce475320ba0aa36847d33d1de3ae24f6 (patch)
tree07f5d8e678773990aedd2be644706b3219d0b538
parent4cb991a303e8826da72244e0ccfb40fea376260d (diff)
downloadgitano-71c0d781ce475320ba0aa36847d33d1de3ae24f6.tar.bz2
Add basic test for copy commandadd-copy-tests
-rw-r--r--testing/02-commands-copy.yarn27
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.