"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "freezer/tests/unit/openstack/test_admin.py" between
freezer-9.0.0.tar.gz and freezer-10.0.0.tar.gz

About: OpenStack Freezer is a tool to automate (incremental) data backup and restore process using OpenStack Swift and/or other media storage.
The "Wallaby" series (latest release).

test_admin.py  (freezer-9.0.0):test_admin.py  (freezer-10.0.0)
skipping to change at line 28 skipping to change at line 28
from freezer.openstack import admin from freezer.openstack import admin
from freezer.tests import commons from freezer.tests import commons
class TestAdmin(commons.FreezerBaseTestCase): class TestAdmin(commons.FreezerBaseTestCase):
def setUp(self): def setUp(self):
super(TestAdmin, self).setUp() super(TestAdmin, self).setUp()
self.backup_opt = commons.BackupOpt1() self.backup_opt = commons.BackupOpt1()
self.admin_os = admin.AdminOs(self.backup_opt.client_manager) self.admin_os = admin.AdminOs(self.backup_opt.client_manager)
self.client_manager = self.backup_opt.client_manager self.client_manager = self.backup_opt.client_manager
def test_del_cinderbackup_and_dependend_incremental(self):
self.admin_os.del_cinderbackup_and_dependend_incremental(1)
try:
self.admin_os.del_cinderbackup_and_dependend_incremental(1023)
except Exception as e:
msg = "Delete backup 1023 failed, the status of backup is error."
self.assertEqual(msg, str(e))
try:
self.admin_os.del_cinderbackup_and_dependend_incremental(1024)
except Exception as e:
msg = "Delete backup 1024 failed due to timeout over 120s," \
" the status of backup is deleting."
self.assertEqual(msg, str(e))
def test_del_off_limit_fullbackup_keep(self): def test_del_off_limit_fullbackup_keep(self):
self.admin_os.del_off_limit_fullbackup('2', 1) self.admin_os.del_off_limit_fullbackup('2', 1)
def test_del_off_limit_fullbackup_keep_two(self): def test_del_off_limit_fullbackup_keep_two(self):
self.admin_os.del_off_limit_fullbackup('2', 2) self.admin_os.del_off_limit_fullbackup('2', 2)
def test_remove_cinderbackup_older_than(self):
self.admin_os.remove_cinderbackup_older_than(35, 1463896546.0)
try:
self.admin_os.remove_cinderbackup_older_than(1023, 1463896546.0)
except Exception as e:
msg = "Delete backup 1023 failed, the status of backup is error."
self.assertEqual(msg, str(e))
try:
self.admin_os.remove_cinderbackup_older_than(1024, 1463896546.0)
except Exception as e:
msg = "Delete backup 1024 failed due to timeout over 120s," \
" the status of backup is deleting."
self.assertEqual(msg, str(e))
 End of changes. 2 change blocks. 
0 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)