mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
aptly db cleanup test with local repos.
This commit is contained in:
6
system/t08_db/CleanupDB6Test_gold
Normal file
6
system/t08_db/CleanupDB6Test_gold
Normal 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)...
|
||||
6
system/t08_db/CleanupDB7Test_gold
Normal file
6
system/t08_db/CleanupDB7Test_gold
Normal 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)...
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user