feat: add tests

This commit is contained in:
egarette@silique.fr 2024-11-30 15:50:28 +01:00
parent cc03dfe2e5
commit b0ebf9444e
1110 changed files with 11363 additions and 0 deletions

View file

@ -40,6 +40,8 @@ class RougailOutputJson:
rougailconfig = RougailConfig rougailconfig = RougailConfig
self.rougailconfig = rougailconfig self.rougailconfig = rougailconfig
self.config = config self.config = config
self.errors = []
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 = {}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,3 @@
{
"version": "string1"
}

View file

@ -0,0 +1,3 @@
{
"empty": "string1"
}

View file

@ -0,0 +1,8 @@
{
"var1": "string1",
"var2": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,12 @@
{
"var1": [
"string1",
"string2",
"string3"
],
"var2": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,10 @@
{
"var1": [
"domain1.lan",
"domain2.lan"
],
"var2": [
"domain1.lan",
"domain2.lan"
]
}

View file

@ -0,0 +1,4 @@
{
"var1": "string1",
"var2": "string1"
}

View file

@ -0,0 +1,3 @@
{
"without_type": "string1"
}

View file

@ -0,0 +1,8 @@
{
"var1": true,
"var2": true,
"var3": true,
"var4": true,
"var5": true,
"var6": true
}

View file

@ -0,0 +1,3 @@
{
"variable": true
}

View file

@ -0,0 +1,8 @@
{
"var1": "a",
"var2": "a",
"var3": "a",
"var4": null,
"var5": "a",
"var6": 1
}

View file

@ -0,0 +1,3 @@
{
"var": 0
}

View file

@ -0,0 +1,8 @@
{
"var1": [
"string1",
"string2",
"string3"
],
"var2": "string1"
}

View file

@ -0,0 +1,4 @@
{
"custom1": "string1",
"custom2": "string1"
}

View file

@ -0,0 +1,3 @@
{
"variable": "domain1.lan"
}

View file

@ -0,0 +1,3 @@
{
"variable": "domain1.lan"
}

View file

@ -0,0 +1,8 @@
{
"var1": 1.1,
"var2": 1.1,
"var3": 1.1,
"var4": 1.1,
"var5": 1.1,
"var6": 1.1
}

View file

@ -0,0 +1,8 @@
{
"var1": 1,
"var2": 1,
"var3": 1,
"var4": 1,
"var5": 1,
"var6": 1
}

View file

@ -0,0 +1,5 @@
{
"variable1": "80",
"variable2": "80",
"variable3": "80"
}

View file

@ -0,0 +1,3 @@
{
"var": "#b1b1b1"
}

View file

@ -0,0 +1,8 @@
{
"var1": "string1",
"var2": "string1",
"var3": "string1",
"var4": "string1",
"var5": "string1",
"var6": "string1"
}

View file

@ -0,0 +1,3 @@
{
"var": "quote'"
}

View file

@ -0,0 +1,4 @@
{
"var1": "string1",
"var2": "string1"
}

View file

@ -0,0 +1,3 @@
{
"variable": "string1"
}

View file

@ -0,0 +1,3 @@
{
"variable": "string1"
}

View file

@ -0,0 +1,3 @@
{
"variable": "string1"
}

View file

@ -0,0 +1,3 @@
{
"variable": "string1"
}

View file

@ -0,0 +1,3 @@
{
"variable": "string1"
}

View file

@ -0,0 +1,11 @@
{
"var1": "test",
"var2": "test",
"var3": "test1",
"var4": null,
"var5": false,
"var6": [
"test1",
"test2"
]
}

View file

@ -0,0 +1,10 @@
{
"variable1": [
"val1",
"val2"
],
"variable2": [
"val1",
"val2"
]
}

View file

@ -0,0 +1,5 @@
{
"source_variable_1": "string1",
"source_variable_2": "string1",
"my_variable": "string1"
}

View file

@ -0,0 +1,3 @@
{
"variable": "string1"
}

View file

@ -0,0 +1,3 @@
{
"var": "string1"
}

View file

@ -0,0 +1,4 @@
{
"var1": "string1",
"var2": "string1"
}

View file

@ -0,0 +1,8 @@
{
"my_variable": "string1",
"my_calculated_variable": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,8 @@
{
"my_variable": "string1",
"my_calculated_variable": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,7 @@
{
"my_calculated_variable": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,12 @@
{
"my_variable": [
"string1",
"string2",
"string3"
],
"my_calculated_variable": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,4 @@
{
"var1": "string1",
"var2": "string1"
}

View file

@ -0,0 +1,4 @@
{
"var1": "string1",
"var2": "string1"
}

View file

@ -0,0 +1,3 @@
{
"var": 0
}

View file

@ -0,0 +1,26 @@
{
"var1": [
true
],
"var2": [
true
],
"var3": [
true
],
"var4": [
true
],
"var5": [
true
],
"var6": [
true
],
"var7": [
true
],
"var8": [
true
]
}

View file

@ -0,0 +1,12 @@
{
"custom1": [
"string1",
"string2",
"string3"
],
"custom2": [
"string1",
"string2",
"string3"
]
}

View 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
]
}

View 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
]
}

View file

@ -0,0 +1,7 @@
{
"var1": [
"string1",
"string2",
"string3"
]
}

View 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"
]
}

View file

@ -0,0 +1,7 @@
{
"variable": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,7 @@
{
"variable": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,7 @@
{
"variable": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,7 @@
{
"variable": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,8 @@
{
"variable1": [
"string1",
"string2",
"string3"
],
"variable2": "string1"
}

View file

@ -0,0 +1,3 @@
{
"int": 1
}

View file

@ -0,0 +1,3 @@
{
"variable": "no"
}

View file

@ -0,0 +1,4 @@
{
"var1": "string1",
"var2": "no"
}

View file

@ -0,0 +1,4 @@
{
"var1": "string1",
"var2": "yes"
}

View file

@ -0,0 +1,3 @@
{
"var": "yes"
}

View file

@ -0,0 +1,5 @@
{
"var1": "string1",
"var2": "string1",
"var3": "string1"
}

View file

@ -0,0 +1,5 @@
{
"var1": "string1",
"var2": "string1",
"var3": "string1"
}

View file

@ -0,0 +1,5 @@
{
"condition": "string1",
"var1": null,
"var2": "string1"
}

View file

@ -0,0 +1,3 @@
{
"condition": true
}

View file

@ -0,0 +1,3 @@
{
"condition": true
}

View file

@ -0,0 +1,4 @@
{
"condition": "string1",
"variable": "string1"
}

View file

@ -0,0 +1,3 @@
{
"condition": "string1"
}

View file

@ -0,0 +1,3 @@
{
"int": 1
}

View file

@ -0,0 +1,4 @@
{
"var1": "another_value",
"var2": "string1"
}

View file

@ -0,0 +1,7 @@
{
"var1": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,6 @@
{
"var1": [
"val1",
"val2"
]
}

View file

@ -0,0 +1,7 @@
{
"var1": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,7 @@
{
"variable": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,3 @@
{
"var": "no"
}

View file

@ -0,0 +1,3 @@
{
"var": "string1"
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,4 @@
{
"var1": "string1",
"var2": "string1"
}

View file

@ -0,0 +1,3 @@
{
"var1": "yes"
}

View file

@ -0,0 +1,3 @@
{
"variable": "string1"
}

View file

@ -0,0 +1,3 @@
{
"variable": "a"
}

View file

@ -0,0 +1,3 @@
{
"variable": "string1"
}

View file

@ -0,0 +1,3 @@
{
"variable": "string1"
}

View file

@ -0,0 +1,5 @@
{
"family": {
"variable": "string1"
}
}

View file

@ -0,0 +1,5 @@
{
"family": {
"variable": "string1"
}
}

View file

@ -0,0 +1,3 @@
{
"variable": "no"
}

View file

@ -0,0 +1,7 @@
{
"variable": [
"string1",
"string2",
"string3"
]
}

View file

@ -0,0 +1,4 @@
{
"condition": "string1",
"variable": "string1"
}

View file

@ -0,0 +1,5 @@
{
"var1": "test1",
"var2": "test1",
"var3": "string1"
}

View file

@ -0,0 +1,3 @@
{
"var": "a"
}

View file

@ -0,0 +1,8 @@
{
"family1": {
"variable1": "string1"
},
"family2": {
"variable2": "string1"
}
}

View file

@ -0,0 +1,3 @@
{
"var": "string1"
}

View file

@ -0,0 +1,3 @@
{
"leader": []
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,6 @@
{
"family": {
"var1": "string1",
"var2": "string1"
}
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,7 @@
{
"family": {
"subfamily": {
"variable": "string1"
}
}
}

View file

@ -0,0 +1,7 @@
{
"family": {
"subfamily": {
"variable": "string1"
}
}
}

View file

@ -0,0 +1,7 @@
{
"family": {
"subfamily": {
"variable": "string1"
}
}
}

View file

@ -0,0 +1,10 @@
{
"variable": "string1",
"family": {
"variable1": "string1",
"subfamily": {
"variable": "string1"
},
"variable2": "string1"
}
}

View 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