mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-07 22:20:24 +00:00
test: add system tests for AppStream mirror create, edit, and update
This commit is contained in:
committed by
André Roth
parent
7276b9621f
commit
6ecbc9ba90
@@ -114,3 +114,16 @@ class EditMirror10Test(BaseTest):
|
||||
"""
|
||||
fixtureCmds = ["aptly mirror create -ignore-signatures mirror10 http://repo.aptly.info/system-tests/ftp.ru.debian.org/debian bookworm main"]
|
||||
runCmd = "aptly mirror edit -ignore-signatures -archive-url http://repo.aptly.info/system-tests/ftp.ch.debian.org/debian mirror10"
|
||||
|
||||
|
||||
class EditMirror11Test(BaseTest):
|
||||
"""
|
||||
edit mirror: enable appstream
|
||||
"""
|
||||
fixtureDB = True
|
||||
runCmd = "aptly mirror edit -with-appstream wheezy-main"
|
||||
|
||||
def check(self):
|
||||
self.check_output()
|
||||
self.check_cmd_output("aptly mirror show wheezy-main", "mirror_show",
|
||||
match_prepare=lambda s: re.sub(r"Last update: [0-9:+A-Za-z -]+\n", "", s))
|
||||
|
||||
Reference in New Issue
Block a user