diff options
author | Michael Vogt <mvo@debian.org> | 2014-06-10 14:47:03 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-06-10 14:47:03 +0200 |
commit | ac00cca724734db58ad14ab8c77d445d0df3bc9f (patch) | |
tree | f476daeecf8cff875e074a819a9229b8a670435a /test/integration/test-apt-get-source-authenticated | |
parent | c0a5e4644c8cf77feb035cfe8961f40099e1e3c6 (diff) | |
parent | a3f1d60cb75ab83f63a52a43c056a4752c8fdeb2 (diff) |
Merge remote-tracking branch 'mvo/bugfix/apt-get-source-unauthenticated-warning' into debian/sid
Diffstat (limited to 'test/integration/test-apt-get-source-authenticated')
-rwxr-xr-x | test/integration/test-apt-get-source-authenticated | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/integration/test-apt-get-source-authenticated b/test/integration/test-apt-get-source-authenticated new file mode 100755 index 000000000..2cee13923 --- /dev/null +++ b/test/integration/test-apt-get-source-authenticated @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Regression test for debian bug #749795. Ensure that we fail with +# a error if apt-get source foo will download a source that comes +# from a unauthenticated repository +# +set -e + +TESTDIR=$(readlink -f $(dirname $0)) +. $TESTDIR/framework + +setupenvironment +configarchitecture "i386" + +# a "normal" package with source and binary +buildsimplenativepackage 'foo' 'all' '2.0' + +setupaptarchive --no-update + +APTARCHIVE=$(readlink -f ./aptarchive) +rm -f $APTARCHIVE/dists/unstable/*Release* + +# update without authenticated InRelease file +testsuccess aptget update + +# this all should fail +testfailure aptget install -y foo +testfailure aptget source foo + +# allow overriding the warning +testsuccess aptget source --allow-unauthenticated foo |