test: add system tests for AppStream mirror create, edit, and update

This commit is contained in:
Philip Cramer
2026-02-26 02:34:57 +01:00
committed by André Roth
parent 7276b9621f
commit 6ecbc9ba90
44 changed files with 189 additions and 6 deletions
+20
View File
@@ -482,3 +482,23 @@ class UpdateMirror27Test(BaseTest):
runCmd = "aptly mirror update -downloader=grab -keyring=aptlytest.gpg grab-fail"
outputMatchPrepare = filterOutRedirects
expectedCode = 1
class UpdateMirror28Test(BaseTest):
"""
update mirrors: update with appstream
"""
fixtureCmds = [
"aptly mirror create --ignore-signatures -with-appstream appstream-test ${url} hardy main",
]
fixtureWebServer = "test_release2"
configOverride = {"downloadRetries": 0}
runCmd = "aptly mirror update -ignore-checksums --ignore-signatures appstream-test"
def gold_processor(self, gold):
return string.Template(gold).substitute({'url': self.webServerUrl})
def check(self):
self.check_output()
self.check_cmd_output("aptly mirror show appstream-test", "mirror_show",
match_prepare=lambda s: re.sub(r"Last update: [0-9:+A-Za-z -]+\n", "", s))