mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Add -json output flag to repo list|show
Signed-off-by: Joshua Colson <joshua.colson@gmail.com>
This commit is contained in:
committed by
Lorenzo Bolla
parent
f9d08e1377
commit
1f56fb86e3
@@ -26,3 +26,22 @@ class ShowRepo3Test(BaseTest):
|
||||
"""
|
||||
expectedCode = 1
|
||||
runCmd = "aptly repo show repo3"
|
||||
|
||||
|
||||
class ShowRepo4Test(BaseTest):
|
||||
"""
|
||||
show local repo: json regular
|
||||
"""
|
||||
fixtureCmds = ["aptly repo create -comment=Cool -distribution=squeeze repo1"]
|
||||
runCmd = "aptly repo show -json repo1"
|
||||
|
||||
|
||||
class ShowRepo5Test(BaseTest):
|
||||
"""
|
||||
show local repo: json -with-packages
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly repo create -comment=Cool -distribution=wheezy -component=contrib repo2",
|
||||
"aptly repo add repo2 ${files}"
|
||||
]
|
||||
runCmd = "aptly repo show -json -with-packages repo2"
|
||||
|
||||
Reference in New Issue
Block a user