feat: default value for a calculated variable with an unknown optional variable
This commit is contained in:
parent
9e9de6a1de
commit
bccea20ded
119 changed files with 503 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_VAR1="domain1.lan,domain2.lan"
|
||||
ROUGAIL_VAR2="domain1.lan,domain2.lan"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_VAR1="domain1.lan,domain2.lan"
|
||||
ROUGAIL_VAR2="domain1.lan,domain2.lan"
|
||||
|
|
@ -0,0 +1 @@
|
|||
ROUGAIL_VAR1="domain1.lan,domain2.lan"
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"var1": [
|
||||
"domain1.lan",
|
||||
"domain2.lan"
|
||||
],
|
||||
"var2": [
|
||||
"domain1.lan",
|
||||
"domain2.lan"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"var1": [
|
||||
"domain1.lan",
|
||||
"domain2.lan"
|
||||
],
|
||||
"var2": [
|
||||
"domain1.lan",
|
||||
"domain2.lan"
|
||||
]
|
||||
}
|
||||
4
tests/results/test/00_6ip/errors/all.json
Normal file
4
tests/results/test/00_6ip/errors/all.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
4
tests/results/test/00_6ip/errors/mandatories.json
Normal file
4
tests/results/test/00_6ip/errors/mandatories.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
3
tests/results/test/00_6ip/file/all.env
Normal file
3
tests/results/test/00_6ip/file/all.env
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ROUGAIL_VAR1="192.168.1.6"
|
||||
ROUGAIL_VAR2="192.168.1.6/24"
|
||||
ROUGAIL_VAR3="192.168.1.6/24"
|
||||
3
tests/results/test/00_6ip/file/all_exclude.env
Normal file
3
tests/results/test/00_6ip/file/all_exclude.env
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ROUGAIL_VAR1="192.168.1.6"
|
||||
ROUGAIL_VAR2="192.168.1.6/24"
|
||||
ROUGAIL_VAR3="192.168.1.6/24"
|
||||
1
tests/results/test/00_6ip/file/mandatories.env
Normal file
1
tests/results/test/00_6ip/file/mandatories.env
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
5
tests/results/test/00_6ip/makedict/all.json
Normal file
5
tests/results/test/00_6ip/makedict/all.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"var1": "192.168.1.6",
|
||||
"var2": "192.168.1.6/24",
|
||||
"var3": "192.168.1.6/24"
|
||||
}
|
||||
5
tests/results/test/00_6ip/makedict/mandatories.json
Normal file
5
tests/results/test/00_6ip/makedict/mandatories.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"var1": "1.1.1.1",
|
||||
"var2": "1.1.1.1/24",
|
||||
"var3": "1.1.1.1/24"
|
||||
}
|
||||
4
tests/results/test/00_6network/errors/all.json
Normal file
4
tests/results/test/00_6network/errors/all.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
4
tests/results/test/00_6network/errors/mandatories.json
Normal file
4
tests/results/test/00_6network/errors/mandatories.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
3
tests/results/test/00_6network/file/all.env
Normal file
3
tests/results/test/00_6network/file/all.env
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ROUGAIL_VAR1="192.168.1.0"
|
||||
ROUGAIL_VAR2="192.168.1.6/32"
|
||||
ROUGAIL_VAR3="192.168.1.6/32"
|
||||
3
tests/results/test/00_6network/file/all_exclude.env
Normal file
3
tests/results/test/00_6network/file/all_exclude.env
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ROUGAIL_VAR1="192.168.1.0"
|
||||
ROUGAIL_VAR2="192.168.1.6/32"
|
||||
ROUGAIL_VAR3="192.168.1.6/32"
|
||||
1
tests/results/test/00_6network/file/mandatories.env
Normal file
1
tests/results/test/00_6network/file/mandatories.env
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
5
tests/results/test/00_6network/makedict/all.json
Normal file
5
tests/results/test/00_6network/makedict/all.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"var1": "192.168.1.0",
|
||||
"var2": "192.168.1.6/32",
|
||||
"var3": "192.168.1.6/32"
|
||||
}
|
||||
5
tests/results/test/00_6network/makedict/mandatories.json
Normal file
5
tests/results/test/00_6network/makedict/mandatories.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"var1": "1.1.1.0",
|
||||
"var2": "1.1.1.0/24",
|
||||
"var3": "1.1.1.0/24"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_MY_VARIABLE="string1"
|
||||
ROUGAIL_MY_CALCULATED_VARIABLE="string1,string2,string3"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_MY_VARIABLE="string1"
|
||||
ROUGAIL_MY_CALCULATED_VARIABLE="string1,string2,string3"
|
||||
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"my_variable": "string1",
|
||||
"my_calculated_variable": [
|
||||
"string1",
|
||||
"string2",
|
||||
"string3"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"my_variable": "val1",
|
||||
"my_calculated_variable": [
|
||||
"val1",
|
||||
"value"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
ROUGAIL_VARIABLE="a"
|
||||
|
|
@ -0,0 +1 @@
|
|||
ROUGAIL_VARIABLE="a"
|
||||
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"variable": "a"
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"variable": "c"
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": [
|
||||
"variable \"var1\" (a first variable) is hidden, it will be ignored when loading from environment variable",
|
||||
"variable \"var2\" (a first variable) is hidden, it will be ignored when loading from environment variable",
|
||||
"variable \"var3\" (a second variable) is hidden, it will be ignored when loading from environment variable"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
ROUGAIL_CONDITION="True"
|
||||
ROUGAIL_VAR1="string1"
|
||||
ROUGAIL_VAR2="string1"
|
||||
ROUGAIL_VAR3="string1"
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
ROUGAIL_CONDITION="True"
|
||||
ROUGAIL_VAR1="string1"
|
||||
ROUGAIL_VAR2="string1"
|
||||
ROUGAIL_VAR3="string1"
|
||||
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"condition": true,
|
||||
"var1": null,
|
||||
"var2": null,
|
||||
"var3": null,
|
||||
"var4": null
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"condition": false,
|
||||
"var1": null,
|
||||
"var2": null,
|
||||
"var3": null,
|
||||
"var4": null
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_LEADER.LEADER="string1,string2,string3"
|
||||
ROUGAIL_LEADER.FOLLOWER1="1,2,3"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_LEADER.LEADER="string1,string2,string3"
|
||||
ROUGAIL_LEADER.FOLLOWER1="1,2,3"
|
||||
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"leader.leader": [
|
||||
{
|
||||
"leader.leader": "string1",
|
||||
"leader.follower1": 1
|
||||
},
|
||||
{
|
||||
"leader.leader": "string2",
|
||||
"leader.follower1": 2
|
||||
},
|
||||
{
|
||||
"leader.leader": "string3",
|
||||
"leader.follower1": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"leader.leader": [
|
||||
{
|
||||
"leader.leader": "a",
|
||||
"leader.follower1": 0
|
||||
},
|
||||
{
|
||||
"leader.leader": "b",
|
||||
"leader.follower1": 1
|
||||
},
|
||||
{
|
||||
"leader.leader": "c",
|
||||
"leader.follower1": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_LEADER.LEADER="string1,string2,string3"
|
||||
ROUGAIL_LEADER.FOLLOWER1="1,2,3"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_LEADER.LEADER="string1,string2,string3"
|
||||
ROUGAIL_LEADER.FOLLOWER1="1,2,3"
|
||||
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"leader.leader": [
|
||||
{
|
||||
"leader.leader": "string1",
|
||||
"leader.follower1": 1
|
||||
},
|
||||
{
|
||||
"leader.leader": "string2",
|
||||
"leader.follower1": 2
|
||||
},
|
||||
{
|
||||
"leader.leader": "string3",
|
||||
"leader.follower1": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"leader.leader": [
|
||||
{
|
||||
"leader.leader": "a",
|
||||
"leader.follower1": 0
|
||||
},
|
||||
{
|
||||
"leader.leader": "b",
|
||||
"leader.follower1": 1
|
||||
},
|
||||
{
|
||||
"leader.leader": "c",
|
||||
"leader.follower1": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_DYNA.VAR="string1"
|
||||
ROUGAIL_DYNB.VAR="string1"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_DYNA.VAR="string1"
|
||||
ROUGAIL_DYNB.VAR="string1"
|
||||
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"dyna.var": "string1",
|
||||
"dynb.var": "string1"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"dyna.var": "val",
|
||||
"dynb.var": "val"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL.VAR1="domain1.lan,domain2.lan"
|
||||
ROUGAIL.VAR2="domain1.lan,domain2.lan"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL.VAR1="domain1.lan,domain2.lan"
|
||||
ROUGAIL.VAR2="domain1.lan,domain2.lan"
|
||||
|
|
@ -0,0 +1 @@
|
|||
ROUGAIL.VAR1="domain1.lan,domain2.lan"
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"rougail.var1": [
|
||||
"domain1.lan",
|
||||
"domain2.lan"
|
||||
],
|
||||
"rougail.var2": [
|
||||
"domain1.lan",
|
||||
"domain2.lan"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"rougail.var1": [
|
||||
"domain1.lan",
|
||||
"domain2.lan"
|
||||
],
|
||||
"rougail.var2": [
|
||||
"domain1.lan",
|
||||
"domain2.lan"
|
||||
]
|
||||
}
|
||||
4
tests/results/test_namespace/00_6ip/errors/all.json
Normal file
4
tests/results/test_namespace/00_6ip/errors/all.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
3
tests/results/test_namespace/00_6ip/file/all.env
Normal file
3
tests/results/test_namespace/00_6ip/file/all.env
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ROUGAIL.VAR1="192.168.1.6"
|
||||
ROUGAIL.VAR2="192.168.1.6/24"
|
||||
ROUGAIL.VAR3="192.168.1.6/24"
|
||||
3
tests/results/test_namespace/00_6ip/file/all_exclude.env
Normal file
3
tests/results/test_namespace/00_6ip/file/all_exclude.env
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ROUGAIL.VAR1="192.168.1.6"
|
||||
ROUGAIL.VAR2="192.168.1.6/24"
|
||||
ROUGAIL.VAR3="192.168.1.6/24"
|
||||
1
tests/results/test_namespace/00_6ip/file/mandatories.env
Normal file
1
tests/results/test_namespace/00_6ip/file/mandatories.env
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
5
tests/results/test_namespace/00_6ip/makedict/all.json
Normal file
5
tests/results/test_namespace/00_6ip/makedict/all.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"rougail.var1": "192.168.1.6",
|
||||
"rougail.var2": "192.168.1.6/24",
|
||||
"rougail.var3": "192.168.1.6/24"
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"rougail.var1": "1.1.1.1",
|
||||
"rougail.var2": "1.1.1.1/24",
|
||||
"rougail.var3": "1.1.1.1/24"
|
||||
}
|
||||
4
tests/results/test_namespace/00_6network/errors/all.json
Normal file
4
tests/results/test_namespace/00_6network/errors/all.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
3
tests/results/test_namespace/00_6network/file/all.env
Normal file
3
tests/results/test_namespace/00_6network/file/all.env
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ROUGAIL.VAR1="192.168.1.0"
|
||||
ROUGAIL.VAR2="192.168.1.6/32"
|
||||
ROUGAIL.VAR3="192.168.1.6/32"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
ROUGAIL.VAR1="192.168.1.0"
|
||||
ROUGAIL.VAR2="192.168.1.6/32"
|
||||
ROUGAIL.VAR3="192.168.1.6/32"
|
||||
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"rougail.var1": "192.168.1.0",
|
||||
"rougail.var2": "192.168.1.6/32",
|
||||
"rougail.var3": "192.168.1.6/32"
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"rougail.var1": "1.1.1.0",
|
||||
"rougail.var2": "1.1.1.0/24",
|
||||
"rougail.var3": "1.1.1.0/24"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL.MY_VARIABLE="string1"
|
||||
ROUGAIL.MY_CALCULATED_VARIABLE="string1,string2,string3"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL.MY_VARIABLE="string1"
|
||||
ROUGAIL.MY_CALCULATED_VARIABLE="string1,string2,string3"
|
||||
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"rougail.my_variable": "string1",
|
||||
"rougail.my_calculated_variable": [
|
||||
"string1",
|
||||
"string2",
|
||||
"string3"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"rougail.my_variable": "val1",
|
||||
"rougail.my_calculated_variable": [
|
||||
"val1",
|
||||
"value"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
ROUGAIL.VARIABLE="a"
|
||||
|
|
@ -0,0 +1 @@
|
|||
ROUGAIL.VARIABLE="a"
|
||||
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"rougail.variable": "a"
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"rougail.variable": "c"
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": [
|
||||
"variable \"rougail.var1\" (a first variable) is hidden, it will be ignored when loading from environment variable",
|
||||
"variable \"rougail.var2\" (a first variable) is hidden, it will be ignored when loading from environment variable",
|
||||
"variable \"rougail.var3\" (a second variable) is hidden, it will be ignored when loading from environment variable"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue