mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-29 04:16:07 +00:00
Add -json flag to mirror list|show
Signed-off-by: Joshua Colson <joshua.colson@gmail.com>
This commit is contained in:
committed by
Lorenzo Bolla
parent
d582f9bab2
commit
129eb8644d
@@ -1,4 +1,5 @@
|
||||
from lib import BaseTest
|
||||
import re
|
||||
|
||||
|
||||
class ListMirror1Test(BaseTest):
|
||||
@@ -34,3 +35,26 @@ class ListMirror4Test(BaseTest):
|
||||
list mirrors: raw empty list
|
||||
"""
|
||||
runCmd = "aptly -raw mirror list"
|
||||
|
||||
|
||||
class ListMirror5Test(BaseTest):
|
||||
"""
|
||||
list mirrors: json empty list
|
||||
"""
|
||||
runCmd = "aptly mirror list -json"
|
||||
|
||||
|
||||
class ListMirror6Test(BaseTest):
|
||||
"""
|
||||
list mirrors: regular list
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly mirror create --ignore-signatures mirror1 http://cdn-fastly.deb.debian.org/debian/ stretch",
|
||||
"aptly mirror create -with-sources --ignore-signatures mirror2 http://cdn-fastly.deb.debian.org/debian/ stretch contrib",
|
||||
"aptly -architectures=i386 mirror create --ignore-signatures mirror3 http://cdn-fastly.deb.debian.org/debian/ stretch non-free",
|
||||
"aptly mirror create -ignore-signatures mirror4 http://download.opensuse.org/repositories/Apache:/MirrorBrain/Debian_9.0/ ./",
|
||||
]
|
||||
runCmd = "aptly mirror list -json"
|
||||
|
||||
def outputMatchPrepare(_, s):
|
||||
return re.sub(r'[ ]*"UUID": "[\w-]+",?\n', '', s)
|
||||
|
||||
Reference in New Issue
Block a user