mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-08 05:50:47 +00:00
System test for aptly snapshot create empty.
This commit is contained in:
@@ -34,3 +34,26 @@ class CreateSnapshot3Test(BaseTest):
|
||||
fixtureCmds = ["aptly snapshot create snap1 from mirror wheezy-main"]
|
||||
runCmd = "aptly snapshot create snap1 from mirror wheezy-contrib"
|
||||
expectedCode = 1
|
||||
|
||||
|
||||
class CreateSnapshot4Test(BaseTest):
|
||||
"""
|
||||
create snapshot: empty
|
||||
"""
|
||||
runCmd = "aptly snapshot create snap4 empty"
|
||||
|
||||
def check(self):
|
||||
def remove_created_at(s):
|
||||
return re.sub(r"Created At: [0-9:A-Za-z -]+\n", "", s)
|
||||
|
||||
self.check_output()
|
||||
self.check_cmd_output("aptly snapshot show -with-packages snap4", "snapshot_show", match_prepare=remove_created_at)
|
||||
|
||||
|
||||
class CreateSnapshot5Test(BaseTest):
|
||||
"""
|
||||
create snapshot: empty duplicate name
|
||||
"""
|
||||
fixtureCmds = ["aptly snapshot create snap5 empty"]
|
||||
runCmd = "aptly snapshot create snap5 empty"
|
||||
expectedCode = 1
|
||||
|
||||
Reference in New Issue
Block a user