The freezer.tests.integration.test_agent Module

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

Bases: freezer.tests.integration.common.TestFS

test_backup_local_storage_use_lvm_snapshot_and_path_to_backup(*args, **kwargs)[source]
test_backup_preexisting_dir()[source]

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()[source]
  • 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()[source]
class freezer.tests.integration.test_agent.TestBackupSSH(methodName='runTest')[source]

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(*args, **kwargs)[source]
test_backup_ssh_incremental(*args, **kwargs)[source]
test_backup_ssh_incremental_with_lvm(*args, **kwargs)[source]
class freezer.tests.integration.test_agent.TestBackupUsingSwiftStorage(methodName='runTest')[source]

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(*args, **kwargs)[source]
test_backup_os_simple_with_bandwidth_limit(*args, **kwargs)[source]
test_backup_os_simple_with_bzip2(*args, **kwargs)[source]
test_backup_swift_mysql(*args, **kwargs)[source]
class freezer.tests.integration.test_agent.TestSimpleExecution(methodName='runTest')[source]

Bases: freezer.tests.integration.common.TestFS

test_freezerc_executes()[source]
test_freezerc_fails_with_wrong_params()[source]