mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
System tests for mirror/repo/snapshot rename commands. #63
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user