mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
System tests for mirror show & update with filters. #64
This commit is contained in:
@@ -25,3 +25,14 @@ class ShowMirror3Test(BaseTest):
|
||||
fixtureDB = True
|
||||
runCmd = "aptly mirror show --with-packages wheezy-contrib"
|
||||
outputMatchPrepare = lambda _, s: re.sub(r"Last update: [0-9:+A-Za-z -]+\n", "", s)
|
||||
|
||||
|
||||
class ShowMirror4Test(BaseTest):
|
||||
"""
|
||||
show mirror: mirror with filter
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly mirror create -ignore-signatures -filter='nginx | Priority (required)' -filter-with-deps=true mirror4 http://security.debian.org/ wheezy/updates main"
|
||||
]
|
||||
runCmd = "aptly mirror show mirror4"
|
||||
outputMatchPrepare = lambda _, s: re.sub(r"(Date|Valid-Until): [,0-9:+A-Za-z -]+\n", "", s)
|
||||
|
||||
Reference in New Issue
Block a user