summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-10-28 17:14:14 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-10-30 19:01:02 +0100
commit74467e560df6c581d2d8f541471fb945c3e86079 (patch)
tree67982428af0e1bc0e7e0b60f29359a7ead703c90
parent9700084c22f44b0f7e02bde411493e8f1a1a69d4 (diff)
downloadgitano-74467e560df6c581d2d8f541471fb945c3e86079.tar.bz2
yarns: Add test for git-upload-archive command
This is used by git-archive to get the server to generate a tarball.
-rw-r--r--Makefile2
-rw-r--r--testing/02-commands-git-upload-archive.yarn12
2 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d62641a..a2aedec 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ TEST_BIN_NAMES := gitano-test-tool
TESTS := 01-basics 02-commands-as 02-commands-config 02-commands-copy \
02-commands-count-objects 02-commands-create 02-commands-destroy \
- 02-commands-fsck 02-commands-gc 02-commands-graveyard \
+ 02-commands-fsck 02-commands-gc 02-commands-graveyard 02-commands-git-upload-archive \
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 \
diff --git a/testing/02-commands-git-upload-archive.yarn b/testing/02-commands-git-upload-archive.yarn
new file mode 100644
index 0000000..a16a0ca
--- /dev/null
+++ b/testing/02-commands-git-upload-archive.yarn
@@ -0,0 +1,12 @@
+<!-- -*- markdown -*- -->
+git archive \-\-remote support with git-upload-archive
+======================================================
+
+An appropriately configured git server
+can also serve the contents of a git repository directly through git-archive,
+which is useful for providing snapshots.
+
+ SCENARIO Performing git-archive operations
+ GIVEN a standard instance
+ WHEN testinstance adminkey uses git archive to extract the tree of gitano-admin HEAD to test
+ THEN test/site.conf contains site_name "Gitano Test Instance"