diff --git a/system/t04_mirror/CreateMirror8Test_gold b/system/t04_mirror/CreateMirror8Test_gold new file mode 100644 index 00000000..e76510ce --- /dev/null +++ b/system/t04_mirror/CreateMirror8Test_gold @@ -0,0 +1,2 @@ +Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release... +ERROR: unable to add mirror: mirror with name mirror8 already exists diff --git a/system/t04_mirror/create.py b/system/t04_mirror/create.py index 41c44977..be40500f 100644 --- a/system/t04_mirror/create.py +++ b/system/t04_mirror/create.py @@ -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