mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
29 lines
652 B
Python
29 lines
652 B
Python
from lib import BaseTest
|
|
|
|
|
|
class ShowRepo1Test(BaseTest):
|
|
"""
|
|
show local repo: regular
|
|
"""
|
|
fixtureCmds = ["aptly repo create -comment=Cool -distribution=squeeze repo1"]
|
|
runCmd = "aptly repo show repo1"
|
|
|
|
|
|
class ShowRepo2Test(BaseTest):
|
|
"""
|
|
show local repo: -with-packages
|
|
"""
|
|
fixtureCmds = [
|
|
"aptly repo create -comment=Cool -distribution=wheezy -component=contrib repo2",
|
|
"aptly repo add repo2 ${files}"
|
|
]
|
|
runCmd = "aptly repo show -with-packages repo2"
|
|
|
|
|
|
class ShowRepo3Test(BaseTest):
|
|
"""
|
|
show local repo: not found
|
|
"""
|
|
expectedCode = 1
|
|
runCmd = "aptly repo show repo3"
|