Compare commits
2 commits
b0ebf9444e
...
ec4419287c
| Author | SHA1 | Date | |
|---|---|---|---|
| ec4419287c | |||
| 889a4899a3 |
1848 changed files with 8065 additions and 1148 deletions
|
|
@ -22,30 +22,63 @@ from json import dumps
|
||||||
|
|
||||||
from tiramisu import undefined
|
from tiramisu import undefined
|
||||||
from tiramisu.error import PropertiesOptionError, ConfigError
|
from tiramisu.error import PropertiesOptionError, ConfigError
|
||||||
|
from rougail.error import ExtentionError
|
||||||
|
|
||||||
from .i18n import _
|
from .i18n import _
|
||||||
|
|
||||||
|
|
||||||
class RougailOutputJson:
|
class RougailOutputJson:
|
||||||
|
output_name = 'json'
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
config: "Config",
|
config: "Config",
|
||||||
|
*,
|
||||||
rougailconfig: "RougailConfig" = None,
|
rougailconfig: "RougailConfig" = None,
|
||||||
user_data_errors: Optional[list] = None,
|
user_data_errors: Optional[list] = None,
|
||||||
user_data_warnings: Optional[list] = None,
|
user_data_warnings: Optional[list] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
if rougailconfig is None:
|
if rougailconfig is None:
|
||||||
from rougail import RougailConfig
|
from rougail import RougailConfig
|
||||||
|
|
||||||
rougailconfig = RougailConfig
|
rougailconfig = RougailConfig
|
||||||
|
rougailconfig["step.output"] = self.output_name
|
||||||
|
if rougailconfig["step.output"] != self.output_name:
|
||||||
|
raise ExtentionError(_('the "step.output" is not set to "{0}"').format(self.output_name))
|
||||||
self.rougailconfig = rougailconfig
|
self.rougailconfig = rougailconfig
|
||||||
self.config = config
|
self.config = config
|
||||||
|
if user_data_errors:
|
||||||
|
self.errors = user_data_errors
|
||||||
|
else:
|
||||||
self.errors = []
|
self.errors = []
|
||||||
|
if user_data_warnings:
|
||||||
|
self.warnings = user_data_warnings
|
||||||
|
else:
|
||||||
self.warnings = []
|
self.warnings = []
|
||||||
self.read_write = self.rougailconfig["json.read_write"]
|
self.read_write = self.rougailconfig["json.read_write"]
|
||||||
self.is_mandatory = self.rougailconfig["json.mandatory"]
|
self.is_mandatory = self.rougailconfig["json.mandatory"]
|
||||||
self.dico = {}
|
self.dico = {}
|
||||||
|
|
||||||
|
def run(self) -> None:
|
||||||
|
self.exporter()
|
||||||
|
return dumps(self.dico, ensure_ascii=False, indent=2) + '\n'
|
||||||
|
|
||||||
|
def print(self) -> str:
|
||||||
|
print(self.run())
|
||||||
|
|
||||||
|
def exporter(self) -> None:
|
||||||
|
self.config.property.read_write()
|
||||||
|
self.mandatory()
|
||||||
|
self.manage_warnings()
|
||||||
|
self.config.property.read_only()
|
||||||
|
if self.manage_errors():
|
||||||
|
return
|
||||||
|
if self.read_write:
|
||||||
|
self.config.property.read_write()
|
||||||
|
self.parse_family(
|
||||||
|
self.config,
|
||||||
|
self.dico,
|
||||||
|
)
|
||||||
|
|
||||||
def mandatory(self):
|
def mandatory(self):
|
||||||
if not self.is_mandatory:
|
if not self.is_mandatory:
|
||||||
return
|
return
|
||||||
|
|
@ -79,32 +112,15 @@ class RougailOutputJson:
|
||||||
)
|
)
|
||||||
self.errors.append(f" - {option.description()}")
|
self.errors.append(f" - {option.description()}")
|
||||||
|
|
||||||
def exporter(self) -> None:
|
def manage_warnings(self) -> None:
|
||||||
self.config.property.read_write()
|
if self.warnings:
|
||||||
self.mandatory()
|
self.dico["_warnings"] = self.warnings
|
||||||
if self.read_write:
|
|
||||||
self.config.property.read_write()
|
|
||||||
else:
|
|
||||||
self.config.property.read_only()
|
|
||||||
# errors = self.user_data_errors + self.errors
|
|
||||||
# if errors:
|
|
||||||
# self.display_errors(errors)
|
|
||||||
# if self.errors:
|
|
||||||
# return False
|
|
||||||
# warnings = self.user_data_warnings + self.warnings
|
|
||||||
# if warnings:
|
|
||||||
# self.display_warnings(warnings)
|
|
||||||
self.parse_family(
|
|
||||||
self.config,
|
|
||||||
self.dico,
|
|
||||||
)
|
|
||||||
|
|
||||||
def run(self) -> None:
|
def manage_errors(self) -> bool:
|
||||||
self.exporter()
|
if not self.errors:
|
||||||
return dumps(self.dico, ensure_ascii=False, indent=2)
|
return False
|
||||||
|
self.dico = {"_errors": self.errors}
|
||||||
def print(self) -> str:
|
return True
|
||||||
print(self.run())
|
|
||||||
|
|
||||||
def parse_family(
|
def parse_family(
|
||||||
self,
|
self,
|
||||||
|
|
|
||||||
Binary file not shown.
1
tests/results/test/00_0empty.json
Normal file
1
tests/results/test/00_0empty.json
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
||||||
3
tests/results/test/00_0version_underscore.json
Normal file
3
tests/results/test/00_0version_underscore.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"version": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/00_1empty_variable.json
Normal file
3
tests/results/test/00_1empty_variable.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"empty": "string1"
|
||||||
|
}
|
||||||
8
tests/results/test/00_2default_calculated.json
Normal file
8
tests/results/test/00_2default_calculated.json
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
12
tests/results/test/00_2default_calculated_multi.json
Normal file
12
tests/results/test/00_2default_calculated_multi.json
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"var1": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
],
|
||||||
|
"var2": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"var1": [
|
||||||
|
"domain1.lan",
|
||||||
|
"domain2.lan"
|
||||||
|
],
|
||||||
|
"var2": [
|
||||||
|
"domain1.lan",
|
||||||
|
"domain2.lan"
|
||||||
|
]
|
||||||
|
}
|
||||||
4
tests/results/test/00_4load_subfolder.json
Normal file
4
tests/results/test/00_4load_subfolder.json
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/00_5load_notype.json
Normal file
3
tests/results/test/00_5load_notype.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"without_type": "string1"
|
||||||
|
}
|
||||||
8
tests/results/test/00_6boolean.json
Normal file
8
tests/results/test/00_6boolean.json
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"var1": true,
|
||||||
|
"var2": true,
|
||||||
|
"var3": true,
|
||||||
|
"var4": true,
|
||||||
|
"var5": true,
|
||||||
|
"var6": true
|
||||||
|
}
|
||||||
3
tests/results/test/00_6boolean_no_mandatory.json
Normal file
3
tests/results/test/00_6boolean_no_mandatory.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": true
|
||||||
|
}
|
||||||
8
tests/results/test/00_6choice.json
Normal file
8
tests/results/test/00_6choice.json
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"var1": "a",
|
||||||
|
"var2": "a",
|
||||||
|
"var3": "a",
|
||||||
|
"var4": null,
|
||||||
|
"var5": "a",
|
||||||
|
"var6": 1
|
||||||
|
}
|
||||||
3
tests/results/test/00_6choice_calculation.json
Normal file
3
tests/results/test/00_6choice_calculation.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"var": 0
|
||||||
|
}
|
||||||
8
tests/results/test/00_6choice_variable.json
Normal file
8
tests/results/test/00_6choice_variable.json
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"var1": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
],
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
4
tests/results/test/00_6custom.json
Normal file
4
tests/results/test/00_6custom.json
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"custom1": "string1",
|
||||||
|
"custom2": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/00_6domainname.json
Normal file
3
tests/results/test/00_6domainname.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "domain1.lan"
|
||||||
|
}
|
||||||
3
tests/results/test/00_6domainname_params.json
Normal file
3
tests/results/test/00_6domainname_params.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "domain1.lan"
|
||||||
|
}
|
||||||
8
tests/results/test/00_6float.json
Normal file
8
tests/results/test/00_6float.json
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"var1": 1.1,
|
||||||
|
"var2": 1.1,
|
||||||
|
"var3": 1.1,
|
||||||
|
"var4": 1.1,
|
||||||
|
"var5": 1.1,
|
||||||
|
"var6": 1.1
|
||||||
|
}
|
||||||
8
tests/results/test/00_6number.json
Normal file
8
tests/results/test/00_6number.json
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"var1": 1,
|
||||||
|
"var2": 1,
|
||||||
|
"var3": 1,
|
||||||
|
"var4": 1,
|
||||||
|
"var5": 1,
|
||||||
|
"var6": 1
|
||||||
|
}
|
||||||
5
tests/results/test/00_6port.json
Normal file
5
tests/results/test/00_6port.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"variable1": "80",
|
||||||
|
"variable2": "80",
|
||||||
|
"variable3": "80"
|
||||||
|
}
|
||||||
3
tests/results/test/00_6regexp.json
Normal file
3
tests/results/test/00_6regexp.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"var": "#b1b1b1"
|
||||||
|
}
|
||||||
8
tests/results/test/00_6string.json
Normal file
8
tests/results/test/00_6string.json
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1",
|
||||||
|
"var3": "string1",
|
||||||
|
"var4": "string1",
|
||||||
|
"var5": "string1",
|
||||||
|
"var6": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/00_7choice_quote.json
Normal file
3
tests/results/test/00_7choice_quote.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"var": "quote'"
|
||||||
|
}
|
||||||
4
tests/results/test/00_7help_quote.json
Normal file
4
tests/results/test/00_7help_quote.json
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/00_7value_doublequote.json
Normal file
3
tests/results/test/00_7value_doublequote.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/00_7value_doublequote2.json
Normal file
3
tests/results/test/00_7value_doublequote2.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/00_7value_doublequote3.json
Normal file
3
tests/results/test/00_7value_doublequote3.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/00_7value_quote.json
Normal file
3
tests/results/test/00_7value_quote.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/00_8calculation_information.json
Normal file
3
tests/results/test/00_8calculation_information.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
11
tests/results/test/00_8test.json
Normal file
11
tests/results/test/00_8test.json
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"var1": "test",
|
||||||
|
"var2": "test",
|
||||||
|
"var3": "test1",
|
||||||
|
"var4": null,
|
||||||
|
"var5": false,
|
||||||
|
"var6": [
|
||||||
|
"test1",
|
||||||
|
"test2"
|
||||||
|
]
|
||||||
|
}
|
||||||
10
tests/results/test/00_9choice_variable_multi.json
Normal file
10
tests/results/test/00_9choice_variable_multi.json
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"variable1": [
|
||||||
|
"val1",
|
||||||
|
"val2"
|
||||||
|
],
|
||||||
|
"variable2": [
|
||||||
|
"val1",
|
||||||
|
"val2"
|
||||||
|
]
|
||||||
|
}
|
||||||
5
tests/results/test/00_9choice_variables.json
Normal file
5
tests/results/test/00_9choice_variables.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"source_variable_1": "string1",
|
||||||
|
"source_variable_2": "string1",
|
||||||
|
"my_variable": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/00_9default_calculation.json
Normal file
3
tests/results/test/00_9default_calculation.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"var": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"my_variable": "string1",
|
||||||
|
"my_calculated_variable": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"my_variable": "string1",
|
||||||
|
"my_calculated_variable": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
7
tests/results/test/00_9default_calculation_optional.json
Normal file
7
tests/results/test/00_9default_calculation_optional.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"my_calculated_variable": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"my_variable": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
],
|
||||||
|
"my_calculated_variable": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/00_9default_integer.json
Normal file
3
tests/results/test/00_9default_integer.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"var": 0
|
||||||
|
}
|
||||||
26
tests/results/test/01_6boolean_multi.json
Normal file
26
tests/results/test/01_6boolean_multi.json
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
"var1": [
|
||||||
|
true
|
||||||
|
],
|
||||||
|
"var2": [
|
||||||
|
true
|
||||||
|
],
|
||||||
|
"var3": [
|
||||||
|
true
|
||||||
|
],
|
||||||
|
"var4": [
|
||||||
|
true
|
||||||
|
],
|
||||||
|
"var5": [
|
||||||
|
true
|
||||||
|
],
|
||||||
|
"var6": [
|
||||||
|
true
|
||||||
|
],
|
||||||
|
"var7": [
|
||||||
|
true
|
||||||
|
],
|
||||||
|
"var8": [
|
||||||
|
true
|
||||||
|
]
|
||||||
|
}
|
||||||
12
tests/results/test/01_6custom_multi.json
Normal file
12
tests/results/test/01_6custom_multi.json
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"custom1": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
],
|
||||||
|
"custom2": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
42
tests/results/test/01_6float_multi.json
Normal file
42
tests/results/test/01_6float_multi.json
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
"var1": [
|
||||||
|
1.1,
|
||||||
|
2.2,
|
||||||
|
3.3
|
||||||
|
],
|
||||||
|
"var2": [
|
||||||
|
1.1,
|
||||||
|
2.2,
|
||||||
|
3.3
|
||||||
|
],
|
||||||
|
"var3": [
|
||||||
|
1.1,
|
||||||
|
2.2,
|
||||||
|
3.3
|
||||||
|
],
|
||||||
|
"var4": [
|
||||||
|
1.1,
|
||||||
|
2.2,
|
||||||
|
3.3
|
||||||
|
],
|
||||||
|
"var5": [
|
||||||
|
1.1,
|
||||||
|
2.2,
|
||||||
|
3.3
|
||||||
|
],
|
||||||
|
"var6": [
|
||||||
|
1.1,
|
||||||
|
2.2,
|
||||||
|
3.3
|
||||||
|
],
|
||||||
|
"var7": [
|
||||||
|
1.1,
|
||||||
|
2.2,
|
||||||
|
3.3
|
||||||
|
],
|
||||||
|
"var8": [
|
||||||
|
1.1,
|
||||||
|
2.2,
|
||||||
|
3.3
|
||||||
|
]
|
||||||
|
}
|
||||||
42
tests/results/test/01_6number_multi.json
Normal file
42
tests/results/test/01_6number_multi.json
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
"var1": [
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"var2": [
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"var3": [
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"var4": [
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"var5": [
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"var6": [
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"var7": [
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"var8": [
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
]
|
||||||
|
}
|
||||||
7
tests/results/test/01_6string_empty.json
Normal file
7
tests/results/test/01_6string_empty.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"var1": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
38
tests/results/test/01_6string_multi.json
Normal file
38
tests/results/test/01_6string_multi.json
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"var1": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
],
|
||||||
|
"var2": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
],
|
||||||
|
"var3": "string1",
|
||||||
|
"var4": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
],
|
||||||
|
"var5": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
],
|
||||||
|
"var6": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
],
|
||||||
|
"var7": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
],
|
||||||
|
"var8": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
7
tests/results/test/01_7value_multi_doublequote.json
Normal file
7
tests/results/test/01_7value_multi_doublequote.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"variable": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
7
tests/results/test/01_7value_multi_doublequote2.json
Normal file
7
tests/results/test/01_7value_multi_doublequote2.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"variable": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
7
tests/results/test/01_7value_multi_quote.json
Normal file
7
tests/results/test/01_7value_multi_quote.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"variable": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"variable": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
8
tests/results/test/01_9choice_variable_multi.json
Normal file
8
tests/results/test/01_9choice_variable_multi.json
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"variable1": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
],
|
||||||
|
"variable2": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/04_0type_param.json
Normal file
3
tests/results/test/04_0type_param.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"int": 1
|
||||||
|
}
|
||||||
3
tests/results/test/04_1auto_save.json
Normal file
3
tests/results/test/04_1auto_save.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "no"
|
||||||
|
}
|
||||||
4
tests/results/test/04_1auto_save_and_calculated.json
Normal file
4
tests/results/test/04_1auto_save_and_calculated.json
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "no"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "yes"
|
||||||
|
}
|
||||||
3
tests/results/test/04_1auto_save_and_hidden.json
Normal file
3
tests/results/test/04_1auto_save_and_hidden.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"var": "yes"
|
||||||
|
}
|
||||||
5
tests/results/test/04_1default_calculation_hidden.json
Normal file
5
tests/results/test/04_1default_calculation_hidden.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1",
|
||||||
|
"var3": "string1"
|
||||||
|
}
|
||||||
5
tests/results/test/04_1default_calculation_hidden_2.json
Normal file
5
tests/results/test/04_1default_calculation_hidden_2.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1",
|
||||||
|
"var3": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"condition": "string1",
|
||||||
|
"var1": null,
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"condition": true
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"condition": true
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"condition": "string1",
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"condition": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/04_5validators.json
Normal file
3
tests/results/test/04_5validators.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"int": 1
|
||||||
|
}
|
||||||
4
tests/results/test/04_5validators_differ.json
Normal file
4
tests/results/test/04_5validators_differ.json
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "another_value",
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
7
tests/results/test/04_5validators_multi.json
Normal file
7
tests/results/test/04_5validators_multi.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"var1": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
6
tests/results/test/04_5validators_multi2.json
Normal file
6
tests/results/test/04_5validators_multi2.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"var1": [
|
||||||
|
"val1",
|
||||||
|
"val2"
|
||||||
|
]
|
||||||
|
}
|
||||||
7
tests/results/test/05_0multi_not_uniq.json
Normal file
7
tests/results/test/05_0multi_not_uniq.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"var1": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
7
tests/results/test/05_0multi_uniq.json
Normal file
7
tests/results/test/05_0multi_uniq.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"variable": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
3
tests/results/test/12_1auto_save_expert.json
Normal file
3
tests/results/test/12_1auto_save_expert.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"var": "no"
|
||||||
|
}
|
||||||
3
tests/results/test/16_0redefine_description.json
Normal file
3
tests/results/test/16_0redefine_description.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"var": "string1"
|
||||||
|
}
|
||||||
1
tests/results/test/16_2family_redefine_calculation.json
Normal file
1
tests/results/test/16_2family_redefine_calculation.json
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
||||||
1
tests/results/test/16_2family_redefine_disabled.json
Normal file
1
tests/results/test/16_2family_redefine_disabled.json
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
||||||
4
tests/results/test/16_5exists_nonexists.json
Normal file
4
tests/results/test/16_5exists_nonexists.json
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/16_5exists_redefine.json
Normal file
3
tests/results/test/16_5exists_redefine.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"var1": "yes"
|
||||||
|
}
|
||||||
3
tests/results/test/16_5redefine_calculation.json
Normal file
3
tests/results/test/16_5redefine_calculation.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/16_5redefine_choice.json
Normal file
3
tests/results/test/16_5redefine_choice.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "a"
|
||||||
|
}
|
||||||
3
tests/results/test/16_5redefine_default.json
Normal file
3
tests/results/test/16_5redefine_default.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/16_5redefine_default_calculation.json
Normal file
3
tests/results/test/16_5redefine_default_calculation.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
5
tests/results/test/16_5redefine_family.json
Normal file
5
tests/results/test/16_5redefine_family.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"family": {
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
|
}
|
||||||
5
tests/results/test/16_5redefine_help.json
Normal file
5
tests/results/test/16_5redefine_help.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"family": {
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
|
}
|
||||||
3
tests/results/test/16_5redefine_hidden.json
Normal file
3
tests/results/test/16_5redefine_hidden.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"variable": "no"
|
||||||
|
}
|
||||||
7
tests/results/test/16_5redefine_multi.json
Normal file
7
tests/results/test/16_5redefine_multi.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"variable": [
|
||||||
|
"string1",
|
||||||
|
"string2",
|
||||||
|
"string3"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"condition": "string1",
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
5
tests/results/test/16_5test_redefine.json
Normal file
5
tests/results/test/16_5test_redefine.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"var1": "test1",
|
||||||
|
"var2": "test1",
|
||||||
|
"var3": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/16_6choice_redefine.json
Normal file
3
tests/results/test/16_6choice_redefine.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"var": "a"
|
||||||
|
}
|
||||||
8
tests/results/test/16_6exists_redefine_family.json
Normal file
8
tests/results/test/16_6exists_redefine_family.json
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"family1": {
|
||||||
|
"variable1": "string1"
|
||||||
|
},
|
||||||
|
"family2": {
|
||||||
|
"variable2": "string1"
|
||||||
|
}
|
||||||
|
}
|
||||||
3
tests/results/test/16exists_exists.json
Normal file
3
tests/results/test/16exists_exists.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"var": "string1"
|
||||||
|
}
|
||||||
3
tests/results/test/17_5redefine_leadership.json
Normal file
3
tests/results/test/17_5redefine_leadership.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"leader": []
|
||||||
|
}
|
||||||
1
tests/results/test/20_0empty_family.json
Normal file
1
tests/results/test/20_0empty_family.json
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
||||||
6
tests/results/test/20_0family_append.json
Normal file
6
tests/results/test/20_0family_append.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"family": {
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
tests/results/test/20_0family_underscore.json
Normal file
1
tests/results/test/20_0family_underscore.json
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
||||||
7
tests/results/test/20_0multi_family.json
Normal file
7
tests/results/test/20_0multi_family.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"family": {
|
||||||
|
"subfamily": {
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
7
tests/results/test/20_0multi_family_basic.json
Normal file
7
tests/results/test/20_0multi_family_basic.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"family": {
|
||||||
|
"subfamily": {
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
7
tests/results/test/20_0multi_family_expert.json
Normal file
7
tests/results/test/20_0multi_family_expert.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"family": {
|
||||||
|
"subfamily": {
|
||||||
|
"variable": "string1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
10
tests/results/test/20_0multi_family_order.json
Normal file
10
tests/results/test/20_0multi_family_order.json
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"variable": "string1",
|
||||||
|
"family": {
|
||||||
|
"variable1": "string1",
|
||||||
|
"subfamily": {
|
||||||
|
"variable": "string1"
|
||||||
|
},
|
||||||
|
"variable2": "string1"
|
||||||
|
}
|
||||||
|
}
|
||||||
5
tests/results/test/20_0validators_differ_redefine.json
Normal file
5
tests/results/test/20_0validators_differ_redefine.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1",
|
||||||
|
"var3": "yes"
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue