mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
Add 'mirror already exists' test.
This commit is contained in:
2
system/t04_mirror/CreateMirror8Test_gold
Normal file
2
system/t04_mirror/CreateMirror8Test_gold
Normal file
@@ -0,0 +1,2 @@
|
||||
Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release...
|
||||
ERROR: unable to add mirror: mirror with name mirror8 already exists
|
||||
@@ -73,3 +73,12 @@ class CreateMirror7Test(BaseTest):
|
||||
self.check_cmd_output("aptly mirror show mirror7", "mirror_show")
|
||||
|
||||
|
||||
class CreateMirror8Test(BaseTest):
|
||||
"""
|
||||
create mirror: already exists
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly mirror create mirror8 http://mirror.yandex.ru/debian/ wheezy main contrib"
|
||||
]
|
||||
runCmd = "aptly mirror create mirror8 http://mirror.yandex.ru/debian/ wheezy main contrib"
|
||||
expectedCode = 1
|
||||
|
||||
Reference in New Issue
Block a user