aptly mirror update tests.

This commit is contained in:
Andrey Smirnov
2014-01-21 18:07:06 +04:00
parent 06ed37225a
commit a3df28ec4b
6 changed files with 146 additions and 6 deletions
+23
View File
@@ -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