848f5fe48f
Switch 'osc.conf.config' from dict to Options class with type checking
2023-09-11 21:14:45 +02:00
Tammo Oepkes
b9014ccd56
Fix api_host_options for custom CAs ( #1403 )
2023-09-11 21:06:34 +02:00
f9dc3122f9
Add more config options among integer options
2023-08-15 14:29:18 +02:00
a5816132c7
tests: Fix TestConf to load oscrc from fixtures
2023-08-09 13:04:17 +02:00
2a9edeec5b
conf: Change how api_host_options determine option types
...
The _integer_opts and _boolean_opts specify option types for both
global options as well as api_host_options
2023-02-21 14:42:30 +01:00
Dirk Müller
adb1a9b4ef
mark boolean and integer_opts as private
...
It is unused elsewhere, and only used for unit-testing
2022-12-01 10:05:32 +01:00
b306bf0b91
Convert defaults to their expected types
...
Fixes problems in reading conf values before the configuration
is fully initialized.
2022-08-22 15:08:49 +02:00
lethliel
36ec0c48d4
Remove passx encode/decode functions from conf.py
...
They are no longer needed with the new CredentialsManagers
2019-08-29 15:06:48 +02:00
Marcus Huewe
57d9b48dc0
- tests.suite: added TestConf testcase to suite
2014-01-08 15:43:57 +01:00
Michal Vyskocil
111fd87715
passx encode/decode functions
...
The string.encode('bz2') does not work in python3. Implement
passx_encode/passx_decode functions compatible with python 2.6, 2.7 and
3.3.
Add a simple unit test.
2014-01-08 15:43:57 +01:00