test: add system test for AppStream publish pass-through

This commit is contained in:
Philip Cramer
2026-02-26 02:35:43 +01:00
committed by André Roth
parent 16e0302f30
commit 2a228625e2
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
Loading packages...
Generating metadata files and linking package files...
[!] Failed to generate package contents: unable to read .deb archive from amanda-client_3.3.1-3~bpo60+1_amd64.deb: ar: missing global header
Finalizing metadata files...
Signing file 'Release' with gpg, please enter your passphrase when prompted:
Clearsigning file 'Release' with gpg, please enter your passphrase when prompted:
Snapshot snap-appstream has been successfully published.
Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing.
Now you can add following line to apt sources:
deb http://your-server/ hardy main
Don't forget to add your GPG key to apt with apt-key.
You can also use `aptly serve` to publish your repositories over HTTP quickly.

View File

@@ -1439,3 +1439,24 @@ class PublishSnapshot43Test(BaseTest):
self.check_file_contents( self.check_file_contents(
'public/dists/maverick/Release', 'release', match_prepare=strip_processor) 'public/dists/maverick/Release', 'release', match_prepare=strip_processor)
class PublishSnapshot44Test(BaseTest):
"""
publish snapshot: mirror with appstream
"""
fixtureWebServer = "../t04_mirror/test_release2"
fixtureGpg = True
fixtureCmds = [
"aptly mirror create --ignore-signatures -with-appstream -architectures=amd64 appstream-test ${url} hardy main",
"aptly mirror update -ignore-checksums --ignore-signatures appstream-test",
"aptly snapshot create snap-appstream from mirror appstream-test",
]
runCmd = "aptly publish snapshot -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec snap-appstream"
gold_processor = BaseTest.expand_environ
configOverride = {"downloadRetries": 0}
def check(self):
super(PublishSnapshot44Test, self).check()
self.check_exists('public/dists/hardy/main/dep11/Components-amd64.yml.gz')
self.check_exists('public/dists/hardy/main/dep11/icons-48x48.tar.gz')