rougail/tests/dictionaries/40empty_param/tiramisu/multi.py

20 lines
2.5 KiB
Python

from tiramisu import *
from tiramisu.setting import ALLOWED_LEADER_PROPERTIES
from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription
load_functions('tests/dictionaries/../eosfunc/test.py')
ALLOWED_LEADER_PROPERTIES.add("basic")
ALLOWED_LEADER_PROPERTIES.add("standard")
ALLOWED_LEADER_PROPERTIES.add("advanced")
dict_env['default_1.rougail.proxy_authentifie.toto1'] = "{{ null | calc_multi_condition }}"
dict_env['default_2.rougail.proxy_authentifie.toto1'] = "{{ null | calc_multi_condition }}"
option_4 = PortOption(name="toto1", doc="Port d'écoute du proxy", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.proxy_authentifie.toto1"), '__internal_type': ParamValue("port"), '__internal_multi': ParamValue(False)})), allow_private=True, properties=frozenset({"advanced"}))
option_5 = PortOption(name="toto2", doc="Port d'écoute du proxy NTLM", default="3127", allow_private=True, properties=frozenset({"advanced", "mandatory"}))
optiondescription_3 = OptionDescription(name="proxy_authentifie", doc="proxy authentifié", children=[option_4, option_5], properties=frozenset({"advanced"}))
optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"advanced"}))
optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"}))
option_9 = PortOption(name="toto1", doc="Port d'écoute du proxy", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.proxy_authentifie.toto1"), '__internal_type': ParamValue("port"), '__internal_multi': ParamValue(False)})), allow_private=True, properties=frozenset({"advanced"}))
option_10 = PortOption(name="toto2", doc="Port d'écoute du proxy NTLM", default="3127", allow_private=True, properties=frozenset({"advanced", "mandatory"}))
optiondescription_8 = OptionDescription(name="proxy_authentifie", doc="proxy authentifié", children=[option_9, option_10], properties=frozenset({"advanced"}))
optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"advanced"}))
optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"advanced"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6])