mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-29 04:16:07 +00:00
Add options --with-packages to show list of packages in snapshot & mirror.
This commit is contained in:
@@ -8,7 +8,7 @@ class ShowSnapshot1Test(BaseTest):
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixtureCmds = ["aptly snapshot create snap1 from mirror wheezy-non-free"]
|
||||
runCmd = "aptly snapshot show snap1"
|
||||
runCmd = "aptly snapshot show --with-packages snap1"
|
||||
outputMatchPrepare = lambda _, s: re.sub(r"Created At: [0-9:A-Za-z -]+\n", "", s)
|
||||
|
||||
|
||||
@@ -19,3 +19,13 @@ class ShowSnapshot2Test(BaseTest):
|
||||
fixtureDB = True
|
||||
runCmd = "aptly snapshot show no-such-snapshot"
|
||||
expectedCode = 1
|
||||
|
||||
|
||||
class ShowSnapshot3Test(BaseTest):
|
||||
"""
|
||||
show snapshot: from mirror w/o packages
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixtureCmds = ["aptly snapshot create snap1 from mirror wheezy-non-free"]
|
||||
runCmd = "aptly snapshot show snap1"
|
||||
outputMatchPrepare = lambda _, s: re.sub(r"Created At: [0-9:A-Za-z -]+\n", "", s)
|
||||
|
||||
Reference in New Issue
Block a user