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

View File

@@ -0,0 +1,6 @@
Loading mirrors, local repos and snapshots...
Loading list of all packages...
Deleting unreferenced packages (0)...
Building list of files referenced by packages...
Building list of files in package pool...
Deleting unreferenced files (0)...

View File

@@ -0,0 +1,6 @@
Loading mirrors, local repos and snapshots...
Loading list of all packages...
Deleting unreferenced packages (0)...
Building list of files referenced by packages...
Building list of files in package pool...
Deleting unreferenced files (0)...

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"