System tests for aptly repo move|copy.

This commit is contained in:
Andrey Smirnov
2014-02-27 18:06:13 +04:00
parent a45d2f3ce9
commit abe9a37408
34 changed files with 385 additions and 3 deletions
+22 -3
View File
@@ -3,7 +3,7 @@ from lib import BaseTest
class RemoveRepo1Test(BaseTest):
"""
remvoe from local repo: as dep
remove from local repo: as dep
"""
fixtureCmds = [
"aptly repo create -comment=Cool local-repo",
@@ -21,7 +21,7 @@ class RemoveRepo1Test(BaseTest):
class RemoveRepo2Test(BaseTest):
"""
remvoe from local repo: as dep with version, key
remove from local repo: as dep with version, key
"""
fixtureCmds = [
"aptly repo create -comment=Cool local-repo",
@@ -39,7 +39,26 @@ class RemoveRepo2Test(BaseTest):
class RemoveRepo3Test(BaseTest):
"""
remvoe from local repo: no such repo
remove from local repo: no such repo
"""
runCmd = "aptly repo remove local-repo 'pyspi (>> 0.6.1-1.3)' libboost-program-options-dev_1.49.0.1_i386"
expectedCode = 1
class RemoveRepo4Test(BaseTest):
"""
remove from local repo: dry run
"""
fixtureCmds = [
"aptly repo create -comment=Cool local-repo",
"aptly repo add local-repo ${files}"
]
runCmd = "aptly repo remove -dry-run local-repo 'pyspi (>> 0.6.1-1.3)' libboost-program-options-dev_1.49.0.1_i386"
def check(self):
self.check_output()
self.check_cmd_output("aptly repo show -with-packages local-repo", "repo_show")
def output_processor(self, output):
return "\n".join(sorted(output.split("\n")))