diff options
author | David Kalnischkies <david@kalnischkies.de> | 2017-08-28 13:22:58 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2017-09-09 17:19:48 +0200 |
commit | 8130f39cf085efcf34bee9e9ce89802b29bb9318 (patch) | |
tree | 18633bae4d122a992f0d64cdadd3e58f4e09c504 /test/integration/test-bug-870675-hang-on-unsupported-method | |
parent | 149ee4017c7d21b420b7109ea7606012c9051d15 (diff) |
add test for bug 870675 (hang on unsupported method)
Commit e250a8d8d8ef2f8f8c5e2041f7645c49fba7aa36 implemented the fix and
should have included already this testcase for it.
Gbp-Dch: Ignore
Diffstat (limited to 'test/integration/test-bug-870675-hang-on-unsupported-method')
-rwxr-xr-x | test/integration/test-bug-870675-hang-on-unsupported-method | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/integration/test-bug-870675-hang-on-unsupported-method b/test/integration/test-bug-870675-hang-on-unsupported-method new file mode 100755 index 000000000..0d79b8f60 --- /dev/null +++ b/test/integration/test-bug-870675-hang-on-unsupported-method @@ -0,0 +1,26 @@ +#!/bin/sh +set -e + +TESTDIR="$(readlink -f "$(dirname "$0")")" +. "$TESTDIR/framework" +setupenvironment +configarchitecture 'amd64' + +changetowebserver + +echo 'foo' > aptarchive/foobar +echo 'bar' > aptarchive/foobar2 + +testsuccess apthelper download-file "http://localhost:${APTHTTPPORT}/foobar" ./downloaded/foobar 'SHA1:f1d2d2f924e986ac86fdf7b36c94bcdf32beec15' +rm -f ./downloaded/foobar +testsuccess apthelper download-file "http://localhost:${APTHTTPPORT}/foobar" ./downloaded/foobar 'SHA1:f1d2d2f924e986ac86fdf7b36c94bcdf32beec15' \ + "http://localhost:${APTHTTPPORT}/foobar2" ./downloaded/foobar2 'SHA1:e242ed3bffccdf271b7fbaf34ed72d089537b42f' +rm -f ./downloaded/foobar ./downloaded/foobar2 + +testfailure apthelper download-file "foo://localhost:${APTHTTPPORT}/foobar" ./downloaded/foobar 'SHA1:f1d2d2f924e986ac86fdf7b36c94bcdf32beec15' +testsuccess grep 'The method driver .*/foo could not be found' rootdir/tmp/testfailure.output +rm -f ./downloaded/foobar +testfailure apthelper download-file "foo://localhost:${APTHTTPPORT}/foobar" ./downloaded/foobar 'SHA1:f1d2d2f924e986ac86fdf7b36c94bcdf32beec15' \ + "foo://localhost:${APTHTTPPORT}/foobar2" ./downloaded/foobar2 'SHA1:e242ed3bffccdf271b7fbaf34ed72d089537b42f' +testsuccess grep 'The method driver .*/foo could not be found' rootdir/tmp/testfailure.output +rm -f ./downloaded/foobar ./downloaded/foobar2 |