chiark / gitweb /
dgit-repos-server: some better error msgs, more tests
[dgit.git] / tests / tests / drs-push-rejects
index e3b5c7d603255b13fdd0c2f5b14775b25a0e4acb..eab44a5188670d8bf230cd790f5f50ca50f482df 100755 (executable)
@@ -63,6 +63,14 @@ mustfail 'sid != sponge' HEAD:refs/dgit/sponge $push_spec2
 # fixme test --sig-policy-url string
 # fixme cannot test   reject "signature is not of type 00!";
 
+prep unstable sid
+mktag
+mustfail 'push is missing tag ref update' $push_spec1
+mustfail 'push is missing head ref update' $push_spec2
+mustfail 'pushing unexpected ref' $push_spec HEAD:refs/wombat
+mustfail 'pushing multiple heads' $push_spec HEAD:refs/dgit/wombat
+mustfail 'pushing multiple tags' $push_spec HEAD:refs/tags/debian/wombat
+
 prep unstable sid
 mktag
 cp $tmp/dm.gpg $tmp/dd.gpg