summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-12-13 14:37:14 +0100
committerMichael Vogt <mvo@debian.org>2013-12-13 14:37:14 +0100
commit5acf154d810a0225cc7d14637d101205e43ceba8 (patch)
tree5b9283c9470a45677c56fd6d6643578650938a56 /test
parent9b7c10509c534b7d413b5102231cb0ca387f1c65 (diff)
make apt-key net-update actually testable
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-apt-key-net-update14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/integration/test-apt-key-net-update b/test/integration/test-apt-key-net-update
index 73545aff7..e0869402e 100755
--- a/test/integration/test-apt-key-net-update
+++ b/test/integration/test-apt-key-net-update
@@ -6,6 +6,20 @@ TESTDIR=$(readlink -f $(dirname $0))
setupenvironment
configarchitecture "i386"
+changetowebserver
+
+# setup env
+mkdir -p aptarchive/ubuntu/project var/lib/apt/keyrings
+echo 'APT::Key::ArchiveKeyringURI "http://localhost:8080/ubuntu/project/ubuntu-archive-keyring.gpg";' >> ./aptconfig.conf
+echo 'APT::Key::Net-Update-Enabled "1";' >> ./aptconfig.conf
+
+# signed thing
+echo "meep" > aptarchive/ubuntu/project/ubuntu-archive-keyring.gpg
+
+# test against the "real" webserver
+aptkey --fakeroot net-update
+
+exit 1
# mock
requires_root() {