List snapshots by time: added integration tests

Added a couple of integration tests for the new list snapshot by
creation time feature.
This commit is contained in:
Simon Aquino
2014-06-30 19:13:35 +01:00
parent 429788db0f
commit b4ea963744
3 changed files with 46 additions and 0 deletions
+33
View File
@@ -47,3 +47,36 @@ class ListSnapshot4Test(BaseTest):
list snapshots: raw empty list
"""
runCmd = "aptly snapshot -raw list"
class ListSnapshot5Test(BaseTest):
"""
list snapshots: raw regular list sorted by time
"""
fixtureDB = True
fixtureCmds = [
"aptly snapshot create snap2 from mirror wheezy-main",
"aptly snapshot create snap1 from mirror wheezy-contrib",
"aptly snapshot merge snap3 snap1 snap2",
"aptly snapshot pull snap1 snap2 snap4 mame unrar",
"aptly repo create local-repo",
"aptly repo add local-repo ${files}",
"aptly snapshot create snap5 from repo local-repo",
]
runCmd = "aptly -raw -sort=time snapshot list"
class ListSnapshot6Test(BaseTest):
"""
list snapshots: regular list sorted by time
"""
fixtureDB = True
fixtureCmds = [
"aptly snapshot create snap2 from mirror wheezy-contrib",
"aptly snapshot create snap1 from mirror wheezy-main",
"aptly snapshot merge snap3 snap1 snap2",
"aptly snapshot pull snap1 snap2 snap4 mame unrar",
"aptly repo create local-repo",
"aptly repo add local-repo ${files}",
"aptly snapshot create snap5 from repo local-repo",
]
runCmd = "aptly -sort=time snapshot list"