System tests for mirror show & update with filters. #64

This commit is contained in:
Andrey Smirnov
2014-07-16 13:56:26 +04:00
parent 69ad2ccd84
commit cf4619784e
4 changed files with 67 additions and 0 deletions
+11
View File
@@ -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)