mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
37 lines
906 B
Python
37 lines
906 B
Python
from lib import BaseTest
|
|
|
|
|
|
class SearchMirror1Test(BaseTest):
|
|
"""
|
|
search mirror: regular search
|
|
"""
|
|
fixtureDB = True
|
|
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
|
runCmd = "aptly mirror search wheezy-main '$$Architecture (i386), Name (% *-dev)'"
|
|
|
|
|
|
class SearchMirror2Test(BaseTest):
|
|
"""
|
|
search mirror: missing mirror
|
|
"""
|
|
runCmd = "aptly mirror search mirror-xx 'Name'"
|
|
expectedCode = 1
|
|
|
|
|
|
class SearchMirror3Test(BaseTest):
|
|
"""
|
|
search mirror: wrong expression
|
|
"""
|
|
fixtureDB = True
|
|
expectedCode = 1
|
|
runCmd = "aptly mirror search wheezy-main '$$Architecture (i386'"
|
|
|
|
|
|
class SearchMirror4Test(BaseTest):
|
|
"""
|
|
search mirror: with-deps search
|
|
"""
|
|
fixtureDB = True
|
|
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
|
runCmd = "aptly mirror search -with-deps wheezy-main 'Name (nginx)'"
|