Tests for aptly db recover. #25

This commit is contained in:
Andrey Smirnov
2014-04-05 17:01:16 +04:00
parent 4afa3126e4
commit 173dd775bc
5 changed files with 46 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
from lib import BaseTest
# Waiting for PR
# class RecoverDB1Test(BaseTest):
# """
# recover db: no DB
# """
# runCmd = "aptly db recover"
class RecoverDB2Test(BaseTest):
"""
recover db: without CURRENT files
"""
fixtureDB = True
runCmd = "aptly db recover"
def prepare(self):
super(RecoverDB2Test, self).prepare()
self.delete_file("db/CURRENT")
def check(self):
self.check_output()
self.check_cmd_output("aptly mirror list", "mirror_list")