Emmanuel Garette
6b6fa5e499
remove getapi in tests
2018-08-14 23:07:07 +02:00
Emmanuel Garette
50a2ab4186
can set valid value for an option with invalid consistency
2018-06-02 08:35:05 +02:00
Emmanuel Garette
54b57968bc
not Params object for callback, validator and calculated values for choiceoption
2018-04-15 21:13:16 +02:00
Emmanuel Garette
d5d826f967
adapt tests
2018-03-19 08:33:53 +01:00
Emmanuel Garette
5a1987f2e6
Add MasterSlaves object
2017-10-14 13:33:25 +02:00
Emmanuel Garette
3567e18256
several corrections about dependency
2017-09-17 15:55:32 +02:00
Emmanuel Garette
ddaadb0701
coverage
2017-07-21 18:03:34 +02:00
Emmanuel Garette
c8bc3093c7
python 3.5 support
2017-07-09 09:49:03 +02:00
Emmanuel Garette
7977efe246
check uniq value for a slave
2017-03-06 22:35:32 +01:00
Emmanuel Garette
df90e74819
mandatories masterslaves with consistency and default value is acceptable
2016-12-07 17:28:31 +01:00
Emmanuel Garette
8e7b4101f1
coverage
2016-11-20 18:02:10 +01:00
Emmanuel Garette
0f4b1caca4
warnings only if needed
2016-11-20 14:32:06 +01:00
Emmanuel Garette
fc36f674eb
consistency "not_equal" works now with multi
2016-11-16 22:31:42 +01:00
Emmanuel Garette
24ec5a9112
don't display warning in mandatory_warnings
2016-10-14 21:31:39 +02:00
Emmanuel Garette
c31590c2ac
consistency is now check not_equal if one option has PropertiesOptionError
2016-10-12 21:58:37 +02:00
Emmanuel Garette
e6a949635f
some improvements
2016-10-10 21:41:22 +02:00
Emmanuel Garette
e8764f6173
remove some try/except + consistency not works with submulti
2016-01-03 13:23:15 +01:00
Emmanuel Garette
ab555966f7
use python-coverage to delete dead part of code
2015-11-24 10:58:19 +01:00
Emmanuel Garette
44cd618704
remove pep8 validation errors
2015-07-24 17:54:10 +02:00
Emmanuel Garette
10768a6067
refactor validation
2015-04-18 22:53:45 +02:00
Emmanuel Garette
c566ad1111
valid default/callback value in consistencies
2015-03-08 12:03:49 +01:00
Emmanuel Garette
bc65caa4dc
mandatory master/slave's consistency with default value as slave
2014-12-07 14:39:23 +01:00
Emmanuel Garette
4fde28a15e
in_network's consistency now verify that IP is not network or broadcast's IP + ip_netmask's consistency now verify that IP is not broadcast's IP
2014-12-01 23:16:00 +01:00
Emmanuel Garette
71e69cd0bf
if consistency with multiple option return if transitive
2014-12-01 23:02:55 +01:00
Emmanuel Garette
7646071efd
propertyerror are transitive in consistency, now it's possible to set non-transitive consistency
2014-12-01 22:58:53 +01:00
Emmanuel Garette
471af4fd75
cannot add unvalaible consistency for an option
2014-10-25 22:48:42 +02:00
Emmanuel Garette
5d8b5719a0
Merge branch 'master' into orm
...
Conflicts:
test/test_config_api.py
tiramisu/autolib.py
tiramisu/config.py
tiramisu/option.py
tiramisu/value.py
2014-04-13 10:30:42 +02:00
Emmanuel Garette
cd4d3527c7
split tiramisu/option.py and add MasterSlaves object
2014-04-12 17:55:13 +02:00
Emmanuel Garette
88b5af9810
Merge branch 'master' into better_warnings
2014-03-12 22:13:20 +01:00
Emmanuel Garette
ff802b46e5
consistencies can make a warning instead of raises
...
for that, you have to set something like:
a.impl_add_consistency('not_equal', b, warnings_only=True)
warning product now adapted message
2014-03-12 21:56:53 +01:00
Emmanuel Garette
5f46763696
add test for consistency with callback
2014-03-12 16:44:48 +01:00
Emmanuel Garette
d7b04ebed0
add consistency in_network for IPOption
...
This new consistency can validate that an IPv4 is a specified (network/netmask) network
2014-03-11 18:57:19 +01:00
Emmanuel Garette
21c8ed5d76
Merge branch 'master' into orm
...
Conflicts:
test/test_option_consistency.py
test/test_state.py
tiramisu/option.py
2014-02-06 22:24:50 +01:00
Emmanuel Garette
e7531e1fda
more tests
2014-02-06 22:17:20 +01:00
Emmanuel Garette
72f06bc29d
properties option in consistencies are now allowed
2014-02-06 19:19:48 +01:00
Emmanuel Garette
02a987b39d
sqlalchemy
2014-01-30 22:55:15 +01:00
Emmanuel Garette
64ca069a0b
Merge branch 'master' into orm
...
Conflicts:
test/test_config.py
tiramisu/autolib.py
tiramisu/option.py
tiramisu/value.py
2013-12-12 17:50:42 +01:00
Emmanuel Garette
c58de18b62
add more tests
2013-12-09 18:56:29 +01:00
Emmanuel Garette
374c56a9c8
first version with sqlalchemy option's storage
2013-11-23 23:34:17 +01:00
Emmanuel Garette
70f684e70c
tiramisu/option.py:
...
separate _consistencies (for Option) and _cache_consistencies (for OptionDescription)
_launch_consistency need index for multi's option
_cons_not_equal support multi options
tiramisu/value.py:
Multi._validate support consistency
2013-09-28 17:05:01 +02:00
Emmanuel Garette
482dfec7f2
consistancies can have more than one option
...
add _cons_broadcast
2013-09-27 23:27:08 +02:00
Emmanuel Garette
3b733d1b4f
support cache consistencies + no consistencies for a symlink + test
2013-09-03 22:41:18 +02:00
Emmanuel Garette
36ed6f874f
add some tests for values
...
cannot use __setitem__ to set value for an option
in append, len should not greater than master option
2013-08-25 18:06:07 +02:00
Emmanuel Garette
e4c129efc5
getowner need now an option
2013-08-24 22:32:54 +02:00
Emmanuel Garette
536eb27904
multi, None and validation
2013-05-10 22:34:07 +02:00
Emmanuel Garette
fa5d643aee
tiramisu/autolib.py: optimpl_ => impl_
...
tiramisu/option.py: consistency simplication and allow multi
tiramisu/option.py: don't touch cache if force_permissive or force_properties
tiramisu/values.py: set validate paramaters in Multi()
2013-05-10 15:10:06 +02:00
Emmanuel Garette
6de65859b4
* config herite from BaseInformation class
...
* _cfgimpl_ => _impl_
* optimpl_ => impl_
* properties/permissives are now set/frozenset
* validation raise ValueError if not valid, didn't return anything otherwise
* consistencies are now validate in setting and when deleting value
* ip/network with netmask consistency now works
* DomainnameOption now works
* if no validation, don't set cache for value
* symlinkoption: remove path (not used)
2013-05-08 18:14:42 +02:00
Emmanuel Garette
2c5bbb7bc0
Requires need option, not path
...
Valid requires
2013-04-26 14:40:44 +02:00
Emmanuel Garette
7cd44d6886
remove an unused callback in test
2013-04-23 11:41:16 +02:00
Emmanuel Garette
e883e5b89e
remove _setoption in SymLinkOption
...
objimpl_ => optimpl_
ConflictConfigError => ConflictError
add read_write/read_only/getowner in Config
2013-04-22 09:19:05 +02:00