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
+19
View File
@@ -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"