This repository was archived by the owner on Jul 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
backmeup python tests
fschoeppl edited this page Jul 2, 2012
·
1 revision
- Configure the [RESTConfig] (backmeup-python-api).
- Configure the [TestConfig] (https://github.com/backmeup/backmeup-prototype/blob/master/python-tests/TestConfig.py):
METADATA_TEST_SPECIFIC_META = "META_QUOTA" # Which metadata property should be tested?
METADATA_TEST_EXPECTED_FREQUENCY = "daily" # Which value do you expect?
SOURCE_PLUGIN_ID = "org.backmeup.dropbox" # Which source plug-in should be used?
KEY_SOURCE_TOKEN = "token" # Dropbox stores the token-value with the key "token"
KEY_SOURCE_SECRET = "secret" # Dropbox stores a user's secret-value with the key "secret"
SOURCE_SECRET = "UNDEFINED" # Place a valid user's secret token here
SOURCE_TOKEN = "UNDEFINED" # Place a valid user's token here
SINK_PLUGIN_ID = "org.backmeup.dropbox" # just like above
KEY_SINK_TOKEN = "token"
KEY_SINK_SECRET = "secret"
SINK_SECRET = "UNDEFINED" #adjust user's secret
SINK_TOKEN = "UNDEFINED" #adjust user's token
Open a prompt, navigate to /python-tests and run:
run.cmd
# or the command itself:
python -m unittest -v UserTests ProfileTests DatasourcesTests DatasinkTests MetadataTests BackupJobTests ActionTests BackupSearchTests