test source has variable

This commit is contained in:
egarette@silique.fr 2023-01-07 21:39:14 +01:00
parent 9a9a25dcce
commit 540b108e8e
256 changed files with 2736 additions and 1834 deletions

View file

@ -26,7 +26,11 @@ services:
- text: /etc/squid/squid.conf - text: /etc/squid/squid.conf
``` ```
Dans ce cas, le nom du template est déduit du nom du fichier, ici cela sera "squid.conf". ## Le nom de template
Par défaut, le nom du template est déduit du nom du fichier.
Par xemple, si le fichier de destination est "/etc/squid/squid.conf", le template aura le nom "squid.conf".
Si le template a un nom différent (par exemple si plusieurs template se retrouve avec le même nom), il est possible de changer le nom du template avec l'attribut source : Si le template a un nom différent (par exemple si plusieurs template se retrouve avec le même nom), il est possible de changer le nom du template avec l'attribut source :
@ -42,6 +46,40 @@ file:
text: /etc/squid/squid.conf text: /etc/squid/squid.conf
``` ```
## Le nom de template dynamique
La source peut ếgalement être une variable :
```xml
<services>
<service name="squid">
<file source="source_var" source_type="variable">/etc/squid/squid.conf</file>
</service>
</services>
<variables>
<variable name="source_var">
<value>template-squid.conf</value>
</variable>
</variables>
```
En YAML :
```yml
services:
- service:
- name: squid
file:
- source: source_var
source_type: variable
text: /etc/squid/squid.conf
variables:
- variable:
- name: source_var
value:
- text: template-squid.conf
```
## Les noms de fichiers dynamique ## Les noms de fichiers dynamique
Il est possible également de définir le nom du fichier dans une variable : Il est possible également de définir le nom du fichier dans une variable :

View file

@ -70,6 +70,7 @@
<!ATTLIST file variable CDATA #IMPLIED> <!ATTLIST file variable CDATA #IMPLIED>
<!ATTLIST file variable_type (variable) "variable"> <!ATTLIST file variable_type (variable) "variable">
<!ATTLIST file source CDATA #IMPLIED> <!ATTLIST file source CDATA #IMPLIED>
<!ATTLIST file source_type (string|variable) "string">
<!ATTLIST file mode CDATA #IMPLIED> <!ATTLIST file mode CDATA #IMPLIED>
<!ATTLIST file owner CDATA #IMPLIED> <!ATTLIST file owner CDATA #IMPLIED>
<!ATTLIST file owner_type (unix_user|variable) "unix_user"> <!ATTLIST file owner_type (unix_user|variable) "unix_user">

View file

@ -82,6 +82,11 @@ mapping:
type: str type: str
mode: mode:
type: str type: str
source_type:
type: str
enum:
- "string"
- "variable"
source: source:
type: str type: str
variable_type: variable_type:

View file

@ -60,7 +60,7 @@ log = logging.getLogger(__name__)
log.addHandler(logging.NullHandler()) log.addHandler(logging.NullHandler())
INFORMATIONS = {'files': ['source', 'mode', 'engine', 'included'], INFORMATIONS = {'files': ['mode', 'engine', 'included'],
'overrides': ['name', 'source', 'engine'], 'overrides': ['name', 'source', 'engine'],
'service_names': ['doc', 'engine', 'type', 'target', 'undisable'], 'service_names': ['doc', 'engine', 'type', 'target', 'undisable'],
} }

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -1,8 +1,10 @@
{ {
"rougail.general.mode_conteneur_actif": "non", "rougail.general.mode_conteneur_actif": "non",
"services.test_service.files.file.name": "/etc/file", "services.test_service.files.file.name": "/etc/file",
"services.test_service.files.file.source": "file",
"services.test_service.files.file.activate": true, "services.test_service.files.file.activate": true,
"services.test_service.files.file2.name": "/etc/file2", "services.test_service.files.file2.name": "/etc/file2",
"services.test_service.files.file2.source": "file2",
"services.test_service.files.file2.activate": true, "services.test_service.files.file2.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -20,20 +20,20 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_12 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_14 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_7 = FilenameOption(name="name", doc="name", default="/etc/file") option_7 = FilenameOption(name="name", doc="name", default="/etc/file")
option_8 = StrOption(name="source", doc="source", default="file")
option_6 = BoolOption(name="activate", doc="activate", default=True) option_6 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_6]) optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_8, option_6])
optiondescription_5.impl_set_information('source', "file") option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_10 = FilenameOption(name="name", doc="name", default="/etc/file2") option_12 = StrOption(name="source", doc="source", default="file2")
option_9 = BoolOption(name="activate", doc="activate", default=True) option_10 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_8 = OptionDescription(name="file2", doc="file2", children=[option_10, option_9]) optiondescription_9 = OptionDescription(name="file2", doc="file2", children=[option_11, option_12, option_10])
optiondescription_8.impl_set_information('engine', "jinja") optiondescription_9.impl_set_information('engine', "jinja")
optiondescription_8.impl_set_information('source', "file2") optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_9])
optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_8])
option_3 = BoolOption(name="activate", doc="activate", default=True) option_3 = BoolOption(name="activate", doc="activate", default=True)
option_11 = BoolOption(name="manage", doc="manage", default=True) option_13 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_14 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_11]) optiondescription_16 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_13])
optiondescription_14.impl_set_information('type', "service") optiondescription_16.impl_set_information('type', "service")
optiondescription_13 = OptionDescription(name="services", doc="services", children=[optiondescription_14], properties=frozenset({"hidden"})) optiondescription_15 = OptionDescription(name="services", doc="services", children=[optiondescription_16], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_12, optiondescription_13]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_14, optiondescription_15])

View file

@ -20,40 +20,40 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_24 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/etc/file") option_9 = FilenameOption(name="name", doc="name", default="/etc/file")
option_10 = StrOption(name="source", doc="source", default="file")
option_8 = BoolOption(name="activate", doc="activate", default=True) option_8 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file") option_13 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_12 = FilenameOption(name="name", doc="name", default="/etc/file2") option_14 = StrOption(name="source", doc="source", default="file2")
option_11 = BoolOption(name="activate", doc="activate", default=True) option_12 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_10 = OptionDescription(name="file2", doc="file2", children=[option_12, option_11]) optiondescription_11 = OptionDescription(name="file2", doc="file2", children=[option_13, option_14, option_12])
optiondescription_10.impl_set_information('engine', "jinja") optiondescription_11.impl_set_information('engine', "jinja")
optiondescription_10.impl_set_information('source', "file2") optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_11])
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_10])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True) option_15 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_26 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_13]) optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_15])
optiondescription_26.impl_set_information('type', "service")
optiondescription_25 = OptionDescription(name="services", doc="services", children=[optiondescription_26], properties=frozenset({"hidden"}))
optiondescription_23 = OptionDescription(name="1", doc="1", children=[optiondescription_24, optiondescription_25])
option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_18 = FilenameOption(name="name", doc="name", default="/etc/file")
option_17 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_16 = OptionDescription(name="file", doc="file", children=[option_18, option_17])
optiondescription_16.impl_set_information('source', "file")
option_21 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_20 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_19 = OptionDescription(name="file2", doc="file2", children=[option_21, option_20])
optiondescription_19.impl_set_information('engine', "jinja")
optiondescription_19.impl_set_information('source', "file2")
optiondescription_15 = OptionDescription(name="files", doc="files", children=[optiondescription_16, optiondescription_19])
option_14 = BoolOption(name="activate", doc="activate", default=True)
option_22 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_15, option_14, option_22])
optiondescription_30.impl_set_information('type', "service") optiondescription_30.impl_set_information('type', "service")
optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"})) optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"}))
optiondescription_27 = OptionDescription(name="2", doc="2", children=[optiondescription_28, optiondescription_29]) optiondescription_27 = OptionDescription(name="1", doc="1", children=[optiondescription_28, optiondescription_29])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_23, optiondescription_27]) option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_32 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_20 = FilenameOption(name="name", doc="name", default="/etc/file")
option_21 = StrOption(name="source", doc="source", default="file")
option_19 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_18 = OptionDescription(name="file", doc="file", children=[option_20, option_21, option_19])
option_24 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_25 = StrOption(name="source", doc="source", default="file2")
option_23 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_22 = OptionDescription(name="file2", doc="file2", children=[option_24, option_25, option_23])
optiondescription_22.impl_set_information('engine', "jinja")
optiondescription_17 = OptionDescription(name="files", doc="files", children=[optiondescription_18, optiondescription_22])
option_16 = BoolOption(name="activate", doc="activate", default=True)
option_26 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_34 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_17, option_16, option_26])
optiondescription_34.impl_set_information('type', "service")
optiondescription_33 = OptionDescription(name="services", doc="services", children=[optiondescription_34], properties=frozenset({"hidden"}))
optiondescription_31 = OptionDescription(name="2", doc="2", children=[optiondescription_32, optiondescription_33])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_27, optiondescription_31])

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -23,6 +31,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file3" "value": "/etc/file3"
}, },
"services.test_service.files.file3.source": {
"owner": "default",
"value": "file3"
},
"services.test_service.files.file3.activate": { "services.test_service.files.file3.activate": {
"owner": "default", "owner": "default",
"value": false "value": false

View file

@ -1,10 +1,13 @@
{ {
"rougail.general.mode_conteneur_actif": "non", "rougail.general.mode_conteneur_actif": "non",
"services.test_service.files.file.name": "/etc/file", "services.test_service.files.file.name": "/etc/file",
"services.test_service.files.file.source": "file",
"services.test_service.files.file.activate": true, "services.test_service.files.file.activate": true,
"services.test_service.files.file2.name": "/etc/file2", "services.test_service.files.file2.name": "/etc/file2",
"services.test_service.files.file2.source": "file2",
"services.test_service.files.file2.activate": true, "services.test_service.files.file2.activate": true,
"services.test_service.files.file3.name": "/etc/file3", "services.test_service.files.file3.name": "/etc/file3",
"services.test_service.files.file3.source": "file3",
"services.test_service.files.file3.activate": false, "services.test_service.files.file3.activate": false,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -23,6 +31,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file3" "value": "/etc/file3"
}, },
"services.test_service.files.file3.source": {
"owner": "default",
"value": "file3"
},
"services.test_service.files.file3.activate": { "services.test_service.files.file3.activate": {
"owner": "default", "owner": "default",
"value": false "value": false

View file

@ -20,24 +20,24 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_15 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_18 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_7 = FilenameOption(name="name", doc="name", default="/etc/file") option_7 = FilenameOption(name="name", doc="name", default="/etc/file")
option_8 = StrOption(name="source", doc="source", default="file")
option_6 = BoolOption(name="activate", doc="activate", default=True) option_6 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_6]) optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_8, option_6])
optiondescription_5.impl_set_information('source', "file") option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_10 = FilenameOption(name="name", doc="name", default="/etc/file2") option_12 = StrOption(name="source", doc="source", default="file2")
option_9 = BoolOption(name="activate", doc="activate", default=True) option_10 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_8 = OptionDescription(name="file2", doc="file2", children=[option_10, option_9]) optiondescription_9 = OptionDescription(name="file2", doc="file2", children=[option_11, option_12, option_10])
optiondescription_8.impl_set_information('engine', "jinja") optiondescription_9.impl_set_information('engine', "jinja")
optiondescription_8.impl_set_information('source', "file2") option_15 = FilenameOption(name="name", doc="name", default="/etc/file3")
option_13 = FilenameOption(name="name", doc="name", default="/etc/file3") option_16 = StrOption(name="source", doc="source", default="file3")
option_12 = BoolOption(name="activate", doc="activate", default=False) option_14 = BoolOption(name="activate", doc="activate", default=False)
optiondescription_11 = OptionDescription(name="file3", doc="file3", children=[option_13, option_12]) optiondescription_13 = OptionDescription(name="file3", doc="file3", children=[option_15, option_16, option_14])
optiondescription_11.impl_set_information('source', "file3") optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_9, optiondescription_13])
optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_8, optiondescription_11])
option_3 = BoolOption(name="activate", doc="activate", default=True) option_3 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True) option_17 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_17 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_14]) optiondescription_20 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_17])
optiondescription_17.impl_set_information('type', "service") optiondescription_20.impl_set_information('type', "service")
optiondescription_16 = OptionDescription(name="services", doc="services", children=[optiondescription_17], properties=frozenset({"hidden"})) optiondescription_19 = OptionDescription(name="services", doc="services", children=[optiondescription_20], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_15, optiondescription_16]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_18, optiondescription_19])

View file

@ -20,48 +20,48 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_30 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_36 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/etc/file") option_9 = FilenameOption(name="name", doc="name", default="/etc/file")
option_10 = StrOption(name="source", doc="source", default="file")
option_8 = BoolOption(name="activate", doc="activate", default=True) option_8 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file") option_13 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_12 = FilenameOption(name="name", doc="name", default="/etc/file2") option_14 = StrOption(name="source", doc="source", default="file2")
option_11 = BoolOption(name="activate", doc="activate", default=True) option_12 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_10 = OptionDescription(name="file2", doc="file2", children=[option_12, option_11]) optiondescription_11 = OptionDescription(name="file2", doc="file2", children=[option_13, option_14, option_12])
optiondescription_10.impl_set_information('engine', "jinja") optiondescription_11.impl_set_information('engine', "jinja")
optiondescription_10.impl_set_information('source', "file2") option_17 = FilenameOption(name="name", doc="name", default="/etc/file3")
option_15 = FilenameOption(name="name", doc="name", default="/etc/file3") option_18 = StrOption(name="source", doc="source", default="file3")
option_14 = BoolOption(name="activate", doc="activate", default=False) option_16 = BoolOption(name="activate", doc="activate", default=False)
optiondescription_13 = OptionDescription(name="file3", doc="file3", children=[option_15, option_14]) optiondescription_15 = OptionDescription(name="file3", doc="file3", children=[option_17, option_18, option_16])
optiondescription_13.impl_set_information('source', "file3") optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_11, optiondescription_15])
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_10, optiondescription_13])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_16 = BoolOption(name="manage", doc="manage", default=True) option_19 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_32 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_16]) optiondescription_38 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_19])
optiondescription_32.impl_set_information('type', "service") optiondescription_38.impl_set_information('type', "service")
optiondescription_31 = OptionDescription(name="services", doc="services", children=[optiondescription_32], properties=frozenset({"hidden"})) optiondescription_37 = OptionDescription(name="services", doc="services", children=[optiondescription_38], properties=frozenset({"hidden"}))
optiondescription_29 = OptionDescription(name="1", doc="1", children=[optiondescription_30, optiondescription_31]) optiondescription_35 = OptionDescription(name="1", doc="1", children=[optiondescription_36, optiondescription_37])
option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"})) optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_34 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3]) optiondescription_40 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_21 = FilenameOption(name="name", doc="name", default="/etc/file") option_24 = FilenameOption(name="name", doc="name", default="/etc/file")
option_20 = BoolOption(name="activate", doc="activate", default=True) option_25 = StrOption(name="source", doc="source", default="file")
optiondescription_19 = OptionDescription(name="file", doc="file", children=[option_21, option_20])
optiondescription_19.impl_set_information('source', "file")
option_24 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_23 = BoolOption(name="activate", doc="activate", default=True) option_23 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_22 = OptionDescription(name="file2", doc="file2", children=[option_24, option_23]) optiondescription_22 = OptionDescription(name="file", doc="file", children=[option_24, option_25, option_23])
optiondescription_22.impl_set_information('engine', "jinja") option_28 = FilenameOption(name="name", doc="name", default="/etc/file2")
optiondescription_22.impl_set_information('source', "file2") option_29 = StrOption(name="source", doc="source", default="file2")
option_27 = FilenameOption(name="name", doc="name", default="/etc/file3") option_27 = BoolOption(name="activate", doc="activate", default=True)
option_26 = BoolOption(name="activate", doc="activate", default=False) optiondescription_26 = OptionDescription(name="file2", doc="file2", children=[option_28, option_29, option_27])
optiondescription_25 = OptionDescription(name="file3", doc="file3", children=[option_27, option_26]) optiondescription_26.impl_set_information('engine', "jinja")
optiondescription_25.impl_set_information('source', "file3") option_32 = FilenameOption(name="name", doc="name", default="/etc/file3")
optiondescription_18 = OptionDescription(name="files", doc="files", children=[optiondescription_19, optiondescription_22, optiondescription_25]) option_33 = StrOption(name="source", doc="source", default="file3")
option_17 = BoolOption(name="activate", doc="activate", default=True) option_31 = BoolOption(name="activate", doc="activate", default=False)
option_28 = BoolOption(name="manage", doc="manage", default=True) optiondescription_30 = OptionDescription(name="file3", doc="file3", children=[option_32, option_33, option_31])
optiondescription_36 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_18, option_17, option_28]) optiondescription_21 = OptionDescription(name="files", doc="files", children=[optiondescription_22, optiondescription_26, optiondescription_30])
optiondescription_36.impl_set_information('type', "service") option_20 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_35 = OptionDescription(name="services", doc="services", children=[optiondescription_36], properties=frozenset({"hidden"})) option_34 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_33 = OptionDescription(name="2", doc="2", children=[optiondescription_34, optiondescription_35]) optiondescription_42 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_21, option_20, option_34])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_29, optiondescription_33]) optiondescription_42.impl_set_information('type', "service")
optiondescription_41 = OptionDescription(name="services", doc="services", children=[optiondescription_42], properties=frozenset({"hidden"}))
optiondescription_39 = OptionDescription(name="2", doc="2", children=[optiondescription_40, optiondescription_41])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_35, optiondescription_39])

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -1,8 +1,10 @@
{ {
"rougail.general.mode_conteneur_actif": "non", "rougail.general.mode_conteneur_actif": "non",
"services.test_service.files.file.name": "/etc/file", "services.test_service.files.file.name": "/etc/file",
"services.test_service.files.file.source": "file",
"services.test_service.files.file.activate": true, "services.test_service.files.file.activate": true,
"services.test_service.files.file2.name": "/etc/file2", "services.test_service.files.file2.name": "/etc/file2",
"services.test_service.files.file2.source": "file2",
"services.test_service.files.file2.activate": true, "services.test_service.files.file2.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -20,20 +20,20 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_12 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_14 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_7 = FilenameOption(name="name", doc="name", default="/etc/file") option_7 = FilenameOption(name="name", doc="name", default="/etc/file")
option_8 = StrOption(name="source", doc="source", default="file")
option_6 = BoolOption(name="activate", doc="activate", default=True) option_6 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_6]) optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_8, option_6])
optiondescription_5.impl_set_information('source', "file") option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_10 = FilenameOption(name="name", doc="name", default="/etc/file2") option_12 = StrOption(name="source", doc="source", default="file2")
option_9 = BoolOption(name="activate", doc="activate", default=True) option_10 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_8 = OptionDescription(name="file2", doc="file2", children=[option_10, option_9]) optiondescription_9 = OptionDescription(name="file2", doc="file2", children=[option_11, option_12, option_10])
optiondescription_8.impl_set_information('engine', "jinja") optiondescription_9.impl_set_information('engine', "jinja")
optiondescription_8.impl_set_information('source', "file2") optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_9])
optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_8])
option_3 = BoolOption(name="activate", doc="activate", default=True) option_3 = BoolOption(name="activate", doc="activate", default=True)
option_11 = BoolOption(name="manage", doc="manage", default=True) option_13 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_14 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_11]) optiondescription_16 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_13])
optiondescription_14.impl_set_information('type', "service") optiondescription_16.impl_set_information('type', "service")
optiondescription_13 = OptionDescription(name="services", doc="services", children=[optiondescription_14], properties=frozenset({"hidden"})) optiondescription_15 = OptionDescription(name="services", doc="services", children=[optiondescription_16], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_12, optiondescription_13]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_14, optiondescription_15])

View file

@ -20,40 +20,40 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_24 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/etc/file") option_9 = FilenameOption(name="name", doc="name", default="/etc/file")
option_10 = StrOption(name="source", doc="source", default="file")
option_8 = BoolOption(name="activate", doc="activate", default=True) option_8 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file") option_13 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_12 = FilenameOption(name="name", doc="name", default="/etc/file2") option_14 = StrOption(name="source", doc="source", default="file2")
option_11 = BoolOption(name="activate", doc="activate", default=True) option_12 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_10 = OptionDescription(name="file2", doc="file2", children=[option_12, option_11]) optiondescription_11 = OptionDescription(name="file2", doc="file2", children=[option_13, option_14, option_12])
optiondescription_10.impl_set_information('engine', "jinja") optiondescription_11.impl_set_information('engine', "jinja")
optiondescription_10.impl_set_information('source', "file2") optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_11])
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_10])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True) option_15 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_26 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_13]) optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_15])
optiondescription_26.impl_set_information('type', "service")
optiondescription_25 = OptionDescription(name="services", doc="services", children=[optiondescription_26], properties=frozenset({"hidden"}))
optiondescription_23 = OptionDescription(name="1", doc="1", children=[optiondescription_24, optiondescription_25])
option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_18 = FilenameOption(name="name", doc="name", default="/etc/file")
option_17 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_16 = OptionDescription(name="file", doc="file", children=[option_18, option_17])
optiondescription_16.impl_set_information('source', "file")
option_21 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_20 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_19 = OptionDescription(name="file2", doc="file2", children=[option_21, option_20])
optiondescription_19.impl_set_information('engine', "jinja")
optiondescription_19.impl_set_information('source', "file2")
optiondescription_15 = OptionDescription(name="files", doc="files", children=[optiondescription_16, optiondescription_19])
option_14 = BoolOption(name="activate", doc="activate", default=True)
option_22 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_15, option_14, option_22])
optiondescription_30.impl_set_information('type', "service") optiondescription_30.impl_set_information('type', "service")
optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"})) optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"}))
optiondescription_27 = OptionDescription(name="2", doc="2", children=[optiondescription_28, optiondescription_29]) optiondescription_27 = OptionDescription(name="1", doc="1", children=[optiondescription_28, optiondescription_29])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_23, optiondescription_27]) option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_32 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_20 = FilenameOption(name="name", doc="name", default="/etc/file")
option_21 = StrOption(name="source", doc="source", default="file")
option_19 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_18 = OptionDescription(name="file", doc="file", children=[option_20, option_21, option_19])
option_24 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_25 = StrOption(name="source", doc="source", default="file2")
option_23 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_22 = OptionDescription(name="file2", doc="file2", children=[option_24, option_25, option_23])
optiondescription_22.impl_set_information('engine', "jinja")
optiondescription_17 = OptionDescription(name="files", doc="files", children=[optiondescription_18, optiondescription_22])
option_16 = BoolOption(name="activate", doc="activate", default=True)
option_26 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_34 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_17, option_16, option_26])
optiondescription_34.impl_set_information('type', "service")
optiondescription_33 = OptionDescription(name="services", doc="services", children=[optiondescription_34], properties=frozenset({"hidden"}))
optiondescription_31 = OptionDescription(name="2", doc="2", children=[optiondescription_32, optiondescription_33])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_27, optiondescription_31])

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -23,6 +31,10 @@
"owner": "default", "owner": "default",
"value": "/etc/dir/incfile" "value": "/etc/dir/incfile"
}, },
"services.test_service.files.incfile.source": {
"owner": "default",
"value": "incfile"
},
"services.test_service.files.incfile.activate": { "services.test_service.files.incfile.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -1,10 +1,13 @@
{ {
"rougail.general.mode_conteneur_actif": "non", "rougail.general.mode_conteneur_actif": "non",
"services.test_service.files.file.name": "/etc/file", "services.test_service.files.file.name": "/etc/file",
"services.test_service.files.file.source": "file",
"services.test_service.files.file.activate": true, "services.test_service.files.file.activate": true,
"services.test_service.files.file2.name": "/etc/file2", "services.test_service.files.file2.name": "/etc/file2",
"services.test_service.files.file2.source": "file2",
"services.test_service.files.file2.activate": true, "services.test_service.files.file2.activate": true,
"services.test_service.files.incfile.name": "/etc/dir/incfile", "services.test_service.files.incfile.name": "/etc/dir/incfile",
"services.test_service.files.incfile.source": "incfile",
"services.test_service.files.incfile.activate": true, "services.test_service.files.incfile.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -23,6 +31,10 @@
"owner": "default", "owner": "default",
"value": "/etc/dir/incfile" "value": "/etc/dir/incfile"
}, },
"services.test_service.files.incfile.source": {
"owner": "default",
"value": "incfile"
},
"services.test_service.files.incfile.activate": { "services.test_service.files.incfile.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -20,25 +20,25 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_15 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_18 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_7 = FilenameOption(name="name", doc="name", default="/etc/file") option_7 = FilenameOption(name="name", doc="name", default="/etc/file")
option_8 = StrOption(name="source", doc="source", default="file")
option_6 = BoolOption(name="activate", doc="activate", default=True) option_6 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_6]) optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_8, option_6])
optiondescription_5.impl_set_information('source', "file") option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_10 = FilenameOption(name="name", doc="name", default="/etc/file2") option_12 = StrOption(name="source", doc="source", default="file2")
option_9 = BoolOption(name="activate", doc="activate", default=True) option_10 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_8 = OptionDescription(name="file2", doc="file2", children=[option_10, option_9]) optiondescription_9 = OptionDescription(name="file2", doc="file2", children=[option_11, option_12, option_10])
optiondescription_8.impl_set_information('engine', "jinja") optiondescription_9.impl_set_information('engine', "jinja")
optiondescription_8.impl_set_information('source', "file2") option_15 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile")
option_13 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile") option_16 = StrOption(name="source", doc="source", default="incfile")
option_12 = BoolOption(name="activate", doc="activate", default=True) option_14 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_11 = OptionDescription(name="incfile", doc="incfile", children=[option_13, option_12]) optiondescription_13 = OptionDescription(name="incfile", doc="incfile", children=[option_15, option_16, option_14])
optiondescription_11.impl_set_information('included', "content") optiondescription_13.impl_set_information('included', "content")
optiondescription_11.impl_set_information('source', "incfile") optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_9, optiondescription_13])
optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_8, optiondescription_11])
option_3 = BoolOption(name="activate", doc="activate", default=True) option_3 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True) option_17 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_17 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_14]) optiondescription_20 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_17])
optiondescription_17.impl_set_information('type', "service") optiondescription_20.impl_set_information('type', "service")
optiondescription_16 = OptionDescription(name="services", doc="services", children=[optiondescription_17], properties=frozenset({"hidden"})) optiondescription_19 = OptionDescription(name="services", doc="services", children=[optiondescription_20], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_15, optiondescription_16]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_18, optiondescription_19])

View file

@ -20,50 +20,50 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_30 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_36 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/etc/file") option_9 = FilenameOption(name="name", doc="name", default="/etc/file")
option_10 = StrOption(name="source", doc="source", default="file")
option_8 = BoolOption(name="activate", doc="activate", default=True) option_8 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file") option_13 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_12 = FilenameOption(name="name", doc="name", default="/etc/file2") option_14 = StrOption(name="source", doc="source", default="file2")
option_11 = BoolOption(name="activate", doc="activate", default=True) option_12 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_10 = OptionDescription(name="file2", doc="file2", children=[option_12, option_11]) optiondescription_11 = OptionDescription(name="file2", doc="file2", children=[option_13, option_14, option_12])
optiondescription_10.impl_set_information('engine', "jinja") optiondescription_11.impl_set_information('engine', "jinja")
optiondescription_10.impl_set_information('source', "file2") option_17 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile")
option_15 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile") option_18 = StrOption(name="source", doc="source", default="incfile")
option_14 = BoolOption(name="activate", doc="activate", default=True) option_16 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_13 = OptionDescription(name="incfile", doc="incfile", children=[option_15, option_14]) optiondescription_15 = OptionDescription(name="incfile", doc="incfile", children=[option_17, option_18, option_16])
optiondescription_13.impl_set_information('included', "content") optiondescription_15.impl_set_information('included', "content")
optiondescription_13.impl_set_information('source', "incfile") optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_11, optiondescription_15])
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_10, optiondescription_13])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_16 = BoolOption(name="manage", doc="manage", default=True) option_19 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_32 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_16]) optiondescription_38 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_19])
optiondescription_32.impl_set_information('type', "service") optiondescription_38.impl_set_information('type', "service")
optiondescription_31 = OptionDescription(name="services", doc="services", children=[optiondescription_32], properties=frozenset({"hidden"})) optiondescription_37 = OptionDescription(name="services", doc="services", children=[optiondescription_38], properties=frozenset({"hidden"}))
optiondescription_29 = OptionDescription(name="1", doc="1", children=[optiondescription_30, optiondescription_31]) optiondescription_35 = OptionDescription(name="1", doc="1", children=[optiondescription_36, optiondescription_37])
option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"})) optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_34 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3]) optiondescription_40 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_21 = FilenameOption(name="name", doc="name", default="/etc/file") option_24 = FilenameOption(name="name", doc="name", default="/etc/file")
option_20 = BoolOption(name="activate", doc="activate", default=True) option_25 = StrOption(name="source", doc="source", default="file")
optiondescription_19 = OptionDescription(name="file", doc="file", children=[option_21, option_20])
optiondescription_19.impl_set_information('source', "file")
option_24 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_23 = BoolOption(name="activate", doc="activate", default=True) option_23 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_22 = OptionDescription(name="file2", doc="file2", children=[option_24, option_23]) optiondescription_22 = OptionDescription(name="file", doc="file", children=[option_24, option_25, option_23])
optiondescription_22.impl_set_information('engine', "jinja") option_28 = FilenameOption(name="name", doc="name", default="/etc/file2")
optiondescription_22.impl_set_information('source', "file2") option_29 = StrOption(name="source", doc="source", default="file2")
option_27 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile") option_27 = BoolOption(name="activate", doc="activate", default=True)
option_26 = BoolOption(name="activate", doc="activate", default=True) optiondescription_26 = OptionDescription(name="file2", doc="file2", children=[option_28, option_29, option_27])
optiondescription_25 = OptionDescription(name="incfile", doc="incfile", children=[option_27, option_26]) optiondescription_26.impl_set_information('engine', "jinja")
optiondescription_25.impl_set_information('included', "content") option_32 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile")
optiondescription_25.impl_set_information('source', "incfile") option_33 = StrOption(name="source", doc="source", default="incfile")
optiondescription_18 = OptionDescription(name="files", doc="files", children=[optiondescription_19, optiondescription_22, optiondescription_25]) option_31 = BoolOption(name="activate", doc="activate", default=True)
option_17 = BoolOption(name="activate", doc="activate", default=True) optiondescription_30 = OptionDescription(name="incfile", doc="incfile", children=[option_32, option_33, option_31])
option_28 = BoolOption(name="manage", doc="manage", default=True) optiondescription_30.impl_set_information('included', "content")
optiondescription_36 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_18, option_17, option_28]) optiondescription_21 = OptionDescription(name="files", doc="files", children=[optiondescription_22, optiondescription_26, optiondescription_30])
optiondescription_36.impl_set_information('type', "service") option_20 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_35 = OptionDescription(name="services", doc="services", children=[optiondescription_36], properties=frozenset({"hidden"})) option_34 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_33 = OptionDescription(name="2", doc="2", children=[optiondescription_34, optiondescription_35]) optiondescription_42 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_21, option_20, option_34])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_29, optiondescription_33]) optiondescription_42.impl_set_information('type', "service")
optiondescription_41 = OptionDescription(name="services", doc="services", children=[optiondescription_42], properties=frozenset({"hidden"}))
optiondescription_39 = OptionDescription(name="2", doc="2", children=[optiondescription_40, optiondescription_41])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_35, optiondescription_39])

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -23,6 +31,10 @@
"owner": "default", "owner": "default",
"value": "/etc/dir/incfile" "value": "/etc/dir/incfile"
}, },
"services.test_service.files.incfile.source": {
"owner": "default",
"value": "incfile"
},
"services.test_service.files.incfile.activate": { "services.test_service.files.incfile.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -1,10 +1,13 @@
{ {
"rougail.general.mode_conteneur_actif": "non", "rougail.general.mode_conteneur_actif": "non",
"services.test_service.files.file.name": "/etc/file", "services.test_service.files.file.name": "/etc/file",
"services.test_service.files.file.source": "file",
"services.test_service.files.file.activate": true, "services.test_service.files.file.activate": true,
"services.test_service.files.file2.name": "/etc/file2", "services.test_service.files.file2.name": "/etc/file2",
"services.test_service.files.file2.source": "file2",
"services.test_service.files.file2.activate": true, "services.test_service.files.file2.activate": true,
"services.test_service.files.incfile.name": "/etc/dir/incfile", "services.test_service.files.incfile.name": "/etc/dir/incfile",
"services.test_service.files.incfile.source": "incfile",
"services.test_service.files.incfile.activate": true, "services.test_service.files.incfile.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -23,6 +31,10 @@
"owner": "default", "owner": "default",
"value": "/etc/dir/incfile" "value": "/etc/dir/incfile"
}, },
"services.test_service.files.incfile.source": {
"owner": "default",
"value": "incfile"
},
"services.test_service.files.incfile.activate": { "services.test_service.files.incfile.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -20,25 +20,25 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_15 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_18 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_7 = FilenameOption(name="name", doc="name", default="/etc/file") option_7 = FilenameOption(name="name", doc="name", default="/etc/file")
option_8 = StrOption(name="source", doc="source", default="file")
option_6 = BoolOption(name="activate", doc="activate", default=True) option_6 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_6]) optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_8, option_6])
optiondescription_5.impl_set_information('source', "file") option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_10 = FilenameOption(name="name", doc="name", default="/etc/file2") option_12 = StrOption(name="source", doc="source", default="file2")
option_9 = BoolOption(name="activate", doc="activate", default=True) option_10 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_8 = OptionDescription(name="file2", doc="file2", children=[option_10, option_9]) optiondescription_9 = OptionDescription(name="file2", doc="file2", children=[option_11, option_12, option_10])
optiondescription_8.impl_set_information('engine', "jinja") optiondescription_9.impl_set_information('engine', "jinja")
optiondescription_8.impl_set_information('source', "file2") option_15 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile")
option_13 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile") option_16 = StrOption(name="source", doc="source", default="incfile")
option_12 = BoolOption(name="activate", doc="activate", default=True) option_14 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_11 = OptionDescription(name="incfile", doc="incfile", children=[option_13, option_12]) optiondescription_13 = OptionDescription(name="incfile", doc="incfile", children=[option_15, option_16, option_14])
optiondescription_11.impl_set_information('included', "name") optiondescription_13.impl_set_information('included', "name")
optiondescription_11.impl_set_information('source', "incfile") optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_9, optiondescription_13])
optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_8, optiondescription_11])
option_3 = BoolOption(name="activate", doc="activate", default=True) option_3 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True) option_17 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_17 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_14]) optiondescription_20 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_17])
optiondescription_17.impl_set_information('type', "service") optiondescription_20.impl_set_information('type', "service")
optiondescription_16 = OptionDescription(name="services", doc="services", children=[optiondescription_17], properties=frozenset({"hidden"})) optiondescription_19 = OptionDescription(name="services", doc="services", children=[optiondescription_20], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_15, optiondescription_16]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_18, optiondescription_19])

View file

@ -20,50 +20,50 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_30 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_36 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/etc/file") option_9 = FilenameOption(name="name", doc="name", default="/etc/file")
option_10 = StrOption(name="source", doc="source", default="file")
option_8 = BoolOption(name="activate", doc="activate", default=True) option_8 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file") option_13 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_12 = FilenameOption(name="name", doc="name", default="/etc/file2") option_14 = StrOption(name="source", doc="source", default="file2")
option_11 = BoolOption(name="activate", doc="activate", default=True) option_12 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_10 = OptionDescription(name="file2", doc="file2", children=[option_12, option_11]) optiondescription_11 = OptionDescription(name="file2", doc="file2", children=[option_13, option_14, option_12])
optiondescription_10.impl_set_information('engine', "jinja") optiondescription_11.impl_set_information('engine', "jinja")
optiondescription_10.impl_set_information('source', "file2") option_17 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile")
option_15 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile") option_18 = StrOption(name="source", doc="source", default="incfile")
option_14 = BoolOption(name="activate", doc="activate", default=True) option_16 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_13 = OptionDescription(name="incfile", doc="incfile", children=[option_15, option_14]) optiondescription_15 = OptionDescription(name="incfile", doc="incfile", children=[option_17, option_18, option_16])
optiondescription_13.impl_set_information('included', "name") optiondescription_15.impl_set_information('included', "name")
optiondescription_13.impl_set_information('source', "incfile") optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_11, optiondescription_15])
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_10, optiondescription_13])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_16 = BoolOption(name="manage", doc="manage", default=True) option_19 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_32 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_16]) optiondescription_38 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_19])
optiondescription_32.impl_set_information('type', "service") optiondescription_38.impl_set_information('type', "service")
optiondescription_31 = OptionDescription(name="services", doc="services", children=[optiondescription_32], properties=frozenset({"hidden"})) optiondescription_37 = OptionDescription(name="services", doc="services", children=[optiondescription_38], properties=frozenset({"hidden"}))
optiondescription_29 = OptionDescription(name="1", doc="1", children=[optiondescription_30, optiondescription_31]) optiondescription_35 = OptionDescription(name="1", doc="1", children=[optiondescription_36, optiondescription_37])
option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"})) optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_34 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3]) optiondescription_40 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_21 = FilenameOption(name="name", doc="name", default="/etc/file") option_24 = FilenameOption(name="name", doc="name", default="/etc/file")
option_20 = BoolOption(name="activate", doc="activate", default=True) option_25 = StrOption(name="source", doc="source", default="file")
optiondescription_19 = OptionDescription(name="file", doc="file", children=[option_21, option_20])
optiondescription_19.impl_set_information('source', "file")
option_24 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_23 = BoolOption(name="activate", doc="activate", default=True) option_23 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_22 = OptionDescription(name="file2", doc="file2", children=[option_24, option_23]) optiondescription_22 = OptionDescription(name="file", doc="file", children=[option_24, option_25, option_23])
optiondescription_22.impl_set_information('engine', "jinja") option_28 = FilenameOption(name="name", doc="name", default="/etc/file2")
optiondescription_22.impl_set_information('source', "file2") option_29 = StrOption(name="source", doc="source", default="file2")
option_27 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile") option_27 = BoolOption(name="activate", doc="activate", default=True)
option_26 = BoolOption(name="activate", doc="activate", default=True) optiondescription_26 = OptionDescription(name="file2", doc="file2", children=[option_28, option_29, option_27])
optiondescription_25 = OptionDescription(name="incfile", doc="incfile", children=[option_27, option_26]) optiondescription_26.impl_set_information('engine', "jinja")
optiondescription_25.impl_set_information('included', "name") option_32 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile")
optiondescription_25.impl_set_information('source', "incfile") option_33 = StrOption(name="source", doc="source", default="incfile")
optiondescription_18 = OptionDescription(name="files", doc="files", children=[optiondescription_19, optiondescription_22, optiondescription_25]) option_31 = BoolOption(name="activate", doc="activate", default=True)
option_17 = BoolOption(name="activate", doc="activate", default=True) optiondescription_30 = OptionDescription(name="incfile", doc="incfile", children=[option_32, option_33, option_31])
option_28 = BoolOption(name="manage", doc="manage", default=True) optiondescription_30.impl_set_information('included', "name")
optiondescription_36 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_18, option_17, option_28]) optiondescription_21 = OptionDescription(name="files", doc="files", children=[optiondescription_22, optiondescription_26, optiondescription_30])
optiondescription_36.impl_set_information('type', "service") option_20 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_35 = OptionDescription(name="services", doc="services", children=[optiondescription_36], properties=frozenset({"hidden"})) option_34 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_33 = OptionDescription(name="2", doc="2", children=[optiondescription_34, optiondescription_35]) optiondescription_42 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_21, option_20, option_34])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_29, optiondescription_33]) optiondescription_42.impl_set_information('type', "service")
optiondescription_41 = OptionDescription(name="services", doc="services", children=[optiondescription_42], properties=frozenset({"hidden"}))
optiondescription_39 = OptionDescription(name="2", doc="2", children=[optiondescription_40, optiondescription_41])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_35, optiondescription_39])

View file

@ -15,6 +15,10 @@
"owner": "default", "owner": "default",
"value": "nobody" "value": "nobody"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -31,6 +35,10 @@
"owner": "default", "owner": "default",
"value": "nobody" "value": "nobody"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -3,10 +3,12 @@
"services.test_service.files.file.group": "nobody", "services.test_service.files.file.group": "nobody",
"services.test_service.files.file.name": "/etc/file", "services.test_service.files.file.name": "/etc/file",
"services.test_service.files.file.owner": "nobody", "services.test_service.files.file.owner": "nobody",
"services.test_service.files.file.source": "file",
"services.test_service.files.file.activate": true, "services.test_service.files.file.activate": true,
"services.test_service.files.file2.group": "nobody", "services.test_service.files.file2.group": "nobody",
"services.test_service.files.file2.name": "/etc/file2", "services.test_service.files.file2.name": "/etc/file2",
"services.test_service.files.file2.owner": "nobody", "services.test_service.files.file2.owner": "nobody",
"services.test_service.files.file2.source": "file2",
"services.test_service.files.file2.activate": true, "services.test_service.files.file2.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -15,6 +15,10 @@
"owner": "default", "owner": "default",
"value": "nobody" "value": "nobody"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -31,6 +35,10 @@
"owner": "default", "owner": "default",
"value": "nobody" "value": "nobody"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -20,24 +20,24 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_16 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_18 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_7 = UsernameOption(name="group", doc="group", default="nobody") option_7 = UsernameOption(name="group", doc="group", default="nobody")
option_8 = FilenameOption(name="name", doc="name", default="/etc/file") option_8 = FilenameOption(name="name", doc="name", default="/etc/file")
option_9 = UsernameOption(name="owner", doc="owner", default="nobody") option_9 = UsernameOption(name="owner", doc="owner", default="nobody")
option_10 = StrOption(name="source", doc="source", default="file")
option_6 = BoolOption(name="activate", doc="activate", default=True) option_6 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_8, option_9, option_6]) optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_8, option_9, option_10, option_6])
optiondescription_5.impl_set_information('source', "file") option_13 = UsernameOption(name="group", doc="group", default="nobody")
option_12 = UsernameOption(name="group", doc="group", default="nobody") option_14 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_13 = FilenameOption(name="name", doc="name", default="/etc/file2") option_15 = UsernameOption(name="owner", doc="owner", default="nobody")
option_14 = UsernameOption(name="owner", doc="owner", default="nobody") option_16 = StrOption(name="source", doc="source", default="file2")
option_11 = BoolOption(name="activate", doc="activate", default=True) option_12 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_10 = OptionDescription(name="file2", doc="file2", children=[option_12, option_13, option_14, option_11]) optiondescription_11 = OptionDescription(name="file2", doc="file2", children=[option_13, option_14, option_15, option_16, option_12])
optiondescription_10.impl_set_information('engine', "jinja") optiondescription_11.impl_set_information('engine', "jinja")
optiondescription_10.impl_set_information('source', "file2") optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_11])
optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_10])
option_3 = BoolOption(name="activate", doc="activate", default=True) option_3 = BoolOption(name="activate", doc="activate", default=True)
option_15 = BoolOption(name="manage", doc="manage", default=True) option_17 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_18 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_15]) optiondescription_20 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_17])
optiondescription_18.impl_set_information('type', "service") optiondescription_20.impl_set_information('type', "service")
optiondescription_17 = OptionDescription(name="services", doc="services", children=[optiondescription_18], properties=frozenset({"hidden"})) optiondescription_19 = OptionDescription(name="services", doc="services", children=[optiondescription_20], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_16, optiondescription_17]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_18, optiondescription_19])

View file

@ -20,48 +20,48 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_32 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_36 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = UsernameOption(name="group", doc="group", default="nobody") option_9 = UsernameOption(name="group", doc="group", default="nobody")
option_10 = FilenameOption(name="name", doc="name", default="/etc/file") option_10 = FilenameOption(name="name", doc="name", default="/etc/file")
option_11 = UsernameOption(name="owner", doc="owner", default="nobody") option_11 = UsernameOption(name="owner", doc="owner", default="nobody")
option_12 = StrOption(name="source", doc="source", default="file")
option_8 = BoolOption(name="activate", doc="activate", default=True) option_8 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_10, option_11, option_8]) optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_10, option_11, option_12, option_8])
optiondescription_7.impl_set_information('source', "file") option_15 = UsernameOption(name="group", doc="group", default="nobody")
option_14 = UsernameOption(name="group", doc="group", default="nobody") option_16 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_15 = FilenameOption(name="name", doc="name", default="/etc/file2") option_17 = UsernameOption(name="owner", doc="owner", default="nobody")
option_16 = UsernameOption(name="owner", doc="owner", default="nobody") option_18 = StrOption(name="source", doc="source", default="file2")
option_13 = BoolOption(name="activate", doc="activate", default=True) option_14 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_12 = OptionDescription(name="file2", doc="file2", children=[option_14, option_15, option_16, option_13]) optiondescription_13 = OptionDescription(name="file2", doc="file2", children=[option_15, option_16, option_17, option_18, option_14])
optiondescription_12.impl_set_information('engine', "jinja") optiondescription_13.impl_set_information('engine', "jinja")
optiondescription_12.impl_set_information('source', "file2") optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_13])
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_12])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_17 = BoolOption(name="manage", doc="manage", default=True) option_19 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_34 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_17]) optiondescription_38 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_19])
optiondescription_34.impl_set_information('type', "service")
optiondescription_33 = OptionDescription(name="services", doc="services", children=[optiondescription_34], properties=frozenset({"hidden"}))
optiondescription_31 = OptionDescription(name="1", doc="1", children=[optiondescription_32, optiondescription_33])
option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_36 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_22 = UsernameOption(name="group", doc="group", default="nobody")
option_23 = FilenameOption(name="name", doc="name", default="/etc/file")
option_24 = UsernameOption(name="owner", doc="owner", default="nobody")
option_21 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_20 = OptionDescription(name="file", doc="file", children=[option_22, option_23, option_24, option_21])
optiondescription_20.impl_set_information('source', "file")
option_27 = UsernameOption(name="group", doc="group", default="nobody")
option_28 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_29 = UsernameOption(name="owner", doc="owner", default="nobody")
option_26 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_25 = OptionDescription(name="file2", doc="file2", children=[option_27, option_28, option_29, option_26])
optiondescription_25.impl_set_information('engine', "jinja")
optiondescription_25.impl_set_information('source', "file2")
optiondescription_19 = OptionDescription(name="files", doc="files", children=[optiondescription_20, optiondescription_25])
option_18 = BoolOption(name="activate", doc="activate", default=True)
option_30 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_38 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_19, option_18, option_30])
optiondescription_38.impl_set_information('type', "service") optiondescription_38.impl_set_information('type', "service")
optiondescription_37 = OptionDescription(name="services", doc="services", children=[optiondescription_38], properties=frozenset({"hidden"})) optiondescription_37 = OptionDescription(name="services", doc="services", children=[optiondescription_38], properties=frozenset({"hidden"}))
optiondescription_35 = OptionDescription(name="2", doc="2", children=[optiondescription_36, optiondescription_37]) optiondescription_35 = OptionDescription(name="1", doc="1", children=[optiondescription_36, optiondescription_37])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_31, optiondescription_35]) option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_40 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_24 = UsernameOption(name="group", doc="group", default="nobody")
option_25 = FilenameOption(name="name", doc="name", default="/etc/file")
option_26 = UsernameOption(name="owner", doc="owner", default="nobody")
option_27 = StrOption(name="source", doc="source", default="file")
option_23 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_22 = OptionDescription(name="file", doc="file", children=[option_24, option_25, option_26, option_27, option_23])
option_30 = UsernameOption(name="group", doc="group", default="nobody")
option_31 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_32 = UsernameOption(name="owner", doc="owner", default="nobody")
option_33 = StrOption(name="source", doc="source", default="file2")
option_29 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_28 = OptionDescription(name="file2", doc="file2", children=[option_30, option_31, option_32, option_33, option_29])
optiondescription_28.impl_set_information('engine', "jinja")
optiondescription_21 = OptionDescription(name="files", doc="files", children=[optiondescription_22, optiondescription_28])
option_20 = BoolOption(name="activate", doc="activate", default=True)
option_34 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_42 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_21, option_20, option_34])
optiondescription_42.impl_set_information('type', "service")
optiondescription_41 = OptionDescription(name="services", doc="services", children=[optiondescription_42], properties=frozenset({"hidden"}))
optiondescription_39 = OptionDescription(name="2", doc="2", children=[optiondescription_40, optiondescription_41])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_35, optiondescription_39])

View file

@ -23,6 +23,10 @@
"owner": "default", "owner": "default",
"value": "nobody" "value": "nobody"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -39,6 +43,10 @@
"owner": "default", "owner": "default",
"value": "nobody" "value": "nobody"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -5,10 +5,12 @@
"services.test_service.files.file.group": "nobody", "services.test_service.files.file.group": "nobody",
"services.test_service.files.file.name": "/etc/file", "services.test_service.files.file.name": "/etc/file",
"services.test_service.files.file.owner": "nobody", "services.test_service.files.file.owner": "nobody",
"services.test_service.files.file.source": "file",
"services.test_service.files.file.activate": true, "services.test_service.files.file.activate": true,
"services.test_service.files.file2.group": "nobody", "services.test_service.files.file2.group": "nobody",
"services.test_service.files.file2.name": "/etc/file2", "services.test_service.files.file2.name": "/etc/file2",
"services.test_service.files.file2.owner": "nobody", "services.test_service.files.file2.owner": "nobody",
"services.test_service.files.file2.source": "file2",
"services.test_service.files.file2.activate": true, "services.test_service.files.file2.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -23,6 +23,10 @@
"owner": "default", "owner": "default",
"value": "nobody" "value": "nobody"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -39,6 +43,10 @@
"owner": "default", "owner": "default",
"value": "nobody" "value": "nobody"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -22,24 +22,24 @@ option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="no
option_3 = UsernameOption(name="owner", doc="owner", default="nobody", properties=frozenset({"mandatory", "normal"})) option_3 = UsernameOption(name="owner", doc="owner", default="nobody", properties=frozenset({"mandatory", "normal"}))
option_4 = UsernameOption(name="group", doc="group", default="nobody", properties=frozenset({"mandatory", "normal"})) option_4 = UsernameOption(name="group", doc="group", default="nobody", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_18 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_20 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = SymLinkOption(name="group", opt=option_4) option_9 = SymLinkOption(name="group", opt=option_4)
option_10 = FilenameOption(name="name", doc="name", default="/etc/file") option_10 = FilenameOption(name="name", doc="name", default="/etc/file")
option_11 = SymLinkOption(name="owner", opt=option_3) option_11 = SymLinkOption(name="owner", opt=option_3)
option_12 = StrOption(name="source", doc="source", default="file")
option_8 = BoolOption(name="activate", doc="activate", default=True) option_8 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_10, option_11, option_8]) optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_10, option_11, option_12, option_8])
optiondescription_7.impl_set_information('source', "file") option_15 = SymLinkOption(name="group", opt=option_4)
option_14 = SymLinkOption(name="group", opt=option_4) option_16 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_15 = FilenameOption(name="name", doc="name", default="/etc/file2") option_17 = SymLinkOption(name="owner", opt=option_3)
option_16 = SymLinkOption(name="owner", opt=option_3) option_18 = StrOption(name="source", doc="source", default="file2")
option_13 = BoolOption(name="activate", doc="activate", default=True) option_14 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_12 = OptionDescription(name="file2", doc="file2", children=[option_14, option_15, option_16, option_13]) optiondescription_13 = OptionDescription(name="file2", doc="file2", children=[option_15, option_16, option_17, option_18, option_14])
optiondescription_12.impl_set_information('engine', "jinja") optiondescription_13.impl_set_information('engine', "jinja")
optiondescription_12.impl_set_information('source', "file2") optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_13])
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_12])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_17 = BoolOption(name="manage", doc="manage", default=True) option_19 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_20 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_17]) optiondescription_22 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_19])
optiondescription_20.impl_set_information('type', "service") optiondescription_22.impl_set_information('type', "service")
optiondescription_19 = OptionDescription(name="services", doc="services", children=[optiondescription_20], properties=frozenset({"hidden"})) optiondescription_21 = OptionDescription(name="services", doc="services", children=[optiondescription_22], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_18, optiondescription_19]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_20, optiondescription_21])

View file

@ -22,50 +22,50 @@ option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="no
option_3 = UsernameOption(name="owner", doc="owner", default="nobody", properties=frozenset({"mandatory", "normal"})) option_3 = UsernameOption(name="owner", doc="owner", default="nobody", properties=frozenset({"mandatory", "normal"}))
option_4 = UsernameOption(name="group", doc="group", default="nobody", properties=frozenset({"mandatory", "normal"})) option_4 = UsernameOption(name="group", doc="group", default="nobody", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_36 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_40 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_13 = SymLinkOption(name="group", opt=option_4) option_13 = SymLinkOption(name="group", opt=option_4)
option_14 = FilenameOption(name="name", doc="name", default="/etc/file") option_14 = FilenameOption(name="name", doc="name", default="/etc/file")
option_15 = SymLinkOption(name="owner", opt=option_3) option_15 = SymLinkOption(name="owner", opt=option_3)
option_16 = StrOption(name="source", doc="source", default="file")
option_12 = BoolOption(name="activate", doc="activate", default=True) option_12 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_11 = OptionDescription(name="file", doc="file", children=[option_13, option_14, option_15, option_12]) optiondescription_11 = OptionDescription(name="file", doc="file", children=[option_13, option_14, option_15, option_16, option_12])
optiondescription_11.impl_set_information('source', "file") option_19 = SymLinkOption(name="group", opt=option_4)
option_18 = SymLinkOption(name="group", opt=option_4) option_20 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_19 = FilenameOption(name="name", doc="name", default="/etc/file2") option_21 = SymLinkOption(name="owner", opt=option_3)
option_20 = SymLinkOption(name="owner", opt=option_3) option_22 = StrOption(name="source", doc="source", default="file2")
option_17 = BoolOption(name="activate", doc="activate", default=True) option_18 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_16 = OptionDescription(name="file2", doc="file2", children=[option_18, option_19, option_20, option_17]) optiondescription_17 = OptionDescription(name="file2", doc="file2", children=[option_19, option_20, option_21, option_22, option_18])
optiondescription_16.impl_set_information('engine', "jinja") optiondescription_17.impl_set_information('engine', "jinja")
optiondescription_16.impl_set_information('source', "file2") optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11, optiondescription_17])
optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11, optiondescription_16])
option_9 = BoolOption(name="activate", doc="activate", default=True) option_9 = BoolOption(name="activate", doc="activate", default=True)
option_21 = BoolOption(name="manage", doc="manage", default=True) option_23 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_38 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_21]) optiondescription_42 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_23])
optiondescription_38.impl_set_information('type', "service") optiondescription_42.impl_set_information('type', "service")
optiondescription_37 = OptionDescription(name="services", doc="services", children=[optiondescription_38], properties=frozenset({"hidden"})) optiondescription_41 = OptionDescription(name="services", doc="services", children=[optiondescription_42], properties=frozenset({"hidden"}))
optiondescription_35 = OptionDescription(name="1", doc="1", children=[optiondescription_36, optiondescription_37]) optiondescription_39 = OptionDescription(name="1", doc="1", children=[optiondescription_40, optiondescription_41])
option_6 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_6 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
option_7 = UsernameOption(name="owner", doc="owner", default="nobody", properties=frozenset({"mandatory", "normal"})) option_7 = UsernameOption(name="owner", doc="owner", default="nobody", properties=frozenset({"mandatory", "normal"}))
option_8 = UsernameOption(name="group", doc="group", default="nobody", properties=frozenset({"mandatory", "normal"})) option_8 = UsernameOption(name="group", doc="group", default="nobody", properties=frozenset({"mandatory", "normal"}))
optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"})) optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"}))
optiondescription_40 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5]) optiondescription_44 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5])
option_26 = SymLinkOption(name="group", opt=option_8) option_28 = SymLinkOption(name="group", opt=option_8)
option_27 = FilenameOption(name="name", doc="name", default="/etc/file") option_29 = FilenameOption(name="name", doc="name", default="/etc/file")
option_28 = SymLinkOption(name="owner", opt=option_7) option_30 = SymLinkOption(name="owner", opt=option_7)
option_25 = BoolOption(name="activate", doc="activate", default=True) option_31 = StrOption(name="source", doc="source", default="file")
optiondescription_24 = OptionDescription(name="file", doc="file", children=[option_26, option_27, option_28, option_25]) option_27 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_24.impl_set_information('source', "file") optiondescription_26 = OptionDescription(name="file", doc="file", children=[option_28, option_29, option_30, option_31, option_27])
option_31 = SymLinkOption(name="group", opt=option_8) option_34 = SymLinkOption(name="group", opt=option_8)
option_32 = FilenameOption(name="name", doc="name", default="/etc/file2") option_35 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_33 = SymLinkOption(name="owner", opt=option_7) option_36 = SymLinkOption(name="owner", opt=option_7)
option_30 = BoolOption(name="activate", doc="activate", default=True) option_37 = StrOption(name="source", doc="source", default="file2")
optiondescription_29 = OptionDescription(name="file2", doc="file2", children=[option_31, option_32, option_33, option_30]) option_33 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_29.impl_set_information('engine', "jinja") optiondescription_32 = OptionDescription(name="file2", doc="file2", children=[option_34, option_35, option_36, option_37, option_33])
optiondescription_29.impl_set_information('source', "file2") optiondescription_32.impl_set_information('engine', "jinja")
optiondescription_23 = OptionDescription(name="files", doc="files", children=[optiondescription_24, optiondescription_29]) optiondescription_25 = OptionDescription(name="files", doc="files", children=[optiondescription_26, optiondescription_32])
option_22 = BoolOption(name="activate", doc="activate", default=True) option_24 = BoolOption(name="activate", doc="activate", default=True)
option_34 = BoolOption(name="manage", doc="manage", default=True) option_38 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_42 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_23, option_22, option_34]) optiondescription_46 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_25, option_24, option_38])
optiondescription_42.impl_set_information('type', "service") optiondescription_46.impl_set_information('type', "service")
optiondescription_41 = OptionDescription(name="services", doc="services", children=[optiondescription_42], properties=frozenset({"hidden"})) optiondescription_45 = OptionDescription(name="services", doc="services", children=[optiondescription_46], properties=frozenset({"hidden"}))
optiondescription_39 = OptionDescription(name="2", doc="2", children=[optiondescription_40, optiondescription_41]) optiondescription_43 = OptionDescription(name="2", doc="2", children=[optiondescription_44, optiondescription_45])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_35, optiondescription_39]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_39, optiondescription_43])

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -1,8 +1,10 @@
{ {
"rougail.general.mode_conteneur_actif": "non", "rougail.general.mode_conteneur_actif": "non",
"services.test_service.files.file.name": "/etc/file", "services.test_service.files.file.name": "/etc/file",
"services.test_service.files.file.source": "file",
"services.test_service.files.file.activate": true, "services.test_service.files.file.activate": true,
"services.test_service.files.file2.name": "/etc/file2", "services.test_service.files.file2.name": "/etc/file2",
"services.test_service.files.file2.source": "file2",
"services.test_service.files.file2.activate": true, "services.test_service.files.file2.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -20,20 +20,20 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_12 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_14 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_7 = FilenameOption(name="name", doc="name", default="/etc/file") option_7 = FilenameOption(name="name", doc="name", default="/etc/file")
option_8 = StrOption(name="source", doc="source", default="file")
option_6 = BoolOption(name="activate", doc="activate", default=True) option_6 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_6]) optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_8, option_6])
optiondescription_5.impl_set_information('source', "file") option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_10 = FilenameOption(name="name", doc="name", default="/etc/file2") option_12 = StrOption(name="source", doc="source", default="file2")
option_9 = BoolOption(name="activate", doc="activate", default=True) option_10 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_8 = OptionDescription(name="file2", doc="file2", children=[option_10, option_9]) optiondescription_9 = OptionDescription(name="file2", doc="file2", children=[option_11, option_12, option_10])
optiondescription_8.impl_set_information('engine', "jinja") optiondescription_9.impl_set_information('engine', "jinja")
optiondescription_8.impl_set_information('source', "file2") optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_9])
optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_8])
option_3 = BoolOption(name="activate", doc="activate", default=True) option_3 = BoolOption(name="activate", doc="activate", default=True)
option_11 = BoolOption(name="manage", doc="manage", default=True) option_13 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_14 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_11]) optiondescription_16 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_13])
optiondescription_14.impl_set_information('type', "service") optiondescription_16.impl_set_information('type', "service")
optiondescription_13 = OptionDescription(name="services", doc="services", children=[optiondescription_14], properties=frozenset({"hidden"})) optiondescription_15 = OptionDescription(name="services", doc="services", children=[optiondescription_16], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_12, optiondescription_13]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_14, optiondescription_15])

View file

@ -20,40 +20,40 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_24 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/etc/file") option_9 = FilenameOption(name="name", doc="name", default="/etc/file")
option_10 = StrOption(name="source", doc="source", default="file")
option_8 = BoolOption(name="activate", doc="activate", default=True) option_8 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file") option_13 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_12 = FilenameOption(name="name", doc="name", default="/etc/file2") option_14 = StrOption(name="source", doc="source", default="file2")
option_11 = BoolOption(name="activate", doc="activate", default=True) option_12 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_10 = OptionDescription(name="file2", doc="file2", children=[option_12, option_11]) optiondescription_11 = OptionDescription(name="file2", doc="file2", children=[option_13, option_14, option_12])
optiondescription_10.impl_set_information('engine', "jinja") optiondescription_11.impl_set_information('engine', "jinja")
optiondescription_10.impl_set_information('source', "file2") optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_11])
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_10])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True) option_15 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_26 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_13]) optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_15])
optiondescription_26.impl_set_information('type', "service")
optiondescription_25 = OptionDescription(name="services", doc="services", children=[optiondescription_26], properties=frozenset({"hidden"}))
optiondescription_23 = OptionDescription(name="1", doc="1", children=[optiondescription_24, optiondescription_25])
option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_18 = FilenameOption(name="name", doc="name", default="/etc/file")
option_17 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_16 = OptionDescription(name="file", doc="file", children=[option_18, option_17])
optiondescription_16.impl_set_information('source', "file")
option_21 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_20 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_19 = OptionDescription(name="file2", doc="file2", children=[option_21, option_20])
optiondescription_19.impl_set_information('engine', "jinja")
optiondescription_19.impl_set_information('source', "file2")
optiondescription_15 = OptionDescription(name="files", doc="files", children=[optiondescription_16, optiondescription_19])
option_14 = BoolOption(name="activate", doc="activate", default=True)
option_22 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_15, option_14, option_22])
optiondescription_30.impl_set_information('type', "service") optiondescription_30.impl_set_information('type', "service")
optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"})) optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"}))
optiondescription_27 = OptionDescription(name="2", doc="2", children=[optiondescription_28, optiondescription_29]) optiondescription_27 = OptionDescription(name="1", doc="1", children=[optiondescription_28, optiondescription_29])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_23, optiondescription_27]) option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_32 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_20 = FilenameOption(name="name", doc="name", default="/etc/file")
option_21 = StrOption(name="source", doc="source", default="file")
option_19 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_18 = OptionDescription(name="file", doc="file", children=[option_20, option_21, option_19])
option_24 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_25 = StrOption(name="source", doc="source", default="file2")
option_23 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_22 = OptionDescription(name="file2", doc="file2", children=[option_24, option_25, option_23])
optiondescription_22.impl_set_information('engine', "jinja")
optiondescription_17 = OptionDescription(name="files", doc="files", children=[optiondescription_18, optiondescription_22])
option_16 = BoolOption(name="activate", doc="activate", default=True)
option_26 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_34 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_17, option_16, option_26])
optiondescription_34.impl_set_information('type', "service")
optiondescription_33 = OptionDescription(name="services", doc="services", children=[optiondescription_34], properties=frozenset({"hidden"}))
optiondescription_31 = OptionDescription(name="2", doc="2", children=[optiondescription_32, optiondescription_33])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_27, optiondescription_31])

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -1,8 +1,10 @@
{ {
"rougail.general.mode_conteneur_actif": "non", "rougail.general.mode_conteneur_actif": "non",
"services.test_service.files.file.name": "/etc/file", "services.test_service.files.file.name": "/etc/file",
"services.test_service.files.file.source": "file",
"services.test_service.files.file.activate": true, "services.test_service.files.file.activate": true,
"services.test_service.files.file2.name": "/etc/file2", "services.test_service.files.file2.name": "/etc/file2",
"services.test_service.files.file2.source": "file2",
"services.test_service.files.file2.activate": true, "services.test_service.files.file2.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file" "value": "/etc/file"
}, },
"services.test_service.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.file.activate": { "services.test_service.files.file.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/file2" "value": "/etc/file2"
}, },
"services.test_service.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test_service.files.file2.activate": { "services.test_service.files.file2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -20,20 +20,20 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_12 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_14 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_7 = FilenameOption(name="name", doc="name", default="/etc/file") option_7 = FilenameOption(name="name", doc="name", default="/etc/file")
option_8 = StrOption(name="source", doc="source", default="file")
option_6 = BoolOption(name="activate", doc="activate", default=True) option_6 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_6]) optiondescription_5 = OptionDescription(name="file", doc="file", children=[option_7, option_8, option_6])
optiondescription_5.impl_set_information('source', "file") option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_10 = FilenameOption(name="name", doc="name", default="/etc/file2") option_12 = StrOption(name="source", doc="source", default="file2")
option_9 = BoolOption(name="activate", doc="activate", default=True) option_10 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_8 = OptionDescription(name="file2", doc="file2", children=[option_10, option_9]) optiondescription_9 = OptionDescription(name="file2", doc="file2", children=[option_11, option_12, option_10])
optiondescription_8.impl_set_information('engine', "jinja") optiondescription_9.impl_set_information('engine', "jinja")
optiondescription_8.impl_set_information('source', "file2") optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_9])
optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_8])
option_3 = BoolOption(name="activate", doc="activate", default=True) option_3 = BoolOption(name="activate", doc="activate", default=True)
option_11 = BoolOption(name="manage", doc="manage", default=True) option_13 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_14 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_11]) optiondescription_16 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_13])
optiondescription_14.impl_set_information('type', "service") optiondescription_16.impl_set_information('type', "service")
optiondescription_13 = OptionDescription(name="services", doc="services", children=[optiondescription_14], properties=frozenset({"hidden"})) optiondescription_15 = OptionDescription(name="services", doc="services", children=[optiondescription_16], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_12, optiondescription_13]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_14, optiondescription_15])

View file

@ -20,40 +20,40 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_24 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/etc/file") option_9 = FilenameOption(name="name", doc="name", default="/etc/file")
option_10 = StrOption(name="source", doc="source", default="file")
option_8 = BoolOption(name="activate", doc="activate", default=True) option_8 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file", doc="file", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file") option_13 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_12 = FilenameOption(name="name", doc="name", default="/etc/file2") option_14 = StrOption(name="source", doc="source", default="file2")
option_11 = BoolOption(name="activate", doc="activate", default=True) option_12 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_10 = OptionDescription(name="file2", doc="file2", children=[option_12, option_11]) optiondescription_11 = OptionDescription(name="file2", doc="file2", children=[option_13, option_14, option_12])
optiondescription_10.impl_set_information('engine', "jinja") optiondescription_11.impl_set_information('engine', "jinja")
optiondescription_10.impl_set_information('source', "file2") optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_11])
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_10])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True) option_15 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_26 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_13]) optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_15])
optiondescription_26.impl_set_information('type', "service")
optiondescription_25 = OptionDescription(name="services", doc="services", children=[optiondescription_26], properties=frozenset({"hidden"}))
optiondescription_23 = OptionDescription(name="1", doc="1", children=[optiondescription_24, optiondescription_25])
option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_18 = FilenameOption(name="name", doc="name", default="/etc/file")
option_17 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_16 = OptionDescription(name="file", doc="file", children=[option_18, option_17])
optiondescription_16.impl_set_information('source', "file")
option_21 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_20 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_19 = OptionDescription(name="file2", doc="file2", children=[option_21, option_20])
optiondescription_19.impl_set_information('engine', "jinja")
optiondescription_19.impl_set_information('source', "file2")
optiondescription_15 = OptionDescription(name="files", doc="files", children=[optiondescription_16, optiondescription_19])
option_14 = BoolOption(name="activate", doc="activate", default=True)
option_22 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_15, option_14, option_22])
optiondescription_30.impl_set_information('type', "service") optiondescription_30.impl_set_information('type', "service")
optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"})) optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"}))
optiondescription_27 = OptionDescription(name="2", doc="2", children=[optiondescription_28, optiondescription_29]) optiondescription_27 = OptionDescription(name="1", doc="1", children=[optiondescription_28, optiondescription_29])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_23, optiondescription_27]) option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_32 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_20 = FilenameOption(name="name", doc="name", default="/etc/file")
option_21 = StrOption(name="source", doc="source", default="file")
option_19 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_18 = OptionDescription(name="file", doc="file", children=[option_20, option_21, option_19])
option_24 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_25 = StrOption(name="source", doc="source", default="file2")
option_23 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_22 = OptionDescription(name="file2", doc="file2", children=[option_24, option_25, option_23])
optiondescription_22.impl_set_information('engine', "jinja")
optiondescription_17 = OptionDescription(name="files", doc="files", children=[optiondescription_18, optiondescription_22])
option_16 = BoolOption(name="activate", doc="activate", default=True)
option_26 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_34 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_17, option_16, option_26])
optiondescription_34.impl_set_information('type', "service")
optiondescription_33 = OptionDescription(name="services", doc="services", children=[optiondescription_34], properties=frozenset({"hidden"}))
optiondescription_31 = OptionDescription(name="2", doc="2", children=[optiondescription_32, optiondescription_33])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_27, optiondescription_31])

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel" "value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel"
}, },
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel.source": {
"owner": "default",
"value": "systemd-makefs@dev-disk-by\\x2dpartlabel"
},
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": { "services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2" "value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2"
}, },
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.source": {
"owner": "default",
"value": "systemd-makefs@dev-disk-by\\x2dpartlabel2"
},
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": { "services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -1,8 +1,10 @@
{ {
"rougail.general.mode_conteneur_actif": "non", "rougail.general.mode_conteneur_actif": "non",
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel.name": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel", "services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel.name": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel",
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel.source": "systemd-makefs@dev-disk-by\\x2dpartlabel",
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": true, "services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": true,
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.name": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2", "services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.name": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2",
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.source": "systemd-makefs@dev-disk-by\\x2dpartlabel2",
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": true, "services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel" "value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel"
}, },
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel.source": {
"owner": "default",
"value": "systemd-makefs@dev-disk-by\\x2dpartlabel"
},
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": { "services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": {
"owner": "default", "owner": "default",
"value": true "value": true
@ -15,6 +19,10 @@
"owner": "default", "owner": "default",
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2" "value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2"
}, },
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.source": {
"owner": "default",
"value": "systemd-makefs@dev-disk-by\\x2dpartlabel2"
},
"services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": { "services.test_service.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -20,20 +20,20 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_12 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_14 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_7 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel") option_7 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel")
option_8 = StrOption(name="source", doc="source", default="systemd-makefs@dev-disk-by\\x2dpartlabel")
option_6 = BoolOption(name="activate", doc="activate", default=True) option_6 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_5 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel", doc="systemd-makefs@dev-disk-by\\x2dpartlabel", children=[option_7, option_6]) optiondescription_5 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel", doc="systemd-makefs@dev-disk-by\\x2dpartlabel", children=[option_7, option_8, option_6])
optiondescription_5.impl_set_information('source', "systemd-makefs@dev-disk-by\\x2dpartlabel") option_11 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2")
option_10 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2") option_12 = StrOption(name="source", doc="source", default="systemd-makefs@dev-disk-by\\x2dpartlabel2")
option_9 = BoolOption(name="activate", doc="activate", default=True) option_10 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_8 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel2", doc="systemd-makefs@dev-disk-by\\x2dpartlabel2", children=[option_10, option_9]) optiondescription_9 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel2", doc="systemd-makefs@dev-disk-by\\x2dpartlabel2", children=[option_11, option_12, option_10])
optiondescription_8.impl_set_information('engine', "jinja") optiondescription_9.impl_set_information('engine', "jinja")
optiondescription_8.impl_set_information('source', "systemd-makefs@dev-disk-by\\x2dpartlabel2") optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_9])
optiondescription_4 = OptionDescription(name="files", doc="files", children=[optiondescription_5, optiondescription_8])
option_3 = BoolOption(name="activate", doc="activate", default=True) option_3 = BoolOption(name="activate", doc="activate", default=True)
option_11 = BoolOption(name="manage", doc="manage", default=True) option_13 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_14 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_11]) optiondescription_16 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_13])
optiondescription_14.impl_set_information('type', "service") optiondescription_16.impl_set_information('type', "service")
optiondescription_13 = OptionDescription(name="services", doc="services", children=[optiondescription_14], properties=frozenset({"hidden"})) optiondescription_15 = OptionDescription(name="services", doc="services", children=[optiondescription_16], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_12, optiondescription_13]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_14, optiondescription_15])

View file

@ -20,40 +20,40 @@ except:
from tiramisu import * from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"})) option_2 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"normal"}))
optiondescription_24 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel") option_9 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel")
option_10 = StrOption(name="source", doc="source", default="systemd-makefs@dev-disk-by\\x2dpartlabel")
option_8 = BoolOption(name="activate", doc="activate", default=True) option_8 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_7 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel", doc="systemd-makefs@dev-disk-by\\x2dpartlabel", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel", doc="systemd-makefs@dev-disk-by\\x2dpartlabel", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "systemd-makefs@dev-disk-by\\x2dpartlabel") option_13 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2")
option_12 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2") option_14 = StrOption(name="source", doc="source", default="systemd-makefs@dev-disk-by\\x2dpartlabel2")
option_11 = BoolOption(name="activate", doc="activate", default=True) option_12 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_10 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel2", doc="systemd-makefs@dev-disk-by\\x2dpartlabel2", children=[option_12, option_11]) optiondescription_11 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel2", doc="systemd-makefs@dev-disk-by\\x2dpartlabel2", children=[option_13, option_14, option_12])
optiondescription_10.impl_set_information('engine', "jinja") optiondescription_11.impl_set_information('engine', "jinja")
optiondescription_10.impl_set_information('source', "systemd-makefs@dev-disk-by\\x2dpartlabel2") optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_11])
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7, optiondescription_10])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True) option_15 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_26 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_13]) optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_15])
optiondescription_26.impl_set_information('type', "service")
optiondescription_25 = OptionDescription(name="services", doc="services", children=[optiondescription_26], properties=frozenset({"hidden"}))
optiondescription_23 = OptionDescription(name="1", doc="1", children=[optiondescription_24, optiondescription_25])
option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_18 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel")
option_17 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_16 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel", doc="systemd-makefs@dev-disk-by\\x2dpartlabel", children=[option_18, option_17])
optiondescription_16.impl_set_information('source', "systemd-makefs@dev-disk-by\\x2dpartlabel")
option_21 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2")
option_20 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_19 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel2", doc="systemd-makefs@dev-disk-by\\x2dpartlabel2", children=[option_21, option_20])
optiondescription_19.impl_set_information('engine', "jinja")
optiondescription_19.impl_set_information('source', "systemd-makefs@dev-disk-by\\x2dpartlabel2")
optiondescription_15 = OptionDescription(name="files", doc="files", children=[optiondescription_16, optiondescription_19])
option_14 = BoolOption(name="activate", doc="activate", default=True)
option_22 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_15, option_14, option_22])
optiondescription_30.impl_set_information('type', "service") optiondescription_30.impl_set_information('type', "service")
optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"})) optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"}))
optiondescription_27 = OptionDescription(name="2", doc="2", children=[optiondescription_28, optiondescription_29]) optiondescription_27 = OptionDescription(name="1", doc="1", children=[optiondescription_28, optiondescription_29])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_23, optiondescription_27]) option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"normal"}))
optiondescription_32 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
option_20 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel")
option_21 = StrOption(name="source", doc="source", default="systemd-makefs@dev-disk-by\\x2dpartlabel")
option_19 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_18 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel", doc="systemd-makefs@dev-disk-by\\x2dpartlabel", children=[option_20, option_21, option_19])
option_24 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2")
option_25 = StrOption(name="source", doc="source", default="systemd-makefs@dev-disk-by\\x2dpartlabel2")
option_23 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_22 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel2", doc="systemd-makefs@dev-disk-by\\x2dpartlabel2", children=[option_24, option_25, option_23])
optiondescription_22.impl_set_information('engine', "jinja")
optiondescription_17 = OptionDescription(name="files", doc="files", children=[optiondescription_18, optiondescription_22])
option_16 = BoolOption(name="activate", doc="activate", default=True)
option_26 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_34 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_17, option_16, option_26])
optiondescription_34.impl_set_information('type', "service")
optiondescription_33 = OptionDescription(name="services", doc="services", children=[optiondescription_34], properties=frozenset({"hidden"}))
optiondescription_31 = OptionDescription(name="2", doc="2", children=[optiondescription_32, optiondescription_33])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_27, optiondescription_31])

View file

@ -0,0 +1,30 @@
{
"rougail.general.source_var": {
"owner": "default",
"value": "file"
},
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test_service.files.source_var.name": {
"owner": "default",
"value": "/etc/file"
},
"services.test_service.files.source_var.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.source_var.activate": {
"owner": "default",
"value": true
},
"services.test_service.activate": {
"owner": "default",
"value": true
},
"services.test_service.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,9 @@
{
"rougail.general.source_var": "file",
"rougail.general.mode_conteneur_actif": "non",
"services.test_service.files.source_var.name": "/etc/file",
"services.test_service.files.source_var.source": "file",
"services.test_service.files.source_var.activate": true,
"services.test_service.activate": true,
"services.test_service.manage": true
}

View file

@ -0,0 +1,30 @@
{
"rougail.general.source_var": {
"owner": "default",
"value": "file"
},
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test_service.files.source_var.name": {
"owner": "default",
"value": "/etc/file"
},
"services.test_service.files.source_var.source": {
"owner": "default",
"value": "file"
},
"services.test_service.files.source_var.activate": {
"owner": "default",
"value": true
},
"services.test_service.activate": {
"owner": "default",
"value": true
},
"services.test_service.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,2 @@
non
non

View file

@ -0,0 +1 @@
C /etc/file 0644 root root - /usr/local/lib/etc/file

View file

@ -0,0 +1,35 @@
from importlib.machinery import SourceFileLoader as _SourceFileLoader
from importlib.util import spec_from_loader as _spec_from_loader, module_from_spec as _module_from_spec
class func:
pass
def _load_functions(path):
global _SourceFileLoader, _spec_from_loader, _module_from_spec, func
loader = _SourceFileLoader('func', path)
spec = _spec_from_loader(loader.name, loader)
func_ = _module_from_spec(spec)
loader.exec_module(func_)
for function in dir(func_):
if function.startswith('_'):
continue
setattr(func, function, getattr(func_, function))
_load_functions('tests/dictionaries/../eosfunc/test.py')
try:
from tiramisu3 import *
except:
from tiramisu import *
option_2 = StrOption(name="source_var", doc="Description", default="file", properties=frozenset({"mandatory", "normal"}))
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3], properties=frozenset({"normal"}))
optiondescription_11 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_8 = FilenameOption(name="name", doc="name", default="/etc/file")
option_9 = SymLinkOption(name="source", opt=option_2)
option_7 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_6 = OptionDescription(name="source_var", doc="source_var", children=[option_8, option_9, option_7])
optiondescription_5 = OptionDescription(name="files", doc="files", children=[optiondescription_6])
option_4 = BoolOption(name="activate", doc="activate", default=True)
option_10 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_13 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_5, option_4, option_10])
optiondescription_13.impl_set_information('type', "service")
optiondescription_12 = OptionDescription(name="services", doc="services", children=[optiondescription_13], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_11, optiondescription_12])

View file

@ -0,0 +1,51 @@
from importlib.machinery import SourceFileLoader as _SourceFileLoader
from importlib.util import spec_from_loader as _spec_from_loader, module_from_spec as _module_from_spec
class func:
pass
def _load_functions(path):
global _SourceFileLoader, _spec_from_loader, _module_from_spec, func
loader = _SourceFileLoader('func', path)
spec = _spec_from_loader(loader.name, loader)
func_ = _module_from_spec(spec)
loader.exec_module(func_)
for function in dir(func_):
if function.startswith('_'):
continue
setattr(func, function, getattr(func_, function))
_load_functions('tests/dictionaries/../eosfunc/test.py')
try:
from tiramisu3 import *
except:
from tiramisu import *
option_2 = StrOption(name="source_var", doc="Description", default="file", properties=frozenset({"mandatory", "normal"}))
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3], properties=frozenset({"normal"}))
optiondescription_22 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_11 = FilenameOption(name="name", doc="name", default="/etc/file")
option_12 = SymLinkOption(name="source", opt=option_2)
option_10 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_9 = OptionDescription(name="source_var", doc="source_var", children=[option_11, option_12, option_10])
optiondescription_8 = OptionDescription(name="files", doc="files", children=[optiondescription_9])
option_7 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_24 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_8, option_7, option_13])
optiondescription_24.impl_set_information('type', "service")
optiondescription_23 = OptionDescription(name="services", doc="services", children=[optiondescription_24], properties=frozenset({"hidden"}))
optiondescription_21 = OptionDescription(name="1", doc="1", children=[optiondescription_22, optiondescription_23])
option_5 = StrOption(name="source_var", doc="Description", default="file", properties=frozenset({"mandatory", "normal"}))
option_6 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
optiondescription_4 = OptionDescription(name="general", doc="general", children=[option_5, option_6], properties=frozenset({"normal"}))
optiondescription_26 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_4])
option_18 = FilenameOption(name="name", doc="name", default="/etc/file")
option_19 = SymLinkOption(name="source", opt=option_5)
option_17 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_16 = OptionDescription(name="source_var", doc="source_var", children=[option_18, option_19, option_17])
optiondescription_15 = OptionDescription(name="files", doc="files", children=[optiondescription_16])
option_14 = BoolOption(name="activate", doc="activate", default=True)
option_20 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_28 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_15, option_14, option_20])
optiondescription_28.impl_set_information('type', "service")
optiondescription_27 = OptionDescription(name="services", doc="services", children=[optiondescription_28], properties=frozenset({"hidden"}))
optiondescription_25 = OptionDescription(name="2", doc="2", children=[optiondescription_26, optiondescription_27])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_21, optiondescription_25])

View file

@ -0,0 +1,2 @@
%%mode_conteneur_actif
%%rougail.general.mode_conteneur_actif

View file

@ -0,0 +1,18 @@
<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<services>
<service name="test">
<file source="source_var" source_type="variable">/etc/file</file>
</service>
</services>
<variables>
<family name="general">
<variable name="source_var" type="string" description="Description">
<value>file</value>
</variable>
<variable name="mode_conteneur_actif" type="string" description="Description">
<value>non</value>
</variable>
</family>
</variables>
</rougail>

View file

@ -0,0 +1,23 @@
version: '0.10'
services:
- service:
- name: test
file:
- source: source_var
source_type: variable
text: /etc/file
variables:
- family:
- name: general
variables:
- variable:
- name: source_var
type: string
description: Description
value:
- text: file
- name: mode_conteneur_actif
type: string
description: Description
value:
- text: non

View file

@ -15,6 +15,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -3,6 +3,7 @@
"rougail.general.mode_conteneur_actif": "non", "rougail.general.mode_conteneur_actif": "non",
"rougail.general.mode_conteneur_actif2": "non", "rougail.general.mode_conteneur_actif2": "non",
"services.test_service.files.file1.name": "/tmp/file1", "services.test_service.files.file1.name": "/tmp/file1",
"services.test_service.files.file1.source": "file1",
"services.test_service.files.file1.activate": true, "services.test_service.files.file1.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -15,6 +15,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -22,15 +22,15 @@ option_2 = StrOption(name="condition", doc="No change", default="non", propertie
option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
option_4 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_11 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_12 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_10 = StrOption(name="source", doc="source", default="file1")
option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")}))) option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")})))
optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file1")
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7]) optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_10 = BoolOption(name="manage", doc="manage", default=True) option_11 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_13 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_10]) optiondescription_14 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_11])
optiondescription_13.impl_set_information('type', "service") optiondescription_14.impl_set_information('type', "service")
optiondescription_12 = OptionDescription(name="services", doc="services", children=[optiondescription_13], properties=frozenset({"hidden"})) optiondescription_13 = OptionDescription(name="services", doc="services", children=[optiondescription_14], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_11, optiondescription_12]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_12, optiondescription_13])

View file

@ -22,32 +22,32 @@ option_2 = StrOption(name="condition", doc="No change", default="non", propertie
option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
option_4 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_22 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_24 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_14 = StrOption(name="source", doc="source", default="file1")
option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")}))) option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")})))
optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_12]) optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_14, option_12])
optiondescription_11.impl_set_information('source', "file1")
optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11]) optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11])
option_9 = BoolOption(name="activate", doc="activate", default=True) option_9 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True) option_15 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_24 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_14]) optiondescription_26 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_15])
optiondescription_24.impl_set_information('type', "service") optiondescription_26.impl_set_information('type', "service")
optiondescription_23 = OptionDescription(name="services", doc="services", children=[optiondescription_24], properties=frozenset({"hidden"})) optiondescription_25 = OptionDescription(name="services", doc="services", children=[optiondescription_26], properties=frozenset({"hidden"}))
optiondescription_21 = OptionDescription(name="1", doc="1", children=[optiondescription_22, optiondescription_23]) optiondescription_23 = OptionDescription(name="1", doc="1", children=[optiondescription_24, optiondescription_25])
option_6 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "normal"})) option_6 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "normal"}))
option_7 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_7 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
option_8 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_8 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"})) optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"}))
optiondescription_26 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5]) optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5])
option_19 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_20 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_18 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")}))) option_21 = StrOption(name="source", doc="source", default="file1")
optiondescription_17 = OptionDescription(name="file1", doc="file1", children=[option_19, option_18]) option_19 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")})))
optiondescription_17.impl_set_information('source', "file1") optiondescription_18 = OptionDescription(name="file1", doc="file1", children=[option_20, option_21, option_19])
optiondescription_16 = OptionDescription(name="files", doc="files", children=[optiondescription_17]) optiondescription_17 = OptionDescription(name="files", doc="files", children=[optiondescription_18])
option_15 = BoolOption(name="activate", doc="activate", default=True) option_16 = BoolOption(name="activate", doc="activate", default=True)
option_20 = BoolOption(name="manage", doc="manage", default=True) option_22 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_28 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_16, option_15, option_20]) optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_17, option_16, option_22])
optiondescription_28.impl_set_information('type', "service") optiondescription_30.impl_set_information('type', "service")
optiondescription_27 = OptionDescription(name="services", doc="services", children=[optiondescription_28], properties=frozenset({"hidden"})) optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"}))
optiondescription_25 = OptionDescription(name="2", doc="2", children=[optiondescription_26, optiondescription_27]) optiondescription_27 = OptionDescription(name="2", doc="2", children=[optiondescription_28, optiondescription_29])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_21, optiondescription_25]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_23, optiondescription_27])

View file

@ -15,6 +15,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -3,6 +3,7 @@
"rougail.general.condition2": "no", "rougail.general.condition2": "no",
"rougail.general.test_variable": "no", "rougail.general.test_variable": "no",
"services.test_service.files.file1.name": "/tmp/file1", "services.test_service.files.file1.name": "/tmp/file1",
"services.test_service.files.file1.source": "file1",
"services.test_service.files.file1.activate": true, "services.test_service.files.file1.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -15,6 +15,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -22,15 +22,15 @@ option_2 = StrOption(name="condition", doc="No change", default="no", properties
option_3 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"})) option_3 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_11 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_12 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_10 = StrOption(name="source", doc="source", default="file1")
option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file1")
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7]) optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_10 = BoolOption(name="manage", doc="manage", default=True) option_11 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_13 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_10]) optiondescription_14 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_11])
optiondescription_13.impl_set_information('type', "service") optiondescription_14.impl_set_information('type', "service")
optiondescription_12 = OptionDescription(name="services", doc="services", children=[optiondescription_13], properties=frozenset({"hidden"})) optiondescription_13 = OptionDescription(name="services", doc="services", children=[optiondescription_14], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_11, optiondescription_12]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_12, optiondescription_13])

View file

@ -22,32 +22,32 @@ option_2 = StrOption(name="condition", doc="No change", default="no", properties
option_3 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"})) option_3 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_22 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_24 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_14 = StrOption(name="source", doc="source", default="file1")
option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_12]) optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_14, option_12])
optiondescription_11.impl_set_information('source', "file1")
optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11]) optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11])
option_9 = BoolOption(name="activate", doc="activate", default=True) option_9 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True) option_15 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_24 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_14]) optiondescription_26 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_15])
optiondescription_24.impl_set_information('type', "service") optiondescription_26.impl_set_information('type', "service")
optiondescription_23 = OptionDescription(name="services", doc="services", children=[optiondescription_24], properties=frozenset({"hidden"})) optiondescription_25 = OptionDescription(name="services", doc="services", children=[optiondescription_26], properties=frozenset({"hidden"}))
optiondescription_21 = OptionDescription(name="1", doc="1", children=[optiondescription_22, optiondescription_23]) optiondescription_23 = OptionDescription(name="1", doc="1", children=[optiondescription_24, optiondescription_25])
option_6 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "normal"})) option_6 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
option_7 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"})) option_7 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
option_8 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_8 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"})) optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"}))
optiondescription_26 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5]) optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5])
option_19 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_20 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_18 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_7, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_21 = StrOption(name="source", doc="source", default="file1")
optiondescription_17 = OptionDescription(name="file1", doc="file1", children=[option_19, option_18]) option_19 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_7, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_17.impl_set_information('source', "file1") optiondescription_18 = OptionDescription(name="file1", doc="file1", children=[option_20, option_21, option_19])
optiondescription_16 = OptionDescription(name="files", doc="files", children=[optiondescription_17]) optiondescription_17 = OptionDescription(name="files", doc="files", children=[optiondescription_18])
option_15 = BoolOption(name="activate", doc="activate", default=True) option_16 = BoolOption(name="activate", doc="activate", default=True)
option_20 = BoolOption(name="manage", doc="manage", default=True) option_22 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_28 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_16, option_15, option_20]) optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_17, option_16, option_22])
optiondescription_28.impl_set_information('type', "service") optiondescription_30.impl_set_information('type', "service")
optiondescription_27 = OptionDescription(name="services", doc="services", children=[optiondescription_28], properties=frozenset({"hidden"})) optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"}))
optiondescription_25 = OptionDescription(name="2", doc="2", children=[optiondescription_26, optiondescription_27]) optiondescription_27 = OptionDescription(name="2", doc="2", children=[optiondescription_28, optiondescription_29])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_21, optiondescription_25]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_23, optiondescription_27])

View file

@ -11,6 +11,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": false "value": false

View file

@ -2,6 +2,7 @@
"rougail.general.condition": "no", "rougail.general.condition": "no",
"rougail.general.condition2": "no", "rougail.general.condition2": "no",
"services.test_service.files.file1.name": "/tmp/file1", "services.test_service.files.file1.name": "/tmp/file1",
"services.test_service.files.file1.source": "file1",
"services.test_service.files.file1.activate": false, "services.test_service.files.file1.activate": false,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -11,6 +11,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": false "value": false

View file

@ -22,15 +22,15 @@ option_2 = StrOption(name="condition", doc="No change", default="no", properties
option_3 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"})) option_3 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_11 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_12 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_10 = StrOption(name="source", doc="source", default="file1")
option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file1")
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7]) optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_10 = BoolOption(name="manage", doc="manage", default=True) option_11 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_13 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_10]) optiondescription_14 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_11])
optiondescription_13.impl_set_information('type', "service") optiondescription_14.impl_set_information('type', "service")
optiondescription_12 = OptionDescription(name="services", doc="services", children=[optiondescription_13], properties=frozenset({"hidden"})) optiondescription_13 = OptionDescription(name="services", doc="services", children=[optiondescription_14], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_11, optiondescription_12]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_12, optiondescription_13])

View file

@ -22,32 +22,32 @@ option_2 = StrOption(name="condition", doc="No change", default="no", properties
option_3 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"})) option_3 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_22 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_24 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_14 = StrOption(name="source", doc="source", default="file1")
option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_12]) optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_14, option_12])
optiondescription_11.impl_set_information('source', "file1")
optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11]) optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11])
option_9 = BoolOption(name="activate", doc="activate", default=True) option_9 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True) option_15 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_24 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_14]) optiondescription_26 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_15])
optiondescription_24.impl_set_information('type', "service") optiondescription_26.impl_set_information('type', "service")
optiondescription_23 = OptionDescription(name="services", doc="services", children=[optiondescription_24], properties=frozenset({"hidden"})) optiondescription_25 = OptionDescription(name="services", doc="services", children=[optiondescription_26], properties=frozenset({"hidden"}))
optiondescription_21 = OptionDescription(name="1", doc="1", children=[optiondescription_22, optiondescription_23]) optiondescription_23 = OptionDescription(name="1", doc="1", children=[optiondescription_24, optiondescription_25])
option_6 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "normal"})) option_6 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
option_7 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"})) option_7 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
option_8 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_8 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"})) optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"}))
optiondescription_26 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5]) optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5])
option_19 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_20 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_18 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_7, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_21 = StrOption(name="source", doc="source", default="file1")
optiondescription_17 = OptionDescription(name="file1", doc="file1", children=[option_19, option_18]) option_19 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_7, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_17.impl_set_information('source', "file1") optiondescription_18 = OptionDescription(name="file1", doc="file1", children=[option_20, option_21, option_19])
optiondescription_16 = OptionDescription(name="files", doc="files", children=[optiondescription_17]) optiondescription_17 = OptionDescription(name="files", doc="files", children=[optiondescription_18])
option_15 = BoolOption(name="activate", doc="activate", default=True) option_16 = BoolOption(name="activate", doc="activate", default=True)
option_20 = BoolOption(name="manage", doc="manage", default=True) option_22 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_28 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_16, option_15, option_20]) optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_17, option_16, option_22])
optiondescription_28.impl_set_information('type', "service") optiondescription_30.impl_set_information('type', "service")
optiondescription_27 = OptionDescription(name="services", doc="services", children=[optiondescription_28], properties=frozenset({"hidden"})) optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"}))
optiondescription_25 = OptionDescription(name="2", doc="2", children=[optiondescription_26, optiondescription_27]) optiondescription_27 = OptionDescription(name="2", doc="2", children=[optiondescription_28, optiondescription_29])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_21, optiondescription_25]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_23, optiondescription_27])

View file

@ -11,6 +11,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -2,6 +2,7 @@
"rougail.general.condition": "yes", "rougail.general.condition": "yes",
"rougail.general.condition2": "no", "rougail.general.condition2": "no",
"services.test_service.files.file1.name": "/tmp/file1", "services.test_service.files.file1.name": "/tmp/file1",
"services.test_service.files.file1.source": "file1",
"services.test_service.files.file1.activate": true, "services.test_service.files.file1.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -11,6 +11,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -22,15 +22,15 @@ option_2 = StrOption(name="condition", doc="No change", default="yes", propertie
option_3 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"})) option_3 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_11 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_12 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_10 = StrOption(name="source", doc="source", default="file1")
option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file1")
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7]) optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_10 = BoolOption(name="manage", doc="manage", default=True) option_11 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_13 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_10]) optiondescription_14 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_11])
optiondescription_13.impl_set_information('type', "service") optiondescription_14.impl_set_information('type', "service")
optiondescription_12 = OptionDescription(name="services", doc="services", children=[optiondescription_13], properties=frozenset({"hidden"})) optiondescription_13 = OptionDescription(name="services", doc="services", children=[optiondescription_14], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_11, optiondescription_12]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_12, optiondescription_13])

View file

@ -22,32 +22,32 @@ option_2 = StrOption(name="condition", doc="No change", default="yes", propertie
option_3 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"})) option_3 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_22 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_24 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_14 = StrOption(name="source", doc="source", default="file1")
option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_12]) optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_14, option_12])
optiondescription_11.impl_set_information('source', "file1")
optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11]) optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11])
option_9 = BoolOption(name="activate", doc="activate", default=True) option_9 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True) option_15 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_24 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_14]) optiondescription_26 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_15])
optiondescription_24.impl_set_information('type', "service") optiondescription_26.impl_set_information('type', "service")
optiondescription_23 = OptionDescription(name="services", doc="services", children=[optiondescription_24], properties=frozenset({"hidden"})) optiondescription_25 = OptionDescription(name="services", doc="services", children=[optiondescription_26], properties=frozenset({"hidden"}))
optiondescription_21 = OptionDescription(name="1", doc="1", children=[optiondescription_22, optiondescription_23]) optiondescription_23 = OptionDescription(name="1", doc="1", children=[optiondescription_24, optiondescription_25])
option_6 = StrOption(name="condition", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"})) option_6 = StrOption(name="condition", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"}))
option_7 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"})) option_7 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
option_8 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_8 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"})) optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"}))
optiondescription_26 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5]) optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5])
option_19 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_20 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_18 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_7, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_21 = StrOption(name="source", doc="source", default="file1")
optiondescription_17 = OptionDescription(name="file1", doc="file1", children=[option_19, option_18]) option_19 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_7, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_17.impl_set_information('source', "file1") optiondescription_18 = OptionDescription(name="file1", doc="file1", children=[option_20, option_21, option_19])
optiondescription_16 = OptionDescription(name="files", doc="files", children=[optiondescription_17]) optiondescription_17 = OptionDescription(name="files", doc="files", children=[optiondescription_18])
option_15 = BoolOption(name="activate", doc="activate", default=True) option_16 = BoolOption(name="activate", doc="activate", default=True)
option_20 = BoolOption(name="manage", doc="manage", default=True) option_22 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_28 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_16, option_15, option_20]) optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_17, option_16, option_22])
optiondescription_28.impl_set_information('type', "service") optiondescription_30.impl_set_information('type', "service")
optiondescription_27 = OptionDescription(name="services", doc="services", children=[optiondescription_28], properties=frozenset({"hidden"})) optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"}))
optiondescription_25 = OptionDescription(name="2", doc="2", children=[optiondescription_26, optiondescription_27]) optiondescription_27 = OptionDescription(name="2", doc="2", children=[optiondescription_28, optiondescription_29])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_21, optiondescription_25]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_23, optiondescription_27])

View file

@ -11,6 +11,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": false "value": false

View file

@ -2,6 +2,7 @@
"rougail.general.condition": "yes", "rougail.general.condition": "yes",
"rougail.general.condition2": "yes", "rougail.general.condition2": "yes",
"services.test_service.files.file1.name": "/tmp/file1", "services.test_service.files.file1.name": "/tmp/file1",
"services.test_service.files.file1.source": "file1",
"services.test_service.files.file1.activate": false, "services.test_service.files.file1.activate": false,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -11,6 +11,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": false "value": false

View file

@ -22,15 +22,15 @@ option_2 = StrOption(name="condition", doc="No change", default="yes", propertie
option_3 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"})) option_3 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"}))
option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_11 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_12 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_10 = StrOption(name="source", doc="source", default="file1")
option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file1")
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7]) optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_10 = BoolOption(name="manage", doc="manage", default=True) option_11 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_13 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_10]) optiondescription_14 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_11])
optiondescription_13.impl_set_information('type', "service") optiondescription_14.impl_set_information('type', "service")
optiondescription_12 = OptionDescription(name="services", doc="services", children=[optiondescription_13], properties=frozenset({"hidden"})) optiondescription_13 = OptionDescription(name="services", doc="services", children=[optiondescription_14], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_11, optiondescription_12]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_12, optiondescription_13])

View file

@ -22,32 +22,32 @@ option_2 = StrOption(name="condition", doc="No change", default="yes", propertie
option_3 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"})) option_3 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"}))
option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_22 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_24 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_14 = StrOption(name="source", doc="source", default="file1")
option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_12]) optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_14, option_12])
optiondescription_11.impl_set_information('source', "file1")
optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11]) optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11])
option_9 = BoolOption(name="activate", doc="activate", default=True) option_9 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True) option_15 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_24 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_14]) optiondescription_26 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_15])
optiondescription_24.impl_set_information('type', "service") optiondescription_26.impl_set_information('type', "service")
optiondescription_23 = OptionDescription(name="services", doc="services", children=[optiondescription_24], properties=frozenset({"hidden"})) optiondescription_25 = OptionDescription(name="services", doc="services", children=[optiondescription_26], properties=frozenset({"hidden"}))
optiondescription_21 = OptionDescription(name="1", doc="1", children=[optiondescription_22, optiondescription_23]) optiondescription_23 = OptionDescription(name="1", doc="1", children=[optiondescription_24, optiondescription_25])
option_6 = StrOption(name="condition", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"})) option_6 = StrOption(name="condition", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"}))
option_7 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"})) option_7 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"}))
option_8 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_8 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"})) optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"}))
optiondescription_26 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5]) optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5])
option_19 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_20 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_18 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_7, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_21 = StrOption(name="source", doc="source", default="file1")
optiondescription_17 = OptionDescription(name="file1", doc="file1", children=[option_19, option_18]) option_19 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_7, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_17.impl_set_information('source', "file1") optiondescription_18 = OptionDescription(name="file1", doc="file1", children=[option_20, option_21, option_19])
optiondescription_16 = OptionDescription(name="files", doc="files", children=[optiondescription_17]) optiondescription_17 = OptionDescription(name="files", doc="files", children=[optiondescription_18])
option_15 = BoolOption(name="activate", doc="activate", default=True) option_16 = BoolOption(name="activate", doc="activate", default=True)
option_20 = BoolOption(name="manage", doc="manage", default=True) option_22 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_28 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_16, option_15, option_20]) optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_17, option_16, option_22])
optiondescription_28.impl_set_information('type', "service") optiondescription_30.impl_set_information('type', "service")
optiondescription_27 = OptionDescription(name="services", doc="services", children=[optiondescription_28], properties=frozenset({"hidden"})) optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"}))
optiondescription_25 = OptionDescription(name="2", doc="2", children=[optiondescription_26, optiondescription_27]) optiondescription_27 = OptionDescription(name="2", doc="2", children=[optiondescription_28, optiondescription_29])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_21, optiondescription_25]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_23, optiondescription_27])

View file

@ -11,6 +11,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": false "value": false

View file

@ -2,6 +2,7 @@
"rougail.general.condition": "no", "rougail.general.condition": "no",
"rougail.general.condition2": "yes", "rougail.general.condition2": "yes",
"services.test_service.files.file1.name": "/tmp/file1", "services.test_service.files.file1.name": "/tmp/file1",
"services.test_service.files.file1.source": "file1",
"services.test_service.files.file1.activate": false, "services.test_service.files.file1.activate": false,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -11,6 +11,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": false "value": false

View file

@ -22,15 +22,15 @@ option_2 = StrOption(name="condition", doc="No change", default="no", properties
option_3 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"})) option_3 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"}))
option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_11 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_12 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_10 = StrOption(name="source", doc="source", default="file1")
option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file1")
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7]) optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_10 = BoolOption(name="manage", doc="manage", default=True) option_11 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_13 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_10]) optiondescription_14 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_11])
optiondescription_13.impl_set_information('type', "service") optiondescription_14.impl_set_information('type', "service")
optiondescription_12 = OptionDescription(name="services", doc="services", children=[optiondescription_13], properties=frozenset({"hidden"})) optiondescription_13 = OptionDescription(name="services", doc="services", children=[optiondescription_14], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_11, optiondescription_12]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_12, optiondescription_13])

View file

@ -22,32 +22,32 @@ option_2 = StrOption(name="condition", doc="No change", default="no", properties
option_3 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"})) option_3 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"}))
option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_22 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_24 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_14 = StrOption(name="source", doc="source", default="file1")
option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_3, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_12]) optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_14, option_12])
optiondescription_11.impl_set_information('source', "file1")
optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11]) optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11])
option_9 = BoolOption(name="activate", doc="activate", default=True) option_9 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True) option_15 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_24 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_14]) optiondescription_26 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_15])
optiondescription_24.impl_set_information('type', "service") optiondescription_26.impl_set_information('type', "service")
optiondescription_23 = OptionDescription(name="services", doc="services", children=[optiondescription_24], properties=frozenset({"hidden"})) optiondescription_25 = OptionDescription(name="services", doc="services", children=[optiondescription_26], properties=frozenset({"hidden"}))
optiondescription_21 = OptionDescription(name="1", doc="1", children=[optiondescription_22, optiondescription_23]) optiondescription_23 = OptionDescription(name="1", doc="1", children=[optiondescription_24, optiondescription_25])
option_6 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "normal"})) option_6 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
option_7 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"})) option_7 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "normal"}))
option_8 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_8 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_7, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"})) optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"}))
optiondescription_26 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5]) optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5])
option_19 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_20 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_18 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_7, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])}))) option_21 = StrOption(name="source", doc="source", default="file1")
optiondescription_17 = OptionDescription(name="file1", doc="file1", children=[option_19, option_18]) option_19 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_7, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
optiondescription_17.impl_set_information('source', "file1") optiondescription_18 = OptionDescription(name="file1", doc="file1", children=[option_20, option_21, option_19])
optiondescription_16 = OptionDescription(name="files", doc="files", children=[optiondescription_17]) optiondescription_17 = OptionDescription(name="files", doc="files", children=[optiondescription_18])
option_15 = BoolOption(name="activate", doc="activate", default=True) option_16 = BoolOption(name="activate", doc="activate", default=True)
option_20 = BoolOption(name="manage", doc="manage", default=True) option_22 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_28 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_16, option_15, option_20]) optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_17, option_16, option_22])
optiondescription_28.impl_set_information('type', "service") optiondescription_30.impl_set_information('type', "service")
optiondescription_27 = OptionDescription(name="services", doc="services", children=[optiondescription_28], properties=frozenset({"hidden"})) optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"}))
optiondescription_25 = OptionDescription(name="2", doc="2", children=[optiondescription_26, optiondescription_27]) optiondescription_27 = OptionDescription(name="2", doc="2", children=[optiondescription_28, optiondescription_29])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_21, optiondescription_25]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_23, optiondescription_27])

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": false "value": false

View file

@ -1,6 +1,7 @@
{ {
"rougail.general.condition": "oui", "rougail.general.condition": "oui",
"services.test_service.files.file1.name": "/tmp/file1", "services.test_service.files.file1.name": "/tmp/file1",
"services.test_service.files.file1.source": "file1",
"services.test_service.files.file1.activate": false, "services.test_service.files.file1.activate": false,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -7,6 +7,10 @@
"owner": "default", "owner": "default",
"value": "/tmp/file1" "value": "/tmp/file1"
}, },
"services.test_service.files.file1.source": {
"owner": "default",
"value": "file1"
},
"services.test_service.files.file1.activate": { "services.test_service.files.file1.activate": {
"owner": "default", "owner": "default",
"value": false "value": false

View file

@ -22,15 +22,15 @@ option_2 = StrOption(name="condition", doc="No change", default="oui", propertie
option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
option_4 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_11 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_12 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_10 = StrOption(name="source", doc="source", default="file1")
option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")}))) option_8 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")})))
optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_8]) optiondescription_7 = OptionDescription(name="file1", doc="file1", children=[option_9, option_10, option_8])
optiondescription_7.impl_set_information('source', "file1")
optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7]) optiondescription_6 = OptionDescription(name="files", doc="files", children=[optiondescription_7])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_10 = BoolOption(name="manage", doc="manage", default=True) option_11 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_13 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_10]) optiondescription_14 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_11])
optiondescription_13.impl_set_information('type', "service") optiondescription_14.impl_set_information('type', "service")
optiondescription_12 = OptionDescription(name="services", doc="services", children=[optiondescription_13], properties=frozenset({"hidden"})) optiondescription_13 = OptionDescription(name="services", doc="services", children=[optiondescription_14], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_11, optiondescription_12]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_12, optiondescription_13])

View file

@ -22,32 +22,32 @@ option_2 = StrOption(name="condition", doc="No change", default="oui", propertie
option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
option_4 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_4 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_2, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"})) optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2, option_3, option_4], properties=frozenset({"normal"}))
optiondescription_22 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1]) optiondescription_24 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_14 = StrOption(name="source", doc="source", default="file1")
option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")}))) option_12 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_2, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")})))
optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_12]) optiondescription_11 = OptionDescription(name="file1", doc="file1", children=[option_13, option_14, option_12])
optiondescription_11.impl_set_information('source', "file1")
optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11]) optiondescription_10 = OptionDescription(name="files", doc="files", children=[optiondescription_11])
option_9 = BoolOption(name="activate", doc="activate", default=True) option_9 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True) option_15 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_24 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_14]) optiondescription_26 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_15])
optiondescription_24.impl_set_information('type', "service") optiondescription_26.impl_set_information('type', "service")
optiondescription_23 = OptionDescription(name="services", doc="services", children=[optiondescription_24], properties=frozenset({"hidden"})) optiondescription_25 = OptionDescription(name="services", doc="services", children=[optiondescription_26], properties=frozenset({"hidden"}))
optiondescription_21 = OptionDescription(name="1", doc="1", children=[optiondescription_22, optiondescription_23]) optiondescription_23 = OptionDescription(name="1", doc="1", children=[optiondescription_24, optiondescription_25])
option_6 = StrOption(name="condition", doc="No change", default="oui", properties=frozenset({"mandatory", "normal"})) option_6 = StrOption(name="condition", doc="No change", default="oui", properties=frozenset({"mandatory", "normal"}))
option_7 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_7 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
option_8 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))})) option_8 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_6, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"})) optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6, option_7, option_8], properties=frozenset({"normal"}))
optiondescription_26 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5]) optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_5])
option_19 = FilenameOption(name="name", doc="name", default="/tmp/file1") option_20 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_18 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")}))) option_21 = StrOption(name="source", doc="source", default="file1")
optiondescription_17 = OptionDescription(name="file1", doc="file1", children=[option_19, option_18]) option_19 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_6, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")})))
optiondescription_17.impl_set_information('source', "file1") optiondescription_18 = OptionDescription(name="file1", doc="file1", children=[option_20, option_21, option_19])
optiondescription_16 = OptionDescription(name="files", doc="files", children=[optiondescription_17]) optiondescription_17 = OptionDescription(name="files", doc="files", children=[optiondescription_18])
option_15 = BoolOption(name="activate", doc="activate", default=True) option_16 = BoolOption(name="activate", doc="activate", default=True)
option_20 = BoolOption(name="manage", doc="manage", default=True) option_22 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_28 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_16, option_15, option_20]) optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_17, option_16, option_22])
optiondescription_28.impl_set_information('type', "service") optiondescription_30.impl_set_information('type', "service")
optiondescription_27 = OptionDescription(name="services", doc="services", children=[optiondescription_28], properties=frozenset({"hidden"})) optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"}))
optiondescription_25 = OptionDescription(name="2", doc="2", children=[optiondescription_26, optiondescription_27]) optiondescription_27 = OptionDescription(name="2", doc="2", children=[optiondescription_28, optiondescription_29])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_21, optiondescription_25]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_23, optiondescription_27])

Some files were not shown because too many files have changed in this diff Show more