Raw (machine-readable) format for aptly mirror/repo/snapshot list. #27

This commit is contained in:
Andrey Smirnov
2014-04-15 10:43:36 +04:00
parent ce615facf9
commit 90dd21b270
13 changed files with 167 additions and 43 deletions
+24
View File
@@ -23,3 +23,27 @@ class ListSnapshot2Test(BaseTest):
list snapshots: empty list
"""
runCmd = "aptly snapshot list"
class ListSnapshot3Test(BaseTest):
"""
list snapshots: raw regular list
"""
fixtureDB = True
fixtureCmds = [
"aptly snapshot create snap1 from mirror wheezy-main",
"aptly snapshot create snap2 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 snapshot list"
class ListSnapshot4Test(BaseTest):
"""
list snapshots: raw empty list
"""
runCmd = "aptly snapshot -raw list"