diff --git a/tests/errors/results/01_disabled_family.yaml b/tests/errors/results/01_disabled_family.yaml index d394cb9..b55bc89 100644 --- a/tests/errors/results/01_disabled_family.yaml +++ b/tests/errors/results/01_disabled_family.yaml @@ -1,7 +1,19 @@ { "errors": [], "warnings": [ - "family \"family_disabled\" is disabled, \"family_disabled.variable1\" will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/01_disabled_family.yaml\"", - "family \"family_disabled\" is disabled, \"family_disabled.variable2\" will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/01_disabled_family.yaml\"" + [ + [ + "family \"family_disabled\" has property disabled, so cannot access to \"variable1\", it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/01_disabled_family.yaml\"", + "family_disabled.variable1", + null + ] + ], + [ + [ + "family \"family_disabled\" has property disabled, so cannot access to \"variable2\", it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/01_disabled_family.yaml\"", + "family_disabled.variable2", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/errors/results/01_disabled_variable.yaml b/tests/errors/results/01_disabled_variable.yaml index b5c0024..cbb6ddd 100644 --- a/tests/errors/results/01_disabled_variable.yaml +++ b/tests/errors/results/01_disabled_variable.yaml @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"variable_disabled\" is disabled, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/01_disabled_variable.yaml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/01_disabled_variable.yaml\"", + "variable_disabled", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/errors/results/01_wrong_type.yaml b/tests/errors/results/01_wrong_type.yaml index 146ee6f..4aaa4d0 100644 --- a/tests/errors/results/01_wrong_type.yaml +++ b/tests/errors/results/01_wrong_type.yaml @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "the value \"test\" is an invalid integer for \"variable_int\", which is not an integer, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/01_wrong_type.yaml\"" + [ + [ + "the value \"test\" is an invalid integer, it's not an integer, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/01_wrong_type.yaml\"", + "variable_int", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/errors/results/02_disabled_hidden_family.yaml b/tests/errors/results/02_disabled_hidden_family.yaml index d12879d..016879e 100644 --- a/tests/errors/results/02_disabled_hidden_family.yaml +++ b/tests/errors/results/02_disabled_hidden_family.yaml @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "family \"family_disabled_hidden\" is disabled and hidden, \"family_disabled_hidden.variable1\" will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/02_disabled_hidden_family.yaml\"" + [ + [ + "family \"family_disabled_hidden\" has property disabled and hidden, so cannot access to \"variable1\", it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/02_disabled_hidden_family.yaml\"", + "family_disabled_hidden.variable1", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/errors/results/04_value_secret.yaml b/tests/errors/results/04_value_secret.yaml index 83335e7..5dd5501 100644 --- a/tests/errors/results/04_value_secret.yaml +++ b/tests/errors/results/04_value_secret.yaml @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "the value \"**********\" is an invalid password for \"secret\", at least 10 characters are required, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/04_value_secret.yaml\"" + [ + [ + "the value \"**********\" is an invalid password, at least 10 characters are required, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/04_value_secret.yaml\"", + "secret", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/errors/results/05_value_family.yaml b/tests/errors/results/05_value_family.yaml index 8c4b52d..1b0be38 100644 --- a/tests/errors/results/05_value_family.yaml +++ b/tests/errors/results/05_value_family.yaml @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "cannot set the value \"test\" to the family \"family\", it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/05_value_family.yaml\"" + [ + [ + "is a family so we cannot set the value \"test\", it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/05_value_family.yaml\"", + "family", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/errors/results/07_leadership_disabled.yaml b/tests/errors/results/07_leadership_disabled.yaml index b8cc670..6b1bf24 100644 --- a/tests/errors/results/07_leadership_disabled.yaml +++ b/tests/errors/results/07_leadership_disabled.yaml @@ -1,9 +1,33 @@ { "errors": [], "warnings": [ - "variable \"leadership.follower_disabled\" at index \"0\" is disabled, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/07_leadership_disabled.yaml\"", - "variable \"leadership.follower_disabled\" at index \"1\" is disabled, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/07_leadership_disabled.yaml\"", - "variable \"leadership.follower_disabled\" at index \"2\" is disabled, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/07_leadership_disabled.yaml\"", - "variable \"leadership.follower_disabled_at_index\" at index \"1\" is disabled, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/07_leadership_disabled.yaml\"" + [ + [ + "variable \"follower_disabled\" at index \"0\" is disabled, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/07_leadership_disabled.yaml\"", + "leadership.follower_disabled", + null + ] + ], + [ + [ + "variable \"follower_disabled\" at index \"1\" is disabled, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/07_leadership_disabled.yaml\"", + "leadership.follower_disabled", + null + ] + ], + [ + [ + "variable \"follower_disabled\" at index \"2\" is disabled, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/07_leadership_disabled.yaml\"", + "leadership.follower_disabled", + null + ] + ], + [ + [ + "variable \"follower_disabled_at_index\" at index \"1\" is disabled, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/07_leadership_disabled.yaml\"", + "leadership.follower_disabled_at_index", + null + ] + ] ] -} +} \ No newline at end of file diff --git a/tests/invalid/results/invalid/errors.json b/tests/invalid/results/invalid/errors.json index 4d4453d..382de37 100644 --- a/tests/invalid/results/invalid/errors.json +++ b/tests/invalid/results/invalid/errors.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "the value \"oups\" is an invalid boolean for \"a_family.a_boolean\" (A boolean), invalid value, it will be ignored when loading from the YAML file \"tests/invalid/invalid/00.yml\"" + [ + [ + "the value \"oups\" is an invalid boolean, invalid value, it will be ignored when loading from the YAML file \"tests/invalid/invalid/00.yml\"", + "a_family.a_boolean", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_family/errors.json b/tests/invalid/results/invalid_family/errors.json index 6ead186..587c8a4 100644 --- a/tests/invalid/results/invalid_family/errors.json +++ b/tests/invalid/results/invalid_family/errors.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "cannot set the value \"oups\" to the family \"a_family\" (A family), it will be ignored when loading from the YAML file \"tests/invalid/invalid_family/00.yml\"" + [ + [ + "is a family so we cannot set the value \"oups\", it will be ignored when loading from the YAML file \"tests/invalid/invalid_family/00.yml\"", + "a_family", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_family_invalid/errors.json b/tests/invalid/results/invalid_family_invalid/errors.json index 1c10330..180ef61 100644 --- a/tests/invalid/results/invalid_family_invalid/errors.json +++ b/tests/invalid/results/invalid_family_invalid/errors.json @@ -1,6 +1,12 @@ { "errors": [ - "cannot set the value \"oups\" to the family \"a_family\" (A family), it will be ignored when loading from the YAML file \"tests/invalid/invalid_family/00.yml\"" + [ + [ + "is a family so we cannot set the value \"oups\", it has been loading from the YAML file \"tests/invalid/invalid_family/00.yml\"", + "a_family", + null + ] + ] ], "warnings": [] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_family_invalid_unknown/errors.json b/tests/invalid/results/invalid_family_invalid_unknown/errors.json index 1c10330..180ef61 100644 --- a/tests/invalid/results/invalid_family_invalid_unknown/errors.json +++ b/tests/invalid/results/invalid_family_invalid_unknown/errors.json @@ -1,6 +1,12 @@ { "errors": [ - "cannot set the value \"oups\" to the family \"a_family\" (A family), it will be ignored when loading from the YAML file \"tests/invalid/invalid_family/00.yml\"" + [ + [ + "is a family so we cannot set the value \"oups\", it has been loading from the YAML file \"tests/invalid/invalid_family/00.yml\"", + "a_family", + null + ] + ] ], "warnings": [] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_family_unknown/errors.json b/tests/invalid/results/invalid_family_unknown/errors.json index 6ead186..587c8a4 100644 --- a/tests/invalid/results/invalid_family_unknown/errors.json +++ b/tests/invalid/results/invalid_family_unknown/errors.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "cannot set the value \"oups\" to the family \"a_family\" (A family), it will be ignored when loading from the YAML file \"tests/invalid/invalid_family/00.yml\"" + [ + [ + "is a family so we cannot set the value \"oups\", it will be ignored when loading from the YAML file \"tests/invalid/invalid_family/00.yml\"", + "a_family", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_invalid/errors.json b/tests/invalid/results/invalid_invalid/errors.json index 8afc0a7..ce7c322 100644 --- a/tests/invalid/results/invalid_invalid/errors.json +++ b/tests/invalid/results/invalid_invalid/errors.json @@ -1,6 +1,12 @@ { "errors": [ - "the value \"oups\" is an invalid boolean for \"a_family.a_boolean\" (A boolean), invalid value, it will be ignored when loading from the YAML file \"tests/invalid/invalid/00.yml\"" + [ + [ + "the value \"oups\" is an invalid boolean, invalid value, it has been loading from the YAML file \"tests/invalid/invalid/00.yml\"", + "a_family.a_boolean", + null + ] + ] ], "warnings": [] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_invalid_unknown/errors.json b/tests/invalid/results/invalid_invalid_unknown/errors.json index 8afc0a7..ce7c322 100644 --- a/tests/invalid/results/invalid_invalid_unknown/errors.json +++ b/tests/invalid/results/invalid_invalid_unknown/errors.json @@ -1,6 +1,12 @@ { "errors": [ - "the value \"oups\" is an invalid boolean for \"a_family.a_boolean\" (A boolean), invalid value, it will be ignored when loading from the YAML file \"tests/invalid/invalid/00.yml\"" + [ + [ + "the value \"oups\" is an invalid boolean, invalid value, it has been loading from the YAML file \"tests/invalid/invalid/00.yml\"", + "a_family.a_boolean", + null + ] + ] ], "warnings": [] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_leadership/errors.json b/tests/invalid/results/invalid_leadership/errors.json index c54dfb7..15dc351 100644 --- a/tests/invalid/results/invalid_leadership/errors.json +++ b/tests/invalid/results/invalid_leadership/errors.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "the value \"1\" is an invalid string for \"a_leadership.a_follower\" (A follower) at index \"0\", which is not a string, it will be ignored when loading from the YAML file \"tests/invalid/invalid_leadership/00.yml\"" + [ + [ + "the value \"1\" is an invalid string, it's not a string, it will be ignored when loading from the YAML file \"tests/invalid/invalid_leadership/00.yml\"", + "a_leadership.a_follower", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_leadership_invalid/errors.json b/tests/invalid/results/invalid_leadership_invalid/errors.json index 057dbce..2538164 100644 --- a/tests/invalid/results/invalid_leadership_invalid/errors.json +++ b/tests/invalid/results/invalid_leadership_invalid/errors.json @@ -1,6 +1,12 @@ { "errors": [ - "the value \"1\" is an invalid string for \"a_leadership.a_follower\" (A follower) at index \"0\", which is not a string, it will be ignored when loading from the YAML file \"tests/invalid/invalid_leadership/00.yml\"" + [ + [ + "the value \"1\" is an invalid string, it's not a string, it has been loading from the YAML file \"tests/invalid/invalid_leadership/00.yml\"", + "a_leadership.a_follower", + null + ] + ] ], "warnings": [] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_leadership_invalid_unknown/errors.json b/tests/invalid/results/invalid_leadership_invalid_unknown/errors.json index 057dbce..2538164 100644 --- a/tests/invalid/results/invalid_leadership_invalid_unknown/errors.json +++ b/tests/invalid/results/invalid_leadership_invalid_unknown/errors.json @@ -1,6 +1,12 @@ { "errors": [ - "the value \"1\" is an invalid string for \"a_leadership.a_follower\" (A follower) at index \"0\", which is not a string, it will be ignored when loading from the YAML file \"tests/invalid/invalid_leadership/00.yml\"" + [ + [ + "the value \"1\" is an invalid string, it's not a string, it has been loading from the YAML file \"tests/invalid/invalid_leadership/00.yml\"", + "a_leadership.a_follower", + null + ] + ] ], "warnings": [] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_leadership_unknown/errors.json b/tests/invalid/results/invalid_leadership_unknown/errors.json index c54dfb7..15dc351 100644 --- a/tests/invalid/results/invalid_leadership_unknown/errors.json +++ b/tests/invalid/results/invalid_leadership_unknown/errors.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "the value \"1\" is an invalid string for \"a_leadership.a_follower\" (A follower) at index \"0\", which is not a string, it will be ignored when loading from the YAML file \"tests/invalid/invalid_leadership/00.yml\"" + [ + [ + "the value \"1\" is an invalid string, it's not a string, it will be ignored when loading from the YAML file \"tests/invalid/invalid_leadership/00.yml\"", + "a_leadership.a_follower", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_multi/errors.json b/tests/invalid/results/invalid_multi/errors.json index 53d7ce8..eae8354 100644 --- a/tests/invalid/results/invalid_multi/errors.json +++ b/tests/invalid/results/invalid_multi/errors.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "the value \"oups\" is an invalid string for \"a_multi\" (A multi), which must be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi/00.yml\"" + [ + [ + "the value \"oups\" is an invalid string, it must be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi/00.yml\"", + "a_multi", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_multi2/errors.json b/tests/invalid/results/invalid_multi2/errors.json index e0810c6..5a6ce37 100644 --- a/tests/invalid/results/invalid_multi2/errors.json +++ b/tests/invalid/results/invalid_multi2/errors.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "the value \"[True]\" is an invalid boolean for \"a_family.a_boolean\" (A boolean), which must not be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"" + [ + [ + "the value \"[True]\" is an invalid boolean, it must not be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"", + "a_family.a_boolean", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_multi2_invalid/errors.json b/tests/invalid/results/invalid_multi2_invalid/errors.json index 0bd0558..7c6660c 100644 --- a/tests/invalid/results/invalid_multi2_invalid/errors.json +++ b/tests/invalid/results/invalid_multi2_invalid/errors.json @@ -1,6 +1,12 @@ { "errors": [ - "the value \"[True]\" is an invalid boolean for \"a_family.a_boolean\" (A boolean), which must not be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"" + [ + [ + "the value \"[True]\" is an invalid boolean, it must not be a list, it has been loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"", + "a_family.a_boolean", + null + ] + ] ], "warnings": [] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_multi2_invalid_unknown/errors.json b/tests/invalid/results/invalid_multi2_invalid_unknown/errors.json index 0bd0558..7c6660c 100644 --- a/tests/invalid/results/invalid_multi2_invalid_unknown/errors.json +++ b/tests/invalid/results/invalid_multi2_invalid_unknown/errors.json @@ -1,6 +1,12 @@ { "errors": [ - "the value \"[True]\" is an invalid boolean for \"a_family.a_boolean\" (A boolean), which must not be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"" + [ + [ + "the value \"[True]\" is an invalid boolean, it must not be a list, it has been loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"", + "a_family.a_boolean", + null + ] + ] ], "warnings": [] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_multi2_unknown/errors.json b/tests/invalid/results/invalid_multi2_unknown/errors.json index e0810c6..5a6ce37 100644 --- a/tests/invalid/results/invalid_multi2_unknown/errors.json +++ b/tests/invalid/results/invalid_multi2_unknown/errors.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "the value \"[True]\" is an invalid boolean for \"a_family.a_boolean\" (A boolean), which must not be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"" + [ + [ + "the value \"[True]\" is an invalid boolean, it must not be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"", + "a_family.a_boolean", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_multi_invalid/errors.json b/tests/invalid/results/invalid_multi_invalid/errors.json index f85a69d..20d7a21 100644 --- a/tests/invalid/results/invalid_multi_invalid/errors.json +++ b/tests/invalid/results/invalid_multi_invalid/errors.json @@ -1,6 +1,12 @@ { "errors": [ - "the value \"oups\" is an invalid string for \"a_multi\" (A multi), which must be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi/00.yml\"" + [ + [ + "the value \"oups\" is an invalid string, it must be a list, it has been loading from the YAML file \"tests/invalid/invalid_multi/00.yml\"", + "a_multi", + null + ] + ] ], "warnings": [] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_multi_invalid_unknown/errors.json b/tests/invalid/results/invalid_multi_invalid_unknown/errors.json index f85a69d..20d7a21 100644 --- a/tests/invalid/results/invalid_multi_invalid_unknown/errors.json +++ b/tests/invalid/results/invalid_multi_invalid_unknown/errors.json @@ -1,6 +1,12 @@ { "errors": [ - "the value \"oups\" is an invalid string for \"a_multi\" (A multi), which must be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi/00.yml\"" + [ + [ + "the value \"oups\" is an invalid string, it must be a list, it has been loading from the YAML file \"tests/invalid/invalid_multi/00.yml\"", + "a_multi", + null + ] + ] ], "warnings": [] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_multi_unknown/errors.json b/tests/invalid/results/invalid_multi_unknown/errors.json index 53d7ce8..eae8354 100644 --- a/tests/invalid/results/invalid_multi_unknown/errors.json +++ b/tests/invalid/results/invalid_multi_unknown/errors.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "the value \"oups\" is an invalid string for \"a_multi\" (A multi), which must be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi/00.yml\"" + [ + [ + "the value \"oups\" is an invalid string, it must be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi/00.yml\"", + "a_multi", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/invalid/results/invalid_unknown/errors.json b/tests/invalid/results/invalid_unknown/errors.json index 4d4453d..382de37 100644 --- a/tests/invalid/results/invalid_unknown/errors.json +++ b/tests/invalid/results/invalid_unknown/errors.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "the value \"oups\" is an invalid boolean for \"a_family.a_boolean\" (A boolean), invalid value, it will be ignored when loading from the YAML file \"tests/invalid/invalid/00.yml\"" + [ + [ + "the value \"oups\" is an invalid boolean, invalid value, it will be ignored when loading from the YAML file \"tests/invalid/invalid/00.yml\"", + "a_family.a_boolean", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/invalid/results/unknown2_invalid/errors.json b/tests/invalid/results/unknown2_invalid/errors.json index 9d61734..113ed4f 100644 --- a/tests/invalid/results/unknown2_invalid/errors.json +++ b/tests/invalid/results/unknown2_invalid/errors.json @@ -1,6 +1,6 @@ { "errors": [], "warnings": [ - "variable or family \"an_unkown_family\" does not exist, it will be ignored when loading from the YAML file \"tests/invalid/unknown2/00.yml\"" + "variable or family \"an_unkown_family\" does not exist, it has been loading from the YAML file \"tests/invalid/unknown2/00.yml\"" ] } \ No newline at end of file diff --git a/tests/invalid/results/unknown2_invalid_unknown/errors.json b/tests/invalid/results/unknown2_invalid_unknown/errors.json index 6128127..447c0f4 100644 --- a/tests/invalid/results/unknown2_invalid_unknown/errors.json +++ b/tests/invalid/results/unknown2_invalid_unknown/errors.json @@ -1,6 +1,6 @@ { "errors": [ - "variable or family \"an_unkown_family\" does not exist, it will be ignored when loading from the YAML file \"tests/invalid/unknown2/00.yml\"" + "variable or family \"an_unkown_family\" does not exist, it has been loading from the YAML file \"tests/invalid/unknown2/00.yml\"" ], "warnings": [] } \ No newline at end of file diff --git a/tests/invalid/results/unknown_invalid/errors.json b/tests/invalid/results/unknown_invalid/errors.json index 1d1b293..657ede0 100644 --- a/tests/invalid/results/unknown_invalid/errors.json +++ b/tests/invalid/results/unknown_invalid/errors.json @@ -1,6 +1,6 @@ { "errors": [], "warnings": [ - "variable or family \"a_family.unknown\" does not exist, it will be ignored when loading from the YAML file \"tests/invalid/unknown/00.yml\"" + "variable or family \"a_family.unknown\" does not exist, it has been loading from the YAML file \"tests/invalid/unknown/00.yml\"" ] } \ No newline at end of file diff --git a/tests/invalid/results/unknown_invalid_unknown/errors.json b/tests/invalid/results/unknown_invalid_unknown/errors.json index 9907841..2ab4105 100644 --- a/tests/invalid/results/unknown_invalid_unknown/errors.json +++ b/tests/invalid/results/unknown_invalid_unknown/errors.json @@ -1,6 +1,6 @@ { "errors": [ - "variable or family \"a_family.unknown\" does not exist, it will be ignored when loading from the YAML file \"tests/invalid/unknown/00.yml\"" + "variable or family \"a_family.unknown\" does not exist, it has been loading from the YAML file \"tests/invalid/unknown/00.yml\"" ], "warnings": [] } \ No newline at end of file diff --git a/tests/results/00_2default_calculated_params_permissive/errors/all.json b/tests/results/00_2default_calculated_params_permissive/errors/all.json index 5aa3abb..6bc4090 100644 --- a/tests/results/00_2default_calculated_params_permissive/errors/all.json +++ b/tests/results/00_2default_calculated_params_permissive/errors/all.json @@ -1,9 +1,33 @@ { "errors": [], "warnings": [ - "family \"rougail.leadership\" is hidden, \"rougail.leadership.var1\" (a first variable) will be ignored when loading from the YAML file \"tests/results/00_2default_calculated_params_permissive/file/all.yml\"", - "family \"rougail.leadership\" is hidden, \"rougail.leadership.var2\" (a first variable) at index \"0\" will be ignored when loading from the YAML file \"tests/results/00_2default_calculated_params_permissive/file/all.yml\"", - "index \"1\" is greater than the leadership length \"1\" for option \"rougail.leadership.var2\" (a first variable) in the YAML file \"tests/results/00_2default_calculated_params_permissive/file/all.yml\"", - "index \"2\" is greater than the leadership length \"1\" for option \"rougail.leadership.var2\" (a first variable) in the YAML file \"tests/results/00_2default_calculated_params_permissive/file/all.yml\"" + [ + [ + "family \"leadership\" has property hidden, so cannot access to \"var1\" (a first variable), it will be ignored when loading from the YAML file \"tests/results/00_2default_calculated_params_permissive/file/all.yml\"", + "rougail.leadership.var1", + null + ] + ], + [ + [ + "variable \"var2\" (a first variable) at index \"0\" is hidden, it will be ignored when loading from the YAML file \"tests/results/00_2default_calculated_params_permissive/file/all.yml\"", + "rougail.leadership.var2", + null + ] + ], + [ + [ + "variable \"var2\" (a first variable) at index \"1\" is hidden, it will be ignored when loading from the YAML file \"tests/results/00_2default_calculated_params_permissive/file/all.yml\"", + "rougail.leadership.var2", + null + ] + ], + [ + [ + "variable \"var2\" (a first variable) at index \"2\" is hidden, it will be ignored when loading from the YAML file \"tests/results/00_2default_calculated_params_permissive/file/all.yml\"", + "rougail.leadership.var2", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/00_9default_calculation/makedict/mandatories.json b/tests/results/00_9default_calculation/makedict/mandatories.json index 2b34a62..a5a3e6b 100644 --- a/tests/results/00_9default_calculation/makedict/mandatories.json +++ b/tests/results/00_9default_calculation/makedict/mandatories.json @@ -1,3 +1,3 @@ { - "rougail.variable": "string_1_True_None" + "rougail.variable": "string_1_True_" } diff --git a/tests/results/04_1auto_save_and_hidden/errors/all.json b/tests/results/04_1auto_save_and_hidden/errors/all.json index 28f8d41..cf9165f 100644 --- a/tests/results/04_1auto_save_and_hidden/errors/all.json +++ b/tests/results/04_1auto_save_and_hidden/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.var\" (autosave variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_1auto_save_and_hidden/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/04_1auto_save_and_hidden/file/all.yml\"", + "rougail.var", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_1default_calculation_hidden/errors/mandatories.json b/tests/results/04_1default_calculation_hidden/errors/mandatories.json index a1b2535..4ae3eba 100644 --- a/tests/results/04_1default_calculation_hidden/errors/mandatories.json +++ b/tests/results/04_1default_calculation_hidden/errors/mandatories.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.var2\" (a second variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden/file/mandatories.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden/file/mandatories.yml\"", + "rougail.var2", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_1default_calculation_hidden_2/errors/mandatories.json b/tests/results/04_1default_calculation_hidden_2/errors/mandatories.json index 1498aab..d5903fb 100644 --- a/tests/results/04_1default_calculation_hidden_2/errors/mandatories.json +++ b/tests/results/04_1default_calculation_hidden_2/errors/mandatories.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.var2\" (a second variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_2/file/mandatories.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_2/file/mandatories.yml\"", + "rougail.var2", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_1default_calculation_hidden_3/errors/all.json b/tests/results/04_1default_calculation_hidden_3/errors/all.json index 9902366..1ee763a 100644 --- a/tests/results/04_1default_calculation_hidden_3/errors/all.json +++ b/tests/results/04_1default_calculation_hidden_3/errors/all.json @@ -1,7 +1,19 @@ { "errors": [], "warnings": [ - "variable \"rougail.var1\" (a first variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_3/file/all.yml\"", - "variable \"rougail.var2\" (a second variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_3/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_3/file/all.yml\"", + "rougail.var1", + null + ] + ], + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_3/file/all.yml\"", + "rougail.var2", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_1default_calculation_hidden_3/errors/mandatories.json b/tests/results/04_1default_calculation_hidden_3/errors/mandatories.json index 484b490..2e69548 100644 --- a/tests/results/04_1default_calculation_hidden_3/errors/mandatories.json +++ b/tests/results/04_1default_calculation_hidden_3/errors/mandatories.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.var2\" (a second variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_3/file/mandatories.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_3/file/mandatories.yml\"", + "rougail.var2", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_1default_calculation_hidden_4/errors/all.json b/tests/results/04_1default_calculation_hidden_4/errors/all.json index 1c45369..f36817f 100644 --- a/tests/results/04_1default_calculation_hidden_4/errors/all.json +++ b/tests/results/04_1default_calculation_hidden_4/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.var1\" (a first variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_4/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_4/file/all.yml\"", + "rougail.var1", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_1default_calculation_hidden_5/errors/all.json b/tests/results/04_1default_calculation_hidden_5/errors/all.json index aa511e5..4d00cfb 100644 --- a/tests/results/04_1default_calculation_hidden_5/errors/all.json +++ b/tests/results/04_1default_calculation_hidden_5/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.var2\" (a second variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_5/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_5/file/all.yml\"", + "rougail.var2", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_1default_calculation_hidden_5/errors/mandatories.json b/tests/results/04_1default_calculation_hidden_5/errors/mandatories.json index 1594a38..b6b8d60 100644 --- a/tests/results/04_1default_calculation_hidden_5/errors/mandatories.json +++ b/tests/results/04_1default_calculation_hidden_5/errors/mandatories.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.var3\" (a third variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_5/file/mandatories.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_5/file/mandatories.yml\"", + "rougail.var3", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_1default_calculation_hidden_6/errors/all.json b/tests/results/04_1default_calculation_hidden_6/errors/all.json index d8dec7b..630928e 100644 --- a/tests/results/04_1default_calculation_hidden_6/errors/all.json +++ b/tests/results/04_1default_calculation_hidden_6/errors/all.json @@ -1,7 +1,19 @@ { "errors": [], "warnings": [ - "variable \"rougail.var2\" (a second variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_6/file/all.yml\"", - "variable \"rougail.var3\" (a third variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_6/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_6/file/all.yml\"", + "rougail.var2", + null + ] + ], + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_1default_calculation_hidden_6/file/all.yml\"", + "rougail.var3", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_boolean/errors/all.json b/tests/results/04_5disabled_calculation_boolean/errors/all.json index 50d411b..1b3b64a 100644 --- a/tests/results/04_5disabled_calculation_boolean/errors/all.json +++ b/tests/results/04_5disabled_calculation_boolean/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable2\" (a seconde variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_boolean/file/all.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_boolean/file/all.yml\"", + "rougail.variable2", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_boolean/errors/mandatories.json b/tests/results/04_5disabled_calculation_boolean/errors/mandatories.json index b8ff0be..3fe8a6e 100644 --- a/tests/results/04_5disabled_calculation_boolean/errors/mandatories.json +++ b/tests/results/04_5disabled_calculation_boolean/errors/mandatories.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable2\" (a seconde variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_boolean/file/mandatories.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_boolean/file/mandatories.yml\"", + "rougail.variable2", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_optional/errors/all.json b/tests/results/04_5disabled_calculation_optional/errors/all.json index d701370..307a459 100644 --- a/tests/results/04_5disabled_calculation_optional/errors/all.json +++ b/tests/results/04_5disabled_calculation_optional/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.var1\" (a first variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_optional/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_optional/file/all.yml\"", + "rougail.var1", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_optional_default/errors/all.json b/tests/results/04_5disabled_calculation_optional_default/errors/all.json index 206c9e7..099547d 100644 --- a/tests/results/04_5disabled_calculation_optional_default/errors/all.json +++ b/tests/results/04_5disabled_calculation_optional_default/errors/all.json @@ -1,8 +1,26 @@ { "errors": [], "warnings": [ - "variable \"rougail.var2\" (a first variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_optional_default/file/all.yml\"", - "variable \"rougail.var3\" (a second variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_optional_default/file/all.yml\"", - "variable \"rougail.var4\" (a forth variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_optional_default/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_optional_default/file/all.yml\"", + "rougail.var2", + null + ] + ], + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_optional_default/file/all.yml\"", + "rougail.var3", + null + ] + ], + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_optional_default/file/all.yml\"", + "rougail.var4", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable/errors/all.json b/tests/results/04_5disabled_calculation_variable/errors/all.json index 35a73d5..41120bb 100644 --- a/tests/results/04_5disabled_calculation_variable/errors/all.json +++ b/tests/results/04_5disabled_calculation_variable/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable/file/all.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable/file/all.yml\"", + "rougail.variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable10/errors/all.json b/tests/results/04_5disabled_calculation_variable10/errors/all.json index 793a3aa..8193186 100644 --- a/tests/results/04_5disabled_calculation_variable10/errors/all.json +++ b/tests/results/04_5disabled_calculation_variable10/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable10/file/all.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable10/file/all.yml\"", + "rougail.variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable10/errors/mandatories.json b/tests/results/04_5disabled_calculation_variable10/errors/mandatories.json index a74cdaa..5966ed2 100644 --- a/tests/results/04_5disabled_calculation_variable10/errors/mandatories.json +++ b/tests/results/04_5disabled_calculation_variable10/errors/mandatories.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable10/file/mandatories.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable10/file/mandatories.yml\"", + "rougail.variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable2/errors/all.json b/tests/results/04_5disabled_calculation_variable2/errors/all.json index f86dadf..92c3b80 100644 --- a/tests/results/04_5disabled_calculation_variable2/errors/all.json +++ b/tests/results/04_5disabled_calculation_variable2/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable2/file/all.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable2/file/all.yml\"", + "rougail.variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable2/errors/mandatories.json b/tests/results/04_5disabled_calculation_variable2/errors/mandatories.json index 8900ce6..2395d63 100644 --- a/tests/results/04_5disabled_calculation_variable2/errors/mandatories.json +++ b/tests/results/04_5disabled_calculation_variable2/errors/mandatories.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable2/file/mandatories.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable2/file/mandatories.yml\"", + "rougail.variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable3/errors/mandatories.json b/tests/results/04_5disabled_calculation_variable3/errors/mandatories.json index 042297c..c234ecd 100644 --- a/tests/results/04_5disabled_calculation_variable3/errors/mandatories.json +++ b/tests/results/04_5disabled_calculation_variable3/errors/mandatories.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable3/file/mandatories.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable3/file/mandatories.yml\"", + "rougail.variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable4/errors/all.json b/tests/results/04_5disabled_calculation_variable4/errors/all.json index d12ae93..a05915b 100644 --- a/tests/results/04_5disabled_calculation_variable4/errors/all.json +++ b/tests/results/04_5disabled_calculation_variable4/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable4/file/all.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable4/file/all.yml\"", + "rougail.variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable5/errors/all.json b/tests/results/04_5disabled_calculation_variable5/errors/all.json index b3a69b9..c27e61a 100644 --- a/tests/results/04_5disabled_calculation_variable5/errors/all.json +++ b/tests/results/04_5disabled_calculation_variable5/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.condition\" (a condition) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable5/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable5/file/all.yml\"", + "rougail.condition", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable6/errors/all.json b/tests/results/04_5disabled_calculation_variable6/errors/all.json index f5d90c2..5a050a4 100644 --- a/tests/results/04_5disabled_calculation_variable6/errors/all.json +++ b/tests/results/04_5disabled_calculation_variable6/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.condition\" (a condition) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable6/file/all.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable6/file/all.yml\"", + "rougail.condition", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable7/errors/all.json b/tests/results/04_5disabled_calculation_variable7/errors/all.json index 7f85190..e060d98 100644 --- a/tests/results/04_5disabled_calculation_variable7/errors/all.json +++ b/tests/results/04_5disabled_calculation_variable7/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable7/file/all.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable7/file/all.yml\"", + "rougail.variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable8/errors/all.json b/tests/results/04_5disabled_calculation_variable8/errors/all.json index 86cc705..b144fb8 100644 --- a/tests/results/04_5disabled_calculation_variable8/errors/all.json +++ b/tests/results/04_5disabled_calculation_variable8/errors/all.json @@ -1,7 +1,19 @@ { "errors": [], "warnings": [ - "variable \"rougail.condition\" (a condition) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable8/file/all.yml\"", - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable8/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable8/file/all.yml\"", + "rougail.condition", + null + ] + ], + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable8/file/all.yml\"", + "rougail.variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable8/errors/mandatories.json b/tests/results/04_5disabled_calculation_variable8/errors/mandatories.json index 22dc508..f638ece 100644 --- a/tests/results/04_5disabled_calculation_variable8/errors/mandatories.json +++ b/tests/results/04_5disabled_calculation_variable8/errors/mandatories.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable8/file/mandatories.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable8/file/mandatories.yml\"", + "rougail.variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable9/errors/all.json b/tests/results/04_5disabled_calculation_variable9/errors/all.json index 243e5f3..20d80e2 100644 --- a/tests/results/04_5disabled_calculation_variable9/errors/all.json +++ b/tests/results/04_5disabled_calculation_variable9/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.condition\" (a condition) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable9/file/all.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable9/file/all.yml\"", + "rougail.condition", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5disabled_calculation_variable_multi/errors/all.json b/tests/results/04_5disabled_calculation_variable_multi/errors/all.json index 4ff750c..70778d4 100644 --- a/tests/results/04_5disabled_calculation_variable_multi/errors/all.json +++ b/tests/results/04_5disabled_calculation_variable_multi/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable_multi/file/all.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable_multi/file/all.yml\"", + "rougail.variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/04_5hidden_calculation2/errors/all.json b/tests/results/04_5hidden_calculation2/errors/all.json index 08464ce..e79bac5 100644 --- a/tests/results/04_5hidden_calculation2/errors/all.json +++ b/tests/results/04_5hidden_calculation2/errors/all.json @@ -1,7 +1,19 @@ { "errors": [], "warnings": [ - "variable \"rougail.var1\" (a first variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5hidden_calculation2/file/all.yml\"", - "variable \"rougail.var2\" (a second variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5hidden_calculation2/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/04_5hidden_calculation2/file/all.yml\"", + "rougail.var1", + null + ] + ], + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/04_5hidden_calculation2/file/all.yml\"", + "rougail.var2", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/16_2family_redefine_calculation/errors/all.json b/tests/results/16_2family_redefine_calculation/errors/all.json index cd65eb6..1f95968 100644 --- a/tests/results/16_2family_redefine_calculation/errors/all.json +++ b/tests/results/16_2family_redefine_calculation/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "family \"rougail.family\" is disabled, \"rougail.family.var1\" will be ignored when loading from the YAML file \"tests/results/16_2family_redefine_calculation/file/all.yml\"" + [ + [ + "family \"family\" has property disabled, so cannot access to \"var1\", it will be ignored when loading from the YAML file \"tests/results/16_2family_redefine_calculation/file/all.yml\"", + "rougail.family.var1", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/16_2family_redefine_calculation/errors/mandatories.json b/tests/results/16_2family_redefine_calculation/errors/mandatories.json index 4279a3c..0a1dbe6 100644 --- a/tests/results/16_2family_redefine_calculation/errors/mandatories.json +++ b/tests/results/16_2family_redefine_calculation/errors/mandatories.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "family \"rougail.family\" is disabled, \"rougail.family.var1\" will be ignored when loading from the YAML file \"tests/results/16_2family_redefine_calculation/file/mandatories.yml\"" + [ + [ + "family \"family\" has property disabled, so cannot access to \"var1\", it will be ignored when loading from the YAML file \"tests/results/16_2family_redefine_calculation/file/mandatories.yml\"", + "rougail.family.var1", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/16_2family_redefine_disabled/errors/all.json b/tests/results/16_2family_redefine_disabled/errors/all.json index 96f521b..797ce7d 100644 --- a/tests/results/16_2family_redefine_disabled/errors/all.json +++ b/tests/results/16_2family_redefine_disabled/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "family \"rougail.family\" is disabled, \"rougail.family.var1\" will be ignored when loading from the YAML file \"tests/results/16_2family_redefine_disabled/file/all.yml\"" + [ + [ + "family \"family\" has property disabled, so cannot access to \"var1\", it will be ignored when loading from the YAML file \"tests/results/16_2family_redefine_disabled/file/all.yml\"", + "rougail.family.var1", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/16_2family_redefine_disabled/errors/mandatories.json b/tests/results/16_2family_redefine_disabled/errors/mandatories.json index 045a841..5e9afaa 100644 --- a/tests/results/16_2family_redefine_disabled/errors/mandatories.json +++ b/tests/results/16_2family_redefine_disabled/errors/mandatories.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "family \"rougail.family\" is disabled, \"rougail.family.var1\" will be ignored when loading from the YAML file \"tests/results/16_2family_redefine_disabled/file/mandatories.yml\"" + [ + [ + "family \"family\" has property disabled, so cannot access to \"var1\", it will be ignored when loading from the YAML file \"tests/results/16_2family_redefine_disabled/file/mandatories.yml\"", + "rougail.family.var1", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/16_5exists_redefine/errors/all.json b/tests/results/16_5exists_redefine/errors/all.json index a65b35f..afccec9 100644 --- a/tests/results/16_5exists_redefine/errors/all.json +++ b/tests/results/16_5exists_redefine/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.var1\" (a first variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/16_5exists_redefine/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/16_5exists_redefine/file/all.yml\"", + "rougail.var1", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/16_5redefine_hidden/errors/all.json b/tests/results/16_5redefine_hidden/errors/all.json index 5d2c70e..f047996 100644 --- a/tests/results/16_5redefine_hidden/errors/all.json +++ b/tests/results/16_5redefine_hidden/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/16_5redefine_hidden/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/16_5redefine_hidden/file/all.yml\"", + "rougail.variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/17_5redefine_leadership/errors/all.json b/tests/results/17_5redefine_leadership/errors/all.json index 88f7286..2f094c2 100644 --- a/tests/results/17_5redefine_leadership/errors/all.json +++ b/tests/results/17_5redefine_leadership/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "family \"rougail.leader\" (a leadership) is hidden, \"rougail.leader.leader\" (a leader) will be ignored when loading from the YAML file \"tests/results/17_5redefine_leadership/file/all.yml\"" + [ + [ + "family \"leader\" (a leadership) has property hidden, so cannot access to \"leader\" (a leader), it will be ignored when loading from the YAML file \"tests/results/17_5redefine_leadership/file/all.yml\"", + "rougail.leader.leader", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/20_0family_underscore/errors/all.json b/tests/results/20_0family_underscore/errors/all.json index 0704517..d55f77b 100644 --- a/tests/results/20_0family_underscore/errors/all.json +++ b/tests/results/20_0family_underscore/errors/all.json @@ -1,11 +1,47 @@ { "errors": [], "warnings": [ - "family \"rougail.my_family\" (This is a great family) is disabled and hidden, \"rougail.my_family.type.my_variable\" will be ignored when loading from the YAML file \"tests/results/20_0family_underscore/file/all.yml\"", - "family \"rougail.my_family\" (This is a great family) is disabled and hidden, \"rougail.my_family.description.my_variable\" will be ignored when loading from the YAML file \"tests/results/20_0family_underscore/file/all.yml\"", - "family \"rougail.my_family\" (This is a great family) is disabled and hidden, \"rougail.my_family.help.my_variable\" will be ignored when loading from the YAML file \"tests/results/20_0family_underscore/file/all.yml\"", - "family \"rougail.my_family\" (This is a great family) is disabled and hidden, \"rougail.my_family.mode.my_variable\" will be ignored when loading from the YAML file \"tests/results/20_0family_underscore/file/all.yml\"", - "family \"rougail.my_family\" (This is a great family) is disabled and hidden, \"rougail.my_family.hidden.my_variable\" will be ignored when loading from the YAML file \"tests/results/20_0family_underscore/file/all.yml\"", - "family \"rougail.my_family\" (This is a great family) is disabled and hidden, \"rougail.my_family.disabled.my_variable\" will be ignored when loading from the YAML file \"tests/results/20_0family_underscore/file/all.yml\"" + [ + [ + "family \"my_family\" (This is a great family) has property disabled and hidden, so cannot access to \"my_variable\", it will be ignored when loading from the YAML file \"tests/results/20_0family_underscore/file/all.yml\"", + "rougail.my_family.type.my_variable", + null + ] + ], + [ + [ + "family \"my_family\" (This is a great family) has property disabled and hidden, so cannot access to \"my_variable\", it will be ignored when loading from the YAML file \"tests/results/20_0family_underscore/file/all.yml\"", + "rougail.my_family.description.my_variable", + null + ] + ], + [ + [ + "family \"my_family\" (This is a great family) has property disabled and hidden, so cannot access to \"my_variable\", it will be ignored when loading from the YAML file \"tests/results/20_0family_underscore/file/all.yml\"", + "rougail.my_family.help.my_variable", + null + ] + ], + [ + [ + "family \"my_family\" (This is a great family) has property disabled and hidden, so cannot access to \"my_variable\", it will be ignored when loading from the YAML file \"tests/results/20_0family_underscore/file/all.yml\"", + "rougail.my_family.mode.my_variable", + null + ] + ], + [ + [ + "family \"my_family\" (This is a great family) has property disabled and hidden, so cannot access to \"my_variable\", it will be ignored when loading from the YAML file \"tests/results/20_0family_underscore/file/all.yml\"", + "rougail.my_family.hidden.my_variable", + null + ] + ], + [ + [ + "family \"my_family\" (This is a great family) has property disabled and hidden, so cannot access to \"my_variable\", it will be ignored when loading from the YAML file \"tests/results/20_0family_underscore/file/all.yml\"", + "rougail.my_family.disabled.my_variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/24_0family_hidden_condition_variable_sub_family/errors/all.json b/tests/results/24_0family_hidden_condition_variable_sub_family/errors/all.json index ba9b80c..4c544fd 100644 --- a/tests/results/24_0family_hidden_condition_variable_sub_family/errors/all.json +++ b/tests/results/24_0family_hidden_condition_variable_sub_family/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "family \"rougail.family\" (possibly hidden family) is hidden, \"rougail.family.subfamily.var1\" (a variable) will be ignored when loading from the YAML file \"tests/results/24_0family_hidden_condition_variable_sub_family/file/all.yml\"" + [ + [ + "family \"family\" (possibly hidden family) has property hidden, so cannot access to \"var1\" (a variable), it will be ignored when loading from the YAML file \"tests/results/24_0family_hidden_condition_variable_sub_family/file/all.yml\"", + "rougail.family.subfamily.var1", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/24_0family_hidden_condition_with_variable/errors/all.json b/tests/results/24_0family_hidden_condition_with_variable/errors/all.json index ae74bd8..c757726 100644 --- a/tests/results/24_0family_hidden_condition_with_variable/errors/all.json +++ b/tests/results/24_0family_hidden_condition_with_variable/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.family.variable\" (a variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/24_0family_hidden_condition_with_variable/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/24_0family_hidden_condition_with_variable/file/all.yml\"", + "rougail.family.variable", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/24_family_disabled_var_hidden/errors/all.json b/tests/results/24_family_disabled_var_hidden/errors/all.json index e20a719..e818bd1 100644 --- a/tests/results/24_family_disabled_var_hidden/errors/all.json +++ b/tests/results/24_family_disabled_var_hidden/errors/all.json @@ -1,7 +1,19 @@ { "errors": [], "warnings": [ - "family \"rougail.family\" is disabled, \"rougail.family.var1\" (A description) will be ignored when loading from the YAML file \"tests/results/24_family_disabled_var_hidden/file/all.yml\"", - "family \"rougail.family\" is disabled, \"rougail.family.var2\" (A description) will be ignored when loading from the YAML file \"tests/results/24_family_disabled_var_hidden/file/all.yml\"" + [ + [ + "family \"family\" has property disabled, so cannot access to \"var1\" (A description), it will be ignored when loading from the YAML file \"tests/results/24_family_disabled_var_hidden/file/all.yml\"", + "rougail.family.var1", + null + ] + ], + [ + [ + "family \"family\" has property disabled, so cannot access to \"var2\" (A description), it will be ignored when loading from the YAML file \"tests/results/24_family_disabled_var_hidden/file/all.yml\"", + "rougail.family.var2", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/24_family_disabled_var_hidden/errors/mandatories.json b/tests/results/24_family_disabled_var_hidden/errors/mandatories.json index f378a7f..8ffc4c7 100644 --- a/tests/results/24_family_disabled_var_hidden/errors/mandatories.json +++ b/tests/results/24_family_disabled_var_hidden/errors/mandatories.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "family \"rougail.family\" is disabled, \"rougail.family.var2\" (A description) will be ignored when loading from the YAML file \"tests/results/24_family_disabled_var_hidden/file/mandatories.yml\"" + [ + [ + "family \"family\" has property disabled, so cannot access to \"var2\" (A description), it will be ignored when loading from the YAML file \"tests/results/24_family_disabled_var_hidden/file/mandatories.yml\"", + "rougail.family.var2", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/44_0leadership_hidden/errors/all.json b/tests/results/44_0leadership_hidden/errors/all.json index 019fd7d..44c3420 100644 --- a/tests/results/44_0leadership_hidden/errors/all.json +++ b/tests/results/44_0leadership_hidden/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "family \"rougail.leader\" (a leadership) is hidden, \"rougail.leader.leader\" (a leader) will be ignored when loading from the YAML file \"tests/results/44_0leadership_hidden/file/all.yml\"" + [ + [ + "family \"leader\" (a leadership) has property hidden, so cannot access to \"leader\" (a leader), it will be ignored when loading from the YAML file \"tests/results/44_0leadership_hidden/file/all.yml\"", + "rougail.leader.leader", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/44_0leadership_leader_hidden/errors/all.json b/tests/results/44_0leadership_leader_hidden/errors/all.json index 5b9fb41..4d7fb4c 100644 --- a/tests/results/44_0leadership_leader_hidden/errors/all.json +++ b/tests/results/44_0leadership_leader_hidden/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "family \"rougail.leader\" (a leadership) is hidden, \"rougail.leader.leader\" (a leader) will be ignored when loading from the YAML file \"tests/results/44_0leadership_leader_hidden/file/all.yml\"" + [ + [ + "family \"leader\" (a leadership) has property hidden, so cannot access to \"leader\" (a leader), it will be ignored when loading from the YAML file \"tests/results/44_0leadership_leader_hidden/file/all.yml\"", + "rougail.leader.leader", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/44_1leadership_append_hidden_follower/errors/all.json b/tests/results/44_1leadership_append_hidden_follower/errors/all.json index 3ab4cf6..1d48cdb 100644 --- a/tests/results/44_1leadership_append_hidden_follower/errors/all.json +++ b/tests/results/44_1leadership_append_hidden_follower/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "family \"rougail.leader\" (a leadership) is hidden, \"rougail.leader.leader\" (a leader) will be ignored when loading from the YAML file \"tests/results/44_1leadership_append_hidden_follower/file/all.yml\"" + [ + [ + "family \"leader\" (a leadership) has property hidden, so cannot access to \"leader\" (a leader), it will be ignored when loading from the YAML file \"tests/results/44_1leadership_append_hidden_follower/file/all.yml\"", + "rougail.leader.leader", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/44_4disabled_calcultion_follower_index/errors/all.json b/tests/results/44_4disabled_calcultion_follower_index/errors/all.json index 52d3430..89513f1 100644 --- a/tests/results/44_4disabled_calcultion_follower_index/errors/all.json +++ b/tests/results/44_4disabled_calcultion_follower_index/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.leadership.follower\" (a follower) at index \"0\" is disabled, it will be ignored when loading from the YAML file \"tests/results/44_4disabled_calcultion_follower_index/file/all.yml\"" + [ + [ + "variable \"follower\" (a follower) at index \"0\" is disabled, it will be ignored when loading from the YAML file \"tests/results/44_4disabled_calcultion_follower_index/file/all.yml\"", + "rougail.leadership.follower", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/44_6leadership_follower_disabled_calculation/errors/mandatories.json b/tests/results/44_6leadership_follower_disabled_calculation/errors/mandatories.json index c6a557c..e236a70 100644 --- a/tests/results/44_6leadership_follower_disabled_calculation/errors/mandatories.json +++ b/tests/results/44_6leadership_follower_disabled_calculation/errors/mandatories.json @@ -1,8 +1,26 @@ { "errors": [], "warnings": [ - "variable \"rougail.leader.follower\" (a follower) at index \"0\" is disabled, it will be ignored when loading from the YAML file \"tests/results/44_6leadership_follower_disabled_calculation/file/mandatories.yml\"", - "variable \"rougail.leader.follower\" (a follower) at index \"1\" is disabled, it will be ignored when loading from the YAML file \"tests/results/44_6leadership_follower_disabled_calculation/file/mandatories.yml\"", - "variable \"rougail.leader.follower\" (a follower) at index \"2\" is disabled, it will be ignored when loading from the YAML file \"tests/results/44_6leadership_follower_disabled_calculation/file/mandatories.yml\"" + [ + [ + "variable \"follower\" (a follower) at index \"0\" is disabled, it will be ignored when loading from the YAML file \"tests/results/44_6leadership_follower_disabled_calculation/file/mandatories.yml\"", + "rougail.leader.follower", + null + ] + ], + [ + [ + "variable \"follower\" (a follower) at index \"1\" is disabled, it will be ignored when loading from the YAML file \"tests/results/44_6leadership_follower_disabled_calculation/file/mandatories.yml\"", + "rougail.leader.follower", + null + ] + ], + [ + [ + "variable \"follower\" (a follower) at index \"2\" is disabled, it will be ignored when loading from the YAML file \"tests/results/44_6leadership_follower_disabled_calculation/file/mandatories.yml\"", + "rougail.leader.follower", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/60_0family_dynamic_source_hidden/errors/all.json b/tests/results/60_0family_dynamic_source_hidden/errors/all.json index 6249c8b..3f27f2d 100644 --- a/tests/results/60_0family_dynamic_source_hidden/errors/all.json +++ b/tests/results/60_0family_dynamic_source_hidden/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.var\" (A suffix variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/60_0family_dynamic_source_hidden/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/60_0family_dynamic_source_hidden/file/all.yml\"", + "rougail.var", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/60_0family_hidden/errors/all.json b/tests/results/60_0family_hidden/errors/all.json index 444cbf0..c398473 100644 --- a/tests/results/60_0family_hidden/errors/all.json +++ b/tests/results/60_0family_hidden/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "family \"rougail.family\" (a family) is hidden, \"rougail.family.var\" (a variable) will be ignored when loading from the YAML file \"tests/results/60_0family_hidden/file/all.yml\"" + [ + [ + "family \"family\" (a family) has property hidden, so cannot access to \"var\" (a variable), it will be ignored when loading from the YAML file \"tests/results/60_0family_hidden/file/all.yml\"", + "rougail.family.var", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/60_5family_dynamic_calc_description/errors/mandatories.json b/tests/results/60_5family_dynamic_calc_description/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/60_5family_dynamic_calc_description/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/60_5family_dynamic_calc_description/makedict/mandatories.json b/tests/results/60_5family_dynamic_calc_description/makedict/mandatories.json new file mode 100644 index 0000000..9fb7364 --- /dev/null +++ b/tests/results/60_5family_dynamic_calc_description/makedict/mandatories.json @@ -0,0 +1,9 @@ +{ + "rougail.dynval1.var": "string1", + "rougail.dynval2.var": "string1", + "rougail.var1": "string1", + "rougail.var2": [ + "string1", + "string1" + ] +} diff --git a/tests/results/60_5family_dynamic_calc_suffix_disabled/errors/all.json b/tests/results/60_5family_dynamic_calc_suffix_disabled/errors/all.json index 6121520..b071855 100644 --- a/tests/results/60_5family_dynamic_calc_suffix_disabled/errors/all.json +++ b/tests/results/60_5family_dynamic_calc_suffix_disabled/errors/all.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.dynval1.var\" (A dynamic variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_disabled/file/all.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_disabled/file/all.yml\"", + "rougail.dynval1.var", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/60_5family_dynamic_calc_suffix_disabled/errors/mandatories.json b/tests/results/60_5family_dynamic_calc_suffix_disabled/errors/mandatories.json index 4a3ac5e..7465796 100644 --- a/tests/results/60_5family_dynamic_calc_suffix_disabled/errors/mandatories.json +++ b/tests/results/60_5family_dynamic_calc_suffix_disabled/errors/mandatories.json @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable \"rougail.dynval1.var\" (A dynamic variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_disabled/file/mandatories.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_disabled/file/mandatories.yml\"", + "rougail.dynval1.var", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/60_5family_dynamic_calc_suffix_disabled2/errors/all.json b/tests/results/60_5family_dynamic_calc_suffix_disabled2/errors/all.json index 7131b59..09e5763 100644 --- a/tests/results/60_5family_dynamic_calc_suffix_disabled2/errors/all.json +++ b/tests/results/60_5family_dynamic_calc_suffix_disabled2/errors/all.json @@ -1,7 +1,19 @@ { "errors": [], "warnings": [ - "variable \"rougail.dynval1.var\" (A dynamic variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_disabled2/file/all.yml\"", - "variable \"rougail.dynval2.var\" (A dynamic variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_disabled2/file/all.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_disabled2/file/all.yml\"", + "rougail.dynval1.var", + null + ] + ], + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_disabled2/file/all.yml\"", + "rougail.dynval2.var", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/60_5family_dynamic_calc_suffix_hidden/errors/all.json b/tests/results/60_5family_dynamic_calc_suffix_hidden/errors/all.json index 6ee4112..9259afc 100644 --- a/tests/results/60_5family_dynamic_calc_suffix_hidden/errors/all.json +++ b/tests/results/60_5family_dynamic_calc_suffix_hidden/errors/all.json @@ -1,7 +1,19 @@ { "errors": [], "warnings": [ - "variable \"rougail.dynval1.var\" (A dynamic variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_hidden/file/all.yml\"", - "variable \"rougail.dynval2.var\" (A dynamic variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_hidden/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_hidden/file/all.yml\"", + "rougail.dynval1.var", + null + ] + ], + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_hidden/file/all.yml\"", + "rougail.dynval2.var", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/60_5family_dynamic_calc_suffix_hidden_boolean/errors/all.json b/tests/results/60_5family_dynamic_calc_suffix_hidden_boolean/errors/all.json index d420019..cad3218 100644 --- a/tests/results/60_5family_dynamic_calc_suffix_hidden_boolean/errors/all.json +++ b/tests/results/60_5family_dynamic_calc_suffix_hidden_boolean/errors/all.json @@ -1,7 +1,19 @@ { "errors": [], "warnings": [ - "variable \"rougail.dynval1.var\" (A dynamic variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_hidden_boolean/file/all.yml\"", - "variable \"rougail.dynval2.var\" (A dynamic variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_hidden_boolean/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_hidden_boolean/file/all.yml\"", + "rougail.dynval1.var", + null + ] + ], + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_hidden_boolean/file/all.yml\"", + "rougail.dynval2.var", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/60_5family_dynamic_calc_suffix_hidden_multi/errors/all.json b/tests/results/60_5family_dynamic_calc_suffix_hidden_multi/errors/all.json index 5861af6..6559c9f 100644 --- a/tests/results/60_5family_dynamic_calc_suffix_hidden_multi/errors/all.json +++ b/tests/results/60_5family_dynamic_calc_suffix_hidden_multi/errors/all.json @@ -1,7 +1,19 @@ { "errors": [], "warnings": [ - "variable \"rougail.dynval1.var\" (A dynamic variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_hidden_multi/file/all.yml\"", - "variable \"rougail.dynval2.var\" (A dynamic variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_hidden_multi/file/all.yml\"" + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_hidden_multi/file/all.yml\"", + "rougail.dynval1.var", + null + ] + ], + [ + [ + "variable has property hidden, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_calc_suffix_hidden_multi/file/all.yml\"", + "rougail.dynval2.var", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/60_5family_dynamic_hidden_suffix/errors/all.json b/tests/results/60_5family_dynamic_hidden_suffix/errors/all.json index 4c73621..bc3d729 100644 --- a/tests/results/60_5family_dynamic_hidden_suffix/errors/all.json +++ b/tests/results/60_5family_dynamic_hidden_suffix/errors/all.json @@ -1,7 +1,19 @@ { "errors": [], "warnings": [ - "family \"rougail.dynval2\" (a dynamic family) is hidden, \"rougail.dynval2.var\" (a variable) will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_hidden_suffix/file/all.yml\"", - "family \"rougail.dynval2\" (a dynamic family) is hidden, \"rougail.dynval2.family.var\" (a new variable) will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_hidden_suffix/file/all.yml\"" + [ + [ + "family \"dynval2\" (a dynamic family) has property hidden, so cannot access to \"var\" (a variable), it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_hidden_suffix/file/all.yml\"", + "rougail.dynval2.var", + null + ] + ], + [ + [ + "family \"dynval2\" (a dynamic family) has property hidden, so cannot access to \"var\" (a new variable), it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_hidden_suffix/file/all.yml\"", + "rougail.dynval2.family.var", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/results/60_5family_dynamic_unknown_suffix/errors/all.json b/tests/results/60_5family_dynamic_unknown_suffix/errors/all.json index e8d359b..242792e 100644 --- a/tests/results/60_5family_dynamic_unknown_suffix/errors/all.json +++ b/tests/results/60_5family_dynamic_unknown_suffix/errors/all.json @@ -1,7 +1,19 @@ { "errors": [], "warnings": [ - "variable \"rougail.val1_dyn.var4\" (a variable 4) is disabled, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_unknown_suffix/file/all.yml\"", - "variable \"rougail.val2_dyn.var4\" (a variable 4) is disabled, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_unknown_suffix/file/all.yml\"" + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_unknown_suffix/file/all.yml\"", + "rougail.val1_dyn.var4", + null + ] + ], + [ + [ + "variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/60_5family_dynamic_unknown_suffix/file/all.yml\"", + "rougail.val2_dyn.var4", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/test_invalid.py b/tests/test_invalid.py index 0c1621d..1169488 100644 --- a/tests/test_invalid.py +++ b/tests/test_invalid.py @@ -12,18 +12,22 @@ def _test_invalid_no_error(filename): rougailconfig['yaml.filename'] = [f"tests/invalid/{filename}"] rougail = Rougail(rougailconfig) config = rougail.run() - for invalid_user_datas_error in [False, True]: - if invalid_user_datas_error: + for invalid_user_data_error in [False, True]: + if invalid_user_data_error: ifilename = f"{filename}_invalid" else: ifilename = filename - for unknown_user_datas_error in [False, True]: - if unknown_user_datas_error: + for unknown_user_data_error in [False, True]: + if unknown_user_data_error: ufilename = f"{ifilename}_unknown" else: ufilename = ifilename generated_user_data = RougailUserDataYaml(config, rougailconfig=rougailconfig).run() - errors = rougail.user_datas(generated_user_data, invalid_user_datas_error=invalid_user_datas_error, unknown_user_datas_error=unknown_user_datas_error) + errors = rougail.user_data(generated_user_data, invalid_user_data_error=invalid_user_data_error, unknown_user_data_error=unknown_user_data_error) + for l, data in errors.items(): + for i, d in enumerate(data): + if isinstance(d, dict): + data[i] = [[l, v.path, v.index] for l, v in d.items()] #expected output expected_filename = Path('tests') / 'invalid' / 'results' / ufilename / "errors.json" if not expected_filename.is_file(): diff --git a/tests/test_load.py b/tests/test_load.py index aeeb7e9..142f96d 100644 --- a/tests/test_load.py +++ b/tests/test_load.py @@ -60,7 +60,11 @@ def _test_structural_files(test_dir, namespace, ext, *, level, need_exclude=Fals ################################## # loads variables in the tiramisu config generated_user_data = RougailUserData(config, rougailconfig=rougailconfig).run() - errors = rougail.user_datas(generated_user_data) + errors = rougail.user_data(generated_user_data) + for l, data in errors.items(): + for i, d in enumerate(data): + if isinstance(d, dict): + data[i] = [[l, v.path, v.index] for l, v in d.items()] #expected output expected_filename = Path('tests') / 'results' / test_dir.name / 'makedict' / f'{level}.json' with expected_filename.open() as json_file: @@ -130,7 +134,7 @@ def test_errors(): rougail = Rougail(rougailconfig) config = rougail.run() generated_user_data = RougailUserData(config, rougailconfig=rougailconfig).run() - errors = rougail.user_datas(generated_user_data) + errors = rougail.user_data(generated_user_data) assert errors == {'errors': [], 'warnings': [ 'cannot load variable path "dynVal1.var", the identifier "Val1" is not ' 'valid in the YAML file ' @@ -150,7 +154,7 @@ def test_errors_2(): rougail = Rougail(rougailconfig) config = rougail.run() generated_user_data = RougailUserData(config, rougailconfig=rougailconfig).run() - errors = rougail.user_datas(generated_user_data) + errors = rougail.user_data(generated_user_data) assert errors == {'errors': [], 'warnings': [ 'cannot load variable path "dynVal1.var", the identifier "Val1" is not ' 'valid in the YAML file ' @@ -182,7 +186,11 @@ def test_structural_files_error(test_file_error): ################################## # loads variables in the tiramisu config generated_user_data = RougailUserData(config, rougailconfig=rougailconfig).run() - errors = rougail.user_datas(generated_user_data) + errors = rougail.user_data(generated_user_data) + for l, data in errors.items(): + for i, d in enumerate(data): + if isinstance(d, dict): + data[i] = [[l, v.path, v.index] for l, v in d.items()] errors_file = test_file_error.parent.parent / "results" / test_file_error.name if not errors_file.is_file(): errors_file.parent.mkdir(parents=True, exist_ok=True) @@ -204,7 +212,7 @@ def test_structural_files_directory(): ################################## # loads variables in the tiramisu config generated_user_data = RougailUserData(config, rougailconfig=rougailconfig).run() - rougail.user_datas(generated_user_data) + rougail.user_data(generated_user_data) config.property.read_only() data = dict(config_to_dict(config.value.get())) data_file = test_dir / "result.txt" @@ -225,7 +233,7 @@ def test_secret_all(): rougail = Rougail(rougailconfig) config = rougail.run() user_data = RougailUserData(config, rougailconfig=rougailconfig).run() - errors = rougail.user_datas(user_data) + errors = rougail.user_data(user_data) assert errors == {'errors': [], 'warnings': []} config_dict = dict(config_to_dict(config.value.get())) assert config_dict == {'secret1': "my_password", 'secret2': 'value'} @@ -240,8 +248,12 @@ def test_secret_none(): rougail = Rougail(rougailconfig) config = rougail.run() user_data = RougailUserData(config, rougailconfig=rougailconfig).run() - errors = rougail.user_datas(user_data) - assert errors == {'errors': ['the variable "secret1" contains secrets and should not be defined in the YAML file "tests/secrets/secret.yml"'], 'warnings': []} + errors = rougail.user_data(user_data) + for l, data in errors.items(): + for i, d in enumerate(data): + if isinstance(d, dict): + data[i] = [[l, v.path, v.index] for l, v in d.items()] + assert errors == {'errors': [[['the variable contains secrets and should not be defined in the YAML file "tests/secrets/secret.yml"', "secret1", None]]], 'warnings': []} config_dict = dict(config_to_dict(config.value.get())) assert config_dict == {'secret1': None, 'secret2': 'value'} @@ -255,7 +267,11 @@ def test_secret_first(): rougail = Rougail(rougailconfig) config = rougail.run() user_data = RougailUserData(config, rougailconfig=rougailconfig).run() - errors = rougail.user_datas(user_data) + errors = rougail.user_data(user_data) + for l, data in errors.items(): + for i, d in enumerate(data): + if isinstance(d, dict): + data[i] = [[l, v.path, v.index] for l, v in d.items()] assert errors == {'errors': [], 'warnings': []} config_dict = dict(config_to_dict(config.value.get())) assert config_dict == {'secret1': "my_password", 'secret2': 'value'} @@ -270,8 +286,12 @@ def test_secret_first_error(): rougail = Rougail(rougailconfig) config = rougail.run() user_data = RougailUserData(config, rougailconfig=rougailconfig).run() - errors = rougail.user_datas(user_data) - assert errors == {'errors': ['the variable "secret1" contains secrets and should not be defined in the YAML file "tests/secrets/secret.yml"'], 'warnings': []} + errors = rougail.user_data(user_data) + for l, data in errors.items(): + for i, d in enumerate(data): + if isinstance(d, dict): + data[i] = [[l, v.path, v.index] for l, v in d.items()] + assert errors == {'errors': [[['the variable contains secrets and should not be defined in the YAML file "tests/secrets/secret.yml"', "secret1", None]]], 'warnings': []} config_dict = dict(config_to_dict(config.value.get())) assert config_dict == {'secret1': None, 'secret2': 'value'} @@ -285,7 +305,11 @@ def test_secret_last(): rougail = Rougail(rougailconfig) config = rougail.run() user_data = RougailUserData(config, rougailconfig=rougailconfig).run() - errors = rougail.user_datas(user_data) + errors = rougail.user_data(user_data) + for l, data in errors.items(): + for i, d in enumerate(data): + if isinstance(d, dict): + data[i] = [[l, v.path, v.index] for l, v in d.items()] assert errors == {'errors': [], 'warnings': []} config_dict = dict(config_to_dict(config.value.get())) assert config_dict == {'secret1': "my_password", 'secret2': 'value'} @@ -300,7 +324,11 @@ def test_secret_last_error(): rougail = Rougail(rougailconfig) config = rougail.run() user_data = RougailUserData(config, rougailconfig=rougailconfig).run() - errors = rougail.user_datas(user_data) - assert errors == {'errors': ['the variable "secret1" contains secrets and should not be defined in the YAML file "tests/secrets/secret.yml"'], 'warnings': []} + errors = rougail.user_data(user_data) + for l, data in errors.items(): + for i, d in enumerate(data): + if isinstance(d, dict): + data[i] = [[l, v.path, v.index] for l, v in d.items()] + assert errors == {'errors': [[['the variable contains secrets and should not be defined in the YAML file "tests/secrets/secret.yml"', 'secret1', None]]], 'warnings': []} config_dict = dict(config_to_dict(config.value.get())) assert config_dict == {'secret1': None, 'secret2': 'value'}