Added CLI test for snapshot merge with latest flag

This commit is contained in:
Ryan Uber
2014-04-23 00:25:44 -07:00
parent 6c3b2f686e
commit 3800f2c957
2 changed files with 17 additions and 0 deletions
@@ -0,0 +1,3 @@
Snapshot snap4 successfully created.
You can run 'aptly publish snapshot snap4' to publish snapshot as Debian repository.
+14
View File
@@ -78,3 +78,17 @@ class MergeSnapshot5Test(BaseTest):
]
runCmd = "aptly snapshot merge snap1 snap1"
expectedCode = 1
class MergeSnapshot6Test(BaseTest):
"""
merge snapshots: use latest versions only
"""
fixtureDB = True
fixtureCmds = [
"aptly snapshot create snap1 from mirror wheezy-main",
"aptly snapshot create snap2 from mirror wheezy-non-free",
"aptly snapshot create snap3 from mirror wheezy-backports",
]
runCmd = "aptly snapshot merge -latest snap4 snap1 snap2 snap3"
expectedCode = 0