mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
aptly mirror update tests.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
from lib import BaseTest
|
||||
|
||||
|
||||
class UpdateMirror1Test(BaseTest):
|
||||
"""
|
||||
update mirrors: regular update
|
||||
"""
|
||||
longTest = True
|
||||
fixtureCmds = [
|
||||
"aptly -architectures=i386,amd64 mirror create alsa-ppa http://ppa.launchpad.net/alsa-backports/ubuntu/ hardy main",
|
||||
]
|
||||
runCmd = "aptly mirror update alsa-ppa"
|
||||
|
||||
def output_processor(self, output):
|
||||
return "\n".join(sorted(output.split("\n")))
|
||||
|
||||
|
||||
class UpdateMirror2Test(BaseTest):
|
||||
"""
|
||||
update mirrors: no such repo
|
||||
"""
|
||||
runCmd = "aptly mirror update mirror-xyz"
|
||||
expectedCode = 1
|
||||
Reference in New Issue
Block a user