mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-31 04:30:44 +00:00
Raw (machine-readable) format for aptly mirror/repo/snapshot list. #27
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
List of mirrors:
|
||||
List of local repos:
|
||||
* [repo1] (packages: 0)
|
||||
* [repo2]: Cool2 (packages: 0)
|
||||
* [repo3]: Cool3 (packages: 0)
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
repo1
|
||||
repo2
|
||||
repo3
|
||||
@@ -18,3 +18,22 @@ class ListRepo2Test(BaseTest):
|
||||
"aptly repo create repo1",
|
||||
]
|
||||
runCmd = "aptly repo list"
|
||||
|
||||
|
||||
class ListRepo3Test(BaseTest):
|
||||
"""
|
||||
list local repos: raw no repos
|
||||
"""
|
||||
runCmd = "aptly -raw repo list"
|
||||
|
||||
|
||||
class ListRepo4Test(BaseTest):
|
||||
"""
|
||||
list local repo: raw normal
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly repo create -comment=Cool3 repo3",
|
||||
"aptly repo create -comment=Cool2 repo2",
|
||||
"aptly repo create repo1",
|
||||
]
|
||||
runCmd = "aptly repo list -raw"
|
||||
|
||||
Reference in New Issue
Block a user