mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Command aptly repo show.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
Name: repo1
|
||||
Comment:
|
||||
Number of packages: 0
|
||||
@@ -0,0 +1,3 @@
|
||||
Name: repo2
|
||||
Comment: Repository2
|
||||
Number of packages: 0
|
||||
@@ -0,0 +1,3 @@
|
||||
Name: repo1
|
||||
Comment: Cool
|
||||
Number of packages: 0
|
||||
@@ -0,0 +1,4 @@
|
||||
Name: repo2
|
||||
Comment: Cool
|
||||
Number of packages: 0
|
||||
Packages:
|
||||
@@ -0,0 +1 @@
|
||||
ERROR: unable to show: local repo with name repo3 not found
|
||||
@@ -3,3 +3,4 @@ Testing local repo management
|
||||
"""
|
||||
|
||||
from .create import *
|
||||
from .show import *
|
||||
|
||||
@@ -9,7 +9,7 @@ class CreateRepo1Test(BaseTest):
|
||||
|
||||
def check(self):
|
||||
self.check_output()
|
||||
#self.check_cmd_output("aptly mirror show mirror1", "mirror_show")
|
||||
self.check_cmd_output("aptly repo show repo1", "repo_show")
|
||||
|
||||
|
||||
class CreateRepo2Test(BaseTest):
|
||||
@@ -20,7 +20,7 @@ class CreateRepo2Test(BaseTest):
|
||||
|
||||
def check(self):
|
||||
self.check_output()
|
||||
#self.check_cmd_output("aptly mirror show mirror1", "mirror_show")
|
||||
self.check_cmd_output("aptly repo show repo2", "repo_show")
|
||||
|
||||
|
||||
class CreateRepo3Test(BaseTest):
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
from lib import BaseTest
|
||||
|
||||
|
||||
class ShowRepo1Test(BaseTest):
|
||||
"""
|
||||
show local repo: regular
|
||||
"""
|
||||
fixtureCmds = ["aptly repo create -comment=Cool repo1"]
|
||||
runCmd = "aptly repo show repo1"
|
||||
|
||||
|
||||
class ShowRepo2Test(BaseTest):
|
||||
"""
|
||||
show local repo: -with-packages
|
||||
"""
|
||||
fixtureCmds = ["aptly repo create -comment=Cool repo2"]
|
||||
runCmd = "aptly repo show -with-packages repo2"
|
||||
|
||||
|
||||
class ShowRepo3Test(BaseTest):
|
||||
"""
|
||||
show local repo: not found
|
||||
"""
|
||||
expectedCode = 1
|
||||
runCmd = "aptly repo show repo3"
|
||||
Reference in New Issue
Block a user