aptly db cleanup test with local repos.

This commit is contained in:
Andrey Smirnov
2014-02-26 21:21:44 +04:00
parent df811ff36a
commit eff530a284
3 changed files with 44 additions and 0 deletions
+32
View File
@@ -60,3 +60,35 @@ class CleanupDB5Test(BaseTest):
"aptly mirror drop gnuplot-maverick",
]
runCmd = "aptly db cleanup"
class CleanupDB6Test(BaseTest):
"""
cleanup db: db is full
"""
fixtureDB = True
fixturePoolCopy = True
runCmd = "aptly db cleanup"
class CleanupDB7Test(BaseTest):
"""
cleanup db: local repos
"""
fixtureCmds = [
"aptly repo create local-repo",
"aptly repo add local-repo ${files}",
]
runCmd = "aptly db cleanup"
# TODO: when repo drop is added
# class CleanupDB8Test(BaseTest):
# """
# cleanup db: local repos dropped
# """
# fixtureCmds = [
# "aptly repo create local-repo",
# "aptly repo add local-repo ${files}",
# "aptly repo drop local-repo",
# ]
# runCmd = "aptly db cleanup"