System tests for aptly snapshot pull -all-matches. #70

This commit is contained in:
Andrey Smirnov
2014-07-10 00:55:53 +04:00
parent 2a9b2f87f9
commit a7cb40ee7a
3 changed files with 250 additions and 0 deletions
+24
View File
@@ -207,3 +207,27 @@ class PullSnapshot12Test(BaseTest):
"aptly snapshot create sensu from mirror sensu",
]
runCmd = "aptly snapshot pull -architectures=amd64,i386 empty sensu destination sensu"
class PullSnapshot13Test(BaseTest):
"""
pull snapshot: pull all versions
"""
fixtureDB = True
fixtureCmds = [
"aptly snapshot create empty empty",
"aptly snapshot create sensu from mirror sensu",
]
runCmd = "aptly snapshot pull -architectures=amd64,i386 -all-matches empty sensu destination sensu"
class PullSnapshot14Test(BaseTest):
"""
pull snapshot: pull with query
"""
fixtureDB = True
fixtureCmds = [
"aptly snapshot create empty empty",
"aptly snapshot create sensu from mirror sensu",
]
runCmd = "aptly snapshot pull -architectures=amd64,i386 -all-matches empty sensu destination 'sensu (>0.12)' 'sensu (<0.9.6)'"