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_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
-
-
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)
-
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