mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-08 22:30:41 +00:00
Add -json flag to publish list|show
Signed-off-by: Joshua Colson <joshua.colson@gmail.com>
This commit is contained in:
committed by
Lorenzo Bolla
parent
129eb8644d
commit
899ed92ebc
@@ -41,3 +41,27 @@ class PublishList3Test(BaseTest):
|
||||
"aptly publish snapshot -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -label=label1 snap2 ppa/tr2",
|
||||
]
|
||||
runCmd = "aptly publish list -raw"
|
||||
|
||||
|
||||
class PublishList4Test(BaseTest):
|
||||
"""
|
||||
publish list json: empty list
|
||||
"""
|
||||
runCmd = "aptly publish list -json"
|
||||
|
||||
|
||||
class PublishList5Test(BaseTest):
|
||||
"""
|
||||
publish list json: several repos list
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixturePool = True
|
||||
fixtureCmds = [
|
||||
"aptly snapshot create snap1 from mirror gnuplot-maverick",
|
||||
"aptly snapshot merge snap2 snap1",
|
||||
"aptly publish snapshot -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec snap1",
|
||||
"aptly -architectures=amd64 publish snapshot -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -distribution=wheezy -component=contrib snap2 ppa/smira",
|
||||
"aptly publish snapshot -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -origin=origin1 snap2 ppa/tr1",
|
||||
"aptly publish snapshot -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -label=label1 snap2 ppa/tr2",
|
||||
]
|
||||
runCmd = "aptly publish list -json"
|
||||
|
||||
Reference in New Issue
Block a user