summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2023-05-24 11:07:26 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2023-05-24 11:22:44 +0200
commit4e35e5079f589700b4b5f1fc00787144bc1c58bf (patch)
tree4cb33d5e8059d3719b3d045c733c9555212b4233 /test/integration
parent48cbc5413fb2a0e490c2282b9df65da96ad7a9f2 (diff)
Ensure that Snapshots: no doesn't get overriden by host-name config
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-snapshot4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/integration/test-snapshot b/test/integration/test-snapshot
index e32b91daf..2bf7d70d4 100755
--- a/test/integration/test-snapshot
+++ b/test/integration/test-snapshot
@@ -173,6 +173,10 @@ testfailuremsg "E: Snapshots not supported for http://localhost:${APTHTTPPORT}/
E: Snapshots not supported for http://localhost:${APTHTTPPORT}/ stable
E: The list of sources could not be read." aptget update --print-uris -S BANANA
+testfailuremsg "E: Snapshots not supported for http://localhost:${APTHTTPPORT}/ stable
+E: Snapshots not supported for http://localhost:${APTHTTPPORT}/ stable
+E: The list of sources could not be read." aptget update --print-uris -S BANANA -o Acquire::Snapshots::URI::Host::localhost="https://example.org/snapshots/@PATH@/@SNAPSHOTID@/"
+
msgmsg "Snapshot URI configured in apt.conf"
sed -i '/^Snapshots: / d' $(find rootdir/var/lib/apt/lists -name '*Release')
releasechanger 'Label' 'Testcases'