Command aptly repo create.

This commit is contained in:
Andrey Smirnov
2014-02-20 12:01:41 +04:00
parent 8df4378f4c
commit 63cd4a80bb
12 changed files with 118 additions and 4 deletions
+3
View File
@@ -0,0 +1,3 @@
Local repo [repo1] successfully added.
You can run 'aptly repo add repo1 ...' to add packages to repository.
+3
View File
@@ -0,0 +1,3 @@
Local repo [repo2]: Repository2 successfully added.
You can run 'aptly repo add repo2 ...' to add packages to repository.
+1
View File
@@ -0,0 +1 @@
ERROR: unable to add local repo: local repo with name repo3 already exists
+5
View File
@@ -0,0 +1,5 @@
"""
Testing local repo management
"""
from .create import *
+32
View File
@@ -0,0 +1,32 @@
from lib import BaseTest
class CreateRepo1Test(BaseTest):
"""
create local repo: regular repo
"""
runCmd = "aptly repo create repo1"
def check(self):
self.check_output()
#self.check_cmd_output("aptly mirror show mirror1", "mirror_show")
class CreateRepo2Test(BaseTest):
"""
create local repo: regular repo with comment
"""
runCmd = "aptly repo create -comment=Repository2 repo2"
def check(self):
self.check_output()
#self.check_cmd_output("aptly mirror show mirror1", "mirror_show")
class CreateRepo3Test(BaseTest):
"""
create local repo: duplicate name
"""
fixtureCmds = ["aptly repo create repo3"]
runCmd = "aptly repo create -comment=Repository3 repo3"
expectedCode = 1