freezer.tests.integration.test_agent module

class freezer.tests.integration.test_agent.TestBackupFSLocalstorage(methodName='runTest')

Bases: freezer.tests.integration.common.TestFS

test_backup_local_storage_use_lvm_snapshot_and_path_to_backup()
test_backup_preexisting_dir()

Use external pre-defined directory for tests. If directory does not exist, then skip

Restore to temporary folder (removed on exit) :return:

test_backup_single_level()

How it works?

  • use the default source and destination trees in /tmp (see common.TestFS)

  • use temporary directory for backup storage

  • add some random data

  • check that trees don’t match anymore

  • execute backup of source tree

  • execute restore into destination tree

  • check that source and destination trees match

Returns

non on success

test_trees()
class freezer.tests.integration.test_agent.TestBackupSSH(methodName='runTest')

Bases: freezer.tests.integration.common.TestFS

Tests are executed if the following env vars are defined:

  • FREEZER_TEST_SSH_KEY

  • FREEZER_TEST_SSH_USERNAME

  • FREEZER_TEST_SSH_HOST

  • FREEZER_TEST_CONTAINER (directory on the remote machine used to store backups)

test_backup_ssh()
test_backup_ssh_incremental()
test_backup_ssh_incremental_with_lvm()
class freezer.tests.integration.test_agent.TestBackupUsingSwiftStorage(methodName='runTest')

Bases: freezer.tests.integration.common.TestFS

Tests are executed if the following env vars are defined:

  • FREEZER_TEST_OS_TENANT_NAME

  • FREEZER_TEST_OS_USERNAME

  • FREEZER_TEST_OS_REGION_NAME

  • FREEZER_TEST_OS_PASSWORD

  • FREEZER_TEST_OS_AUTH_URL

test_backup_os_simple()
test_backup_os_simple_with_bandwidth_limit()
test_backup_os_simple_with_bzip2()
test_backup_swift_mysql()
class freezer.tests.integration.test_agent.TestSimpleExecution(methodName='runTest')

Bases: freezer.tests.integration.common.TestFS

test_freezerc_executes()
test_freezerc_fails_with_wrong_params()