System tests for mirror/repo/snapshot rename commands. #63

This commit is contained in:
Andrey Smirnov
2014-07-26 17:28:16 +04:00
parent c5922737ed
commit b9c8a8d9da
18 changed files with 141 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
from lib import BaseTest
class RenameMirror1Test(BaseTest):
"""
rename mirror: regular operations
"""
fixtureDB = True
runCmd = "aptly mirror rename wheezy-main wheezy-main-cool"
def check(self):
self.check_output()
self.check_cmd_output("aptly mirror list", "mirror_list")
class RenameMirror2Test(BaseTest):
"""
rename mirror: missing mirror
"""
runCmd = "aptly mirror rename wheezy-main wheezy-main-cool"
expectedCode = 1
class RenameMirror3Test(BaseTest):
"""
rename mirror: already exists
"""
fixtureDB = True
runCmd = "aptly mirror rename wheezy-main wheezy-contrib"
expectedCode = 1