mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-07 22:20:24 +00:00
Command aptly repo create.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user