mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Command aptly repo list.
This commit is contained in:
1
system/t09_repo/ListRepo1Test_gold
Normal file
1
system/t09_repo/ListRepo1Test_gold
Normal file
@@ -0,0 +1 @@
|
||||
No local repositories found, create one with `aptly repo create ...`.
|
||||
6
system/t09_repo/ListRepo2Test_gold
Normal file
6
system/t09_repo/ListRepo2Test_gold
Normal file
@@ -0,0 +1,6 @@
|
||||
List of mirrors:
|
||||
* [repo1] (packages: 0)
|
||||
* [repo2]: Cool2 (packages: 0)
|
||||
* [repo3]: Cool3 (packages: 0)
|
||||
|
||||
To get more information about local repository, run `aptly repo show <name>`.
|
||||
@@ -4,3 +4,4 @@ Testing local repo management
|
||||
|
||||
from .create import *
|
||||
from .show import *
|
||||
from .list import *
|
||||
|
||||
20
system/t09_repo/list.py
Normal file
20
system/t09_repo/list.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from lib import BaseTest
|
||||
|
||||
|
||||
class ListRepo1Test(BaseTest):
|
||||
"""
|
||||
list local repos: no repos
|
||||
"""
|
||||
runCmd = "aptly repo list"
|
||||
|
||||
|
||||
class ListRepo2Test(BaseTest):
|
||||
"""
|
||||
list local repo: normal
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly repo create -comment=Cool3 repo3",
|
||||
"aptly repo create -comment=Cool2 repo2",
|
||||
"aptly repo create repo1",
|
||||
]
|
||||
runCmd = "aptly repo list"
|
||||
Reference in New Issue
Block a user