The freezer.tests.unit.snapshot.test_lvm Module

The freezer.tests.unit.snapshot.test_lvm Module

  1. Copyright 2014,2015 Hewlett-Packard Development Company, L.P.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

class freezer.tests.unit.snapshot.test_lvm.Test_lvm_guess(methodName='runTest')

Bases: unittest.case.TestCase

test_no_match()
test_unsing_mount()
test_unsing_proc_mounts()
class freezer.tests.unit.snapshot.test_lvm.Test_lvm_snap(methodName='runTest')

Bases: unittest.case.TestCase

test_already_mounted(*args, **keywargs)
test_ok(*args, **keywargs)
test_snapshot_fails(*args, **keywargs)
test_snapshot_mount_error_raises_Exception(*args, **keywargs)
test_with_snapshot_opt_simple_sets_correct_path_and_raises_on_perm(*args, **keywargs)
class freezer.tests.unit.snapshot.test_lvm.Test_lvm_snap_remove(methodName='runTest')

Bases: unittest.case.TestCase

test_return_none_on_success(*args, **keywargs)
class freezer.tests.unit.snapshot.test_lvm.Test_lvremove(methodName='runTest')

Bases: unittest.case.TestCase

test_raises_on_popen_returncode_not_0(*args, **keywargs)
test_return_none_on_success(*args, **keywargs)
class freezer.tests.unit.snapshot.test_lvm.Test_umount(methodName='runTest')

Bases: unittest.case.TestCase

test_raises_on_popen_returncode_not_0(*args, **keywargs)
test_return_none_on_success(*args, **keywargs)
class freezer.tests.unit.snapshot.test_lvm.Test_validate_lvm_params(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_raises_Exception_on_no_lvmsrcvol()
test_raises_Exception_on_no_lvmvolgrp()
test_raises_Exception_on_no_pathtobackup()
test_raises_Exception_on_snapperm_invalid()
test_return_false_on_lvm_not_required()
test_return_true_on_lvm_configuration_valid()
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

freezer 6.0.1.dev8