chiark / gitweb /
test suite: downstream-gitless: Test import of .dsc with unsafe url.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 18 Jan 2017 21:35:23 +0000 (21:35 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 18 Jan 2017 21:35:24 +0000 (21:35 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
tests/tests/downstream-gitless

index 5b9ef0eed4e76bcbe4bf7b0e9915a11e60bcd0da..0fd00bbb6d808297244b41c85b073d8403895c31 100644 (file)
@@ -10,6 +10,7 @@ dgit (3.6~) unstable; urgency=medium
 
   Test suite:
   * downstream-gitless: Test import of .dsc from unknown distro.
+  * downstream-gitless: Test import of .dsc with unsafe url.
 
  --
 
index c70c50fb4e0fe8bfe0e3774dbba00c680fbea7bd..6b2df1bd3e2578bf6565cbe1308d87093c541074 100755 (executable)
@@ -77,6 +77,9 @@ t-dgit clone example avon example.avon
 perl -i -pe 's/ test-dummy / unknown-distro / if m/^Dgit:/' $dscf
 cd $p.import
 
+t-expect-fail 'hinted url with protocol file which is unsafe' \
+t-dgit import-dsc $dscf xunk
+
 t-git-config dgit.dsc-url-proto-ok.file true
 t-dgit import-dsc $dscf xunk