Add -json output flag to repo list|show

Signed-off-by: Joshua Colson <joshua.colson@gmail.com>
This commit is contained in:
Joshua Colson
2021-09-16 09:23:35 -07:00
committed by Lorenzo Bolla
parent f9d08e1377
commit 1f56fb86e3
12 changed files with 150 additions and 19 deletions
+17
View File
@@ -37,3 +37,20 @@ class ListRepo4Test(BaseTest):
"aptly repo create repo1",
]
runCmd = "aptly repo list -raw"
class ListRepo5Test(BaseTest):
"""
list local repo: json no repos
"""
runCmd = "aptly repo list -json"
class ListRepo6Test(BaseTest):
"""
list local repo: json normal
"""
fixtureCmds = [
"aptly repo create -comment=Cool3 repo3",
"aptly repo create -comment=Cool2 repo2",
"aptly repo create repo1",
]
runCmd = "aptly repo list -json"