plugin configuration file added
setting "NameDatabase" replaced by "SettingsDir" storing of local settings implemented (CryptoBoxSettings.write())
This commit is contained in:
parent
11c2873934
commit
491d16899f
15 changed files with 267 additions and 24 deletions
|
@ -33,6 +33,8 @@ class CryptoBoxPropsConfigTests(unittest.TestCase):
|
|||
"configFileOK" : "cbox-test_ok.conf",
|
||||
"configFileBroken" : "cbox-test_broken.conf",
|
||||
"nameDBFile" : "cryptobox_names.db",
|
||||
"pluginConf" : "cryptobox_plugins.conf",
|
||||
"userDB" : "cryptobox_users.db",
|
||||
"logFile" : "cryptobox.log",
|
||||
"tmpdir" : "cryptobox-mnt" }
|
||||
tmpdirname = ""
|
||||
|
@ -43,7 +45,7 @@ AllowedDevices = /dev/loop
|
|||
DefaultVolumePrefix = "Data "
|
||||
DefaultCipher = aes-cbc-essiv:sha256
|
||||
[Locations]
|
||||
NameDatabase = %s/cryptobox_names.db
|
||||
SettingsDir = %s
|
||||
MountParentDir = %s
|
||||
TemplateDir = ../templates
|
||||
LangDir = ../lang
|
||||
|
@ -105,7 +107,7 @@ CryptoBoxRootActions = CryptoBoxRootActions
|
|||
|
||||
def testBrokenConfigs(self):
|
||||
"""Check various broken configurations"""
|
||||
self.writeConfig("NameDatabase", "#out", filename=self.filenames["configFileBroken"])
|
||||
self.writeConfig("SettingsDir", "#out", filename=self.filenames["configFileBroken"])
|
||||
self.assertRaises(CBConfigError, self.CryptoBox.CryptoBoxProps,self.filenames["configFileBroken"])
|
||||
self.writeConfig("Level", "Level = ho", filename=self.filenames["configFileBroken"])
|
||||
self.assertRaises(CBConfigError, self.CryptoBox.CryptoBoxProps,self.filenames["configFileBroken"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue