From 82b4a29b33b5780c8a9d6515b9e4a00c37118090 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 2 Dec 2024 20:22:27 +0100 Subject: [PATCH] feat: add tests --- src/rougail/output_ansible/__init__.py | 79 +++++++++--- src/rougail/output_ansible/config.py | 18 +-- tests/hosts/00-ip.yml | 23 ++++ tests/hosts/10-group.yml | 11 ++ tests/results/test_namespace/00_0empty.json | 34 +++++ .../00_0version_underscore.json | 40 ++++++ .../test_namespace/00_1empty_variable.json | 40 ++++++ .../00_2default_calculated.json | 50 +++++++ .../00_2default_calculated_multi.json | 58 +++++++++ ...efault_calculated_variable_transitive.json | 54 ++++++++ .../test_namespace/00_4load_subfolder.json | 42 ++++++ .../test_namespace/00_5load_notype.json | 40 ++++++ tests/results/test_namespace/00_6boolean.json | 50 +++++++ .../00_6boolean_no_mandatory.json | 40 ++++++ tests/results/test_namespace/00_6choice.json | 50 +++++++ .../00_6choice_calculation.json | 40 ++++++ .../test_namespace/00_6choice_variable.json | 50 +++++++ tests/results/test_namespace/00_6custom.json | 42 ++++++ .../test_namespace/00_6domainname.json | 40 ++++++ .../test_namespace/00_6domainname_params.json | 40 ++++++ tests/results/test_namespace/00_6float.json | 50 +++++++ tests/results/test_namespace/00_6number.json | 50 +++++++ tests/results/test_namespace/00_6port.json | 44 +++++++ tests/results/test_namespace/00_6regexp.json | 40 ++++++ tests/results/test_namespace/00_6string.json | 50 +++++++ .../test_namespace/00_7choice_quote.json | 40 ++++++ .../test_namespace/00_7help_quote.json | 42 ++++++ .../test_namespace/00_7value_doublequote.json | 40 ++++++ .../00_7value_doublequote2.json | 40 ++++++ .../00_7value_doublequote3.json | 40 ++++++ .../test_namespace/00_7value_quote.json | 40 ++++++ .../00_8calculation_information.json | 40 ++++++ tests/results/test_namespace/00_8test.json | 56 ++++++++ .../00_9choice_variable_multi.json | 54 ++++++++ .../test_namespace/00_9choice_variables.json | 44 +++++++ .../00_9default_calculation.json | 40 ++++++ .../00_9default_calculation_information.json | 40 ++++++ ...alculation_information_other_variable.json | 42 ++++++ ...0_9default_calculation_multi_optional.json | 50 +++++++ ..._9default_calculation_multi_optional2.json | 50 +++++++ .../00_9default_calculation_optional.json | 48 +++++++ ..._9default_calculation_optional_exists.json | 58 +++++++++ ...0_9default_calculation_param_optional.json | 42 ++++++ ...0_9default_information_other_variable.json | 42 ++++++ .../test_namespace/00_9default_integer.json | 40 ++++++ tests/results/test_namespace/00_9extra.json | 46 +++++++ .../test_namespace/00_9extra_calculation.json | 50 +++++++ .../test_namespace/01_6boolean_multi.json | 86 ++++++++++++ .../test_namespace/01_6custom_multi.json | 58 +++++++++ .../test_namespace/01_6float_multi.json | 118 +++++++++++++++++ .../test_namespace/01_6number_multi.json | 118 +++++++++++++++++ .../test_namespace/01_6string_empty.json | 48 +++++++ .../test_namespace/01_6string_multi.json | 110 ++++++++++++++++ .../01_7value_multi_doublequote.json | 48 +++++++ .../01_7value_multi_doublequote2.json | 48 +++++++ .../test_namespace/01_7value_multi_quote.json | 48 +++++++ .../01_8calculation_information_multi.json | 48 +++++++ .../01_9choice_variable_multi.json | 50 +++++++ .../test_namespace/04_0type_param.json | 40 ++++++ .../results/test_namespace/04_1auto_save.json | 40 ++++++ .../04_1auto_save_and_calculated.json | 42 ++++++ .../04_1auto_save_and_calculated_hidden.json | 42 ++++++ .../04_1auto_save_and_hidden.json | 40 ++++++ .../04_1default_calculation_hidden.json | 44 +++++++ .../04_1default_calculation_hidden_2.json | 44 +++++++ .../04_5disabled_calculation.json | 44 +++++++ .../04_5disabled_calculation_default.json | 44 +++++++ .../04_5disabled_calculation_optional.json | 44 +++++++ .../04_5disabled_calculation_variable.json | 40 ++++++ .../04_5disabled_calculation_variable2.json | 40 ++++++ .../04_5disabled_calculation_variable3.json | 42 ++++++ .../04_5disabled_calculation_variable4.json | 40 ++++++ .../04_5hidden_calculation.json | 44 +++++++ .../04_5hidden_calculation2.json | 44 +++++++ ...idden_calculation_default_calculation.json | 44 +++++++ .../test_namespace/04_5validators.json | 40 ++++++ .../test_namespace/04_5validators_differ.json | 42 ++++++ .../test_namespace/04_5validators_multi.json | 48 +++++++ .../test_namespace/04_5validators_multi2.json | 46 +++++++ .../test_namespace/05_0multi_not_uniq.json | 48 +++++++ .../test_namespace/05_0multi_uniq.json | 48 +++++++ .../test_namespace/12_1auto_save_expert.json | 40 ++++++ .../16_0redefine_description.json | 40 ++++++ .../16_2family_redefine_calculation.json | 36 ++++++ .../16_2family_redefine_disabled.json | 36 ++++++ .../test_namespace/16_5exists_nonexists.json | 42 ++++++ .../test_namespace/16_5exists_redefine.json | 40 ++++++ .../16_5redefine_calculation.json | 40 ++++++ .../test_namespace/16_5redefine_choice.json | 40 ++++++ .../test_namespace/16_5redefine_default.json | 40 ++++++ .../16_5redefine_default_calculation.json | 40 ++++++ .../test_namespace/16_5redefine_family.json | 44 +++++++ .../test_namespace/16_5redefine_help.json | 44 +++++++ .../test_namespace/16_5redefine_hidden.json | 40 ++++++ .../test_namespace/16_5redefine_multi.json | 48 +++++++ ..._5redefine_remove_disable_calculation.json | 42 ++++++ .../test_namespace/16_5test_redefine.json | 44 +++++++ .../test_namespace/16_6choice_redefine.json | 40 ++++++ .../16_6exists_redefine_family.json | 50 +++++++ .../test_namespace/16exists_exists.json | 40 ++++++ .../17_5redefine_leadership.json | 40 ++++++ .../test_namespace/20_0empty_family.json | 36 ++++++ .../test_namespace/20_0family_append.json | 46 +++++++ .../test_namespace/20_0family_underscore.json | 36 ++++++ .../test_namespace/20_0multi_family.json | 48 +++++++ .../20_0multi_family_basic.json | 48 +++++++ .../20_0multi_family_expert.json | 48 +++++++ .../20_0multi_family_order.json | 54 ++++++++ .../20_0validators_differ_redefine.json | 44 +++++++ .../test_namespace/20_1empty_subfamily.json | 36 ++++++ .../20_9default_information_parent.json | 46 +++++++ .../24_0family_hidden_condition.json | 46 +++++++ .../24_0family_hidden_condition_boolean.json | 46 +++++++ ...4_0family_hidden_condition_sub_family.json | 50 +++++++ ..._hidden_condition_variable_sub_family.json | 50 +++++++ ...family_hidden_condition_with_variable.json | 48 +++++++ ...ily_hidden_param_condition_sub_family.json | 50 +++++++ .../24_0family_mandatory_condition.json | 42 ++++++ ..._0family_mandatory_condition_variable.json | 42 ++++++ .../24_7validators_variable_optional.json | 46 +++++++ .../24_family_disabled_var_hidden.json | 36 ++++++ .../test_namespace/40_0leadership.json | 72 +++++++++++ .../40_0leadership_diff_name.json | 72 +++++++++++ .../test_namespace/40_0leadership_empty.json | 36 ++++++ ...adership_follower_default_calculation.json | 72 +++++++++++ ...0leadership_follower_default_submulti.json | 120 +++++++++++++++++ ...follower_default_submulti_calculation.json | 120 +++++++++++++++++ ...40_0leadership_follower_default_value.json | 66 ++++++++++ .../40_0leadership_leader_not_multi.json | 82 ++++++++++++ .../40_1leadership_append_follower.json | 78 +++++++++++ .../40_2leadership_calculation_index.json | 66 ++++++++++ ...0_2leadership_calculation_param_index.json | 66 ++++++++++ .../40_2leadership_leader_calculation.json | 72 +++++++++++ .../40_6leadership_follower_multi.json | 120 +++++++++++++++++ .../40_8calculation_boolean.json | 52 ++++++++ .../40_8calculation_boolean_return_none.json | 42 ++++++ .../40_8calculation_integer.json | 44 +++++++ .../40_8calculation_multi_variable.json | 52 ++++++++ ...40_8calculation_multi_variable_parent.json | 46 +++++++ ...0_8calculation_multi_variable_parent2.json | 50 +++++++ .../test_namespace/41_0choice_leader.json | 66 ++++++++++ .../test_namespace/44_0leadership_hidden.json | 40 ++++++ .../44_0leadership_leader_hidden.json | 40 ++++++ ...44_1leadership_append_hidden_follower.json | 40 ++++++ .../44_4disabled_calcultion_follower.json | 68 ++++++++++ .../44_4leadership_mandatory.json | 66 ++++++++++ .../44_4leadership_mandatory_follower.json | 66 ++++++++++ ...5leadership_leader_hidden_calculation.json | 68 ++++++++++ ...dership_follower_disabled_calculation.json | 68 ++++++++++ ...9calculated_default_leadership_leader.json | 66 ++++++++++ .../test_namespace/60_0family_dynamic.json | 58 +++++++++ .../60_0family_dynamic_1_0.json | 58 +++++++++ .../60_0family_dynamic_1_0_empty.json | 58 +++++++++ .../60_0family_dynamic_1_0_type.json | 58 +++++++++ .../60_0family_dynamic_1_0_type_empty.json | 58 +++++++++ .../60_0family_dynamic_1_1.json | 58 +++++++++ .../60_0family_dynamic_1_1_empty.json | 58 +++++++++ .../60_0family_dynamic_empty.json | 66 ++++++++++ .../60_0family_dynamic_jinja_number.json | 60 +++++++++ ...60_0family_dynamic_jinja_number_empty.json | 60 +++++++++ .../60_0family_dynamic_no_description.json | 58 +++++++++ ..._0family_dynamic_no_description_empty.json | 58 +++++++++ .../60_0family_dynamic_static.json | 50 +++++++ .../60_0family_dynamic_test.json | 58 +++++++++ .../60_0family_dynamic_variable_empty.json | 66 ++++++++++ .../60_0family_dynamic_variable_suffix.json | 58 +++++++++ ...0family_dynamic_variable_suffix_empty.json | 58 +++++++++ .../test_namespace/60_0family_empty.json | 36 ++++++ .../test_namespace/60_0family_hidden.json | 44 +++++++ .../test_namespace/60_0family_mode.json | 44 +++++++ .../60_1family_dynamic_jinja.json | 66 ++++++++++ ..._2family_dynamic_jinja_fill_sub_group.json | 68 ++++++++++ ...family_dynamic_jinja_fill_sub_group_2.json | 68 ++++++++++ ..._dynamic_jinja_fill_sub_group_2_empty.json | 68 ++++++++++ ...ly_dynamic_jinja_fill_sub_group_empty.json | 68 ++++++++++ .../60_2family_dynamic_outside_calc.json | 60 +++++++++ ...60_2family_dynamic_outside_calc_empty.json | 60 +++++++++ .../60_5family_dynamic_calc2.json | 60 +++++++++ .../60_5family_dynamic_calc2_empty.json | 60 +++++++++ .../60_5family_dynamic_calc_suffix.json | 60 +++++++++ .../60_5family_dynamic_calc_suffix2.json | 58 +++++++++ ...60_5family_dynamic_calc_suffix2_empty.json | 58 +++++++++ ..._5family_dynamic_calc_suffix_disabled.json | 46 +++++++ .../60_5family_dynamic_calc_suffix_empty.json | 60 +++++++++ .../60_5family_dynamic_calc_suffix_param.json | 58 +++++++++ ...amily_dynamic_calc_suffix_param_empty.json | 58 +++++++++ .../60_5family_dynamic_calc_variable.json | 60 +++++++++ ...0_5family_dynamic_calc_variable_empty.json | 60 +++++++++ .../60_5family_dynamic_hidden_suffix.json | 62 +++++++++ .../60_5family_dynamic_unknown_suffix.json | 66 ++++++++++ ..._5family_dynamic_unknown_suffix_empty.json | 98 ++++++++++++++ .../60_5family_dynamic_variable_outside.json | 68 ++++++++++ .../60_5family_dynamic_variable_outside2.json | 68 ++++++++++ ...amily_dynamic_variable_outside2_empty.json | 68 ++++++++++ ...family_dynamic_variable_outside_empty.json | 68 ++++++++++ ...family_dynamic_variable_outside_jinja.json | 68 ++++++++++ ..._dynamic_variable_outside_jinja_empty.json | 68 ++++++++++ ...y_dynamic_variable_outside_sub_suffix.json | 88 +++++++++++++ ...mic_variable_outside_sub_suffix_empty.json | 88 +++++++++++++ ...amily_dynamic_variable_outside_suffix.json | 60 +++++++++ ...dynamic_variable_outside_suffix_empty.json | 60 +++++++++ .../60_6family_dynamic_inside.json | 70 ++++++++++ .../60_6family_dynamic_inside_empty.json | 70 ++++++++++ .../60_6family_dynamic_leadership.json | 122 ++++++++++++++++++ .../60_6family_dynamic_leadership_empty.json | 122 ++++++++++++++++++ .../60_6family_dynamic_sub_dynamic.json | 110 ++++++++++++++++ .../60_6family_dynamic_sub_dynamic_1_0.json | 110 ++++++++++++++++ .../60_6family_dynamic_sub_dynamic_empty.json | 110 ++++++++++++++++ .../test_namespace/60_9extra_dynamic.json | 54 ++++++++ .../60_9extra_dynamic_extra.json | 68 ++++++++++ .../60_9family_dynamic_calc_both.json | 52 ++++++++ .../68_0family_leadership_mode.json | 72 +++++++++++ .../test_namespace_mandatory/00_0empty.json | 34 +++++ .../00_0version_underscore.json | 40 ++++++ .../00_1empty_variable.json | 40 ++++++ .../00_2default_calculated.json | 50 +++++++ .../00_2default_calculated_multi.json | 58 +++++++++ ...efault_calculated_variable_transitive.json | 54 ++++++++ .../00_4load_subfolder.json | 42 ++++++ .../00_5load_notype.json | 40 ++++++ .../test_namespace_mandatory/00_6boolean.json | 50 +++++++ .../00_6boolean_no_mandatory.json | 40 ++++++ .../test_namespace_mandatory/00_6choice.json | 50 +++++++ .../00_6choice_calculation.json | 40 ++++++ .../00_6choice_variable.json | 50 +++++++ .../test_namespace_mandatory/00_6custom.json | 42 ++++++ .../00_6domainname.json | 40 ++++++ .../00_6domainname_params.json | 40 ++++++ .../test_namespace_mandatory/00_6float.json | 50 +++++++ .../test_namespace_mandatory/00_6number.json | 50 +++++++ .../test_namespace_mandatory/00_6port.json | 44 +++++++ .../test_namespace_mandatory/00_6regexp.json | 40 ++++++ .../test_namespace_mandatory/00_6string.json | 50 +++++++ .../00_7choice_quote.json | 40 ++++++ .../00_7help_quote.json | 42 ++++++ .../00_7value_doublequote.json | 40 ++++++ .../00_7value_doublequote2.json | 40 ++++++ .../00_7value_doublequote3.json | 40 ++++++ .../00_7value_quote.json | 40 ++++++ .../00_8calculation_information.json | 40 ++++++ .../test_namespace_mandatory/00_8test.json | 56 ++++++++ .../00_9choice_variable_multi.json | 54 ++++++++ .../00_9choice_variables.json | 44 +++++++ .../00_9default_calculation.json | 40 ++++++ .../00_9default_calculation_information.json | 40 ++++++ ...alculation_information_other_variable.json | 42 ++++++ ...0_9default_calculation_multi_optional.json | 50 +++++++ ..._9default_calculation_multi_optional2.json | 50 +++++++ .../00_9default_calculation_optional.json | 48 +++++++ ..._9default_calculation_optional_exists.json | 58 +++++++++ ...0_9default_calculation_param_optional.json | 42 ++++++ ...0_9default_information_other_variable.json | 42 ++++++ .../00_9default_integer.json | 40 ++++++ .../test_namespace_mandatory/00_9extra.json | 46 +++++++ .../00_9extra_calculation.json | 50 +++++++ .../01_6boolean_multi.json | 86 ++++++++++++ .../01_6custom_multi.json | 58 +++++++++ .../01_6float_multi.json | 118 +++++++++++++++++ .../01_6number_multi.json | 118 +++++++++++++++++ .../01_6string_empty.json | 48 +++++++ .../01_6string_multi.json | 110 ++++++++++++++++ .../01_7value_multi_doublequote.json | 48 +++++++ .../01_7value_multi_doublequote2.json | 48 +++++++ .../01_7value_multi_quote.json | 48 +++++++ .../01_8calculation_information_multi.json | 48 +++++++ .../01_9choice_variable_multi.json | 50 +++++++ .../04_0type_param.json | 40 ++++++ .../04_1auto_save.json | 40 ++++++ .../04_1auto_save_and_calculated.json | 42 ++++++ .../04_1auto_save_and_calculated_hidden.json | 42 ++++++ .../04_1auto_save_and_hidden.json | 40 ++++++ .../04_1default_calculation_hidden.json | 44 +++++++ .../04_1default_calculation_hidden_2.json | 44 +++++++ .../04_5disabled_calculation.json | 44 +++++++ .../04_5disabled_calculation_default.json | 44 +++++++ .../04_5disabled_calculation_optional.json | 44 +++++++ .../04_5disabled_calculation_variable.json | 40 ++++++ .../04_5disabled_calculation_variable2.json | 40 ++++++ .../04_5disabled_calculation_variable3.json | 42 ++++++ .../04_5disabled_calculation_variable4.json | 40 ++++++ .../04_5hidden_calculation.json | 44 +++++++ .../04_5hidden_calculation2.json | 44 +++++++ ...idden_calculation_default_calculation.json | 44 +++++++ .../04_5validators.json | 40 ++++++ .../04_5validators_differ.json | 42 ++++++ .../04_5validators_multi.json | 48 +++++++ .../04_5validators_multi2.json | 46 +++++++ .../05_0multi_not_uniq.json | 48 +++++++ .../05_0multi_uniq.json | 48 +++++++ .../12_1auto_save_expert.json | 40 ++++++ .../16_0redefine_description.json | 40 ++++++ .../16_2family_redefine_calculation.json | 36 ++++++ .../16_2family_redefine_disabled.json | 36 ++++++ .../16_5exists_nonexists.json | 42 ++++++ .../16_5exists_redefine.json | 40 ++++++ .../16_5redefine_calculation.json | 40 ++++++ .../16_5redefine_choice.json | 40 ++++++ .../16_5redefine_default.json | 40 ++++++ .../16_5redefine_default_calculation.json | 40 ++++++ .../16_5redefine_family.json | 44 +++++++ .../16_5redefine_help.json | 44 +++++++ .../16_5redefine_hidden.json | 40 ++++++ .../16_5redefine_multi.json | 48 +++++++ ..._5redefine_remove_disable_calculation.json | 42 ++++++ .../16_5test_redefine.json | 44 +++++++ .../16_6choice_redefine.json | 40 ++++++ .../16_6exists_redefine_family.json | 50 +++++++ .../16exists_exists.json | 40 ++++++ .../17_5redefine_leadership.json | 40 ++++++ .../20_0empty_family.json | 36 ++++++ .../20_0family_append.json | 46 +++++++ .../20_0family_underscore.json | 36 ++++++ .../20_0multi_family.json | 48 +++++++ .../20_0multi_family_basic.json | 48 +++++++ .../20_0multi_family_expert.json | 48 +++++++ .../20_0multi_family_order.json | 54 ++++++++ .../20_0validators_differ_redefine.json | 44 +++++++ .../20_1empty_subfamily.json | 36 ++++++ .../20_9default_information_parent.json | 46 +++++++ .../24_0family_hidden_condition.json | 46 +++++++ .../24_0family_hidden_condition_boolean.json | 46 +++++++ ...4_0family_hidden_condition_sub_family.json | 50 +++++++ ..._hidden_condition_variable_sub_family.json | 50 +++++++ ...family_hidden_condition_with_variable.json | 48 +++++++ ...ily_hidden_param_condition_sub_family.json | 50 +++++++ .../24_0family_mandatory_condition.json | 42 ++++++ ..._0family_mandatory_condition_variable.json | 42 ++++++ .../24_7validators_variable_optional.json | 46 +++++++ .../24_family_disabled_var_hidden.json | 36 ++++++ .../40_0leadership.json | 72 +++++++++++ .../40_0leadership_diff_name.json | 72 +++++++++++ .../40_0leadership_empty.json | 36 ++++++ ...adership_follower_default_calculation.json | 72 +++++++++++ ...0leadership_follower_default_submulti.json | 120 +++++++++++++++++ ...follower_default_submulti_calculation.json | 120 +++++++++++++++++ ...40_0leadership_follower_default_value.json | 66 ++++++++++ .../40_0leadership_leader_not_multi.json | 82 ++++++++++++ .../40_1leadership_append_follower.json | 78 +++++++++++ .../40_2leadership_calculation_index.json | 66 ++++++++++ ...0_2leadership_calculation_param_index.json | 66 ++++++++++ .../40_2leadership_leader_calculation.json | 72 +++++++++++ .../40_6leadership_follower_multi.json | 120 +++++++++++++++++ .../40_8calculation_boolean.json | 52 ++++++++ .../40_8calculation_boolean_return_none.json | 42 ++++++ .../40_8calculation_integer.json | 44 +++++++ .../40_8calculation_multi_variable.json | 52 ++++++++ ...40_8calculation_multi_variable_parent.json | 46 +++++++ ...0_8calculation_multi_variable_parent2.json | 50 +++++++ .../41_0choice_leader.json | 66 ++++++++++ .../44_0leadership_hidden.json | 40 ++++++ .../44_0leadership_leader_hidden.json | 40 ++++++ ...44_1leadership_append_hidden_follower.json | 40 ++++++ .../44_4disabled_calcultion_follower.json | 68 ++++++++++ .../44_4leadership_mandatory.json | 66 ++++++++++ .../44_4leadership_mandatory_follower.json | 66 ++++++++++ ...5leadership_leader_hidden_calculation.json | 68 ++++++++++ ...dership_follower_disabled_calculation.json | 68 ++++++++++ ...9calculated_default_leadership_leader.json | 66 ++++++++++ .../60_0family_dynamic.json | 58 +++++++++ .../60_0family_dynamic_1_0.json | 58 +++++++++ .../60_0family_dynamic_1_0_empty.json | 58 +++++++++ .../60_0family_dynamic_1_0_type.json | 58 +++++++++ .../60_0family_dynamic_1_0_type_empty.json | 58 +++++++++ .../60_0family_dynamic_1_1.json | 58 +++++++++ .../60_0family_dynamic_1_1_empty.json | 58 +++++++++ .../60_0family_dynamic_empty.json | 66 ++++++++++ .../60_0family_dynamic_jinja_number.json | 60 +++++++++ ...60_0family_dynamic_jinja_number_empty.json | 60 +++++++++ .../60_0family_dynamic_no_description.json | 58 +++++++++ ..._0family_dynamic_no_description_empty.json | 58 +++++++++ .../60_0family_dynamic_static.json | 50 +++++++ .../60_0family_dynamic_test.json | 58 +++++++++ .../60_0family_dynamic_variable_empty.json | 66 ++++++++++ .../60_0family_dynamic_variable_suffix.json | 58 +++++++++ ...0family_dynamic_variable_suffix_empty.json | 58 +++++++++ .../60_0family_empty.json | 36 ++++++ .../60_0family_hidden.json | 44 +++++++ .../60_0family_mode.json | 44 +++++++ .../60_1family_dynamic_jinja.json | 66 ++++++++++ ..._2family_dynamic_jinja_fill_sub_group.json | 68 ++++++++++ ...family_dynamic_jinja_fill_sub_group_2.json | 68 ++++++++++ ..._dynamic_jinja_fill_sub_group_2_empty.json | 68 ++++++++++ ...ly_dynamic_jinja_fill_sub_group_empty.json | 68 ++++++++++ .../60_2family_dynamic_outside_calc.json | 60 +++++++++ ...60_2family_dynamic_outside_calc_empty.json | 60 +++++++++ .../60_5family_dynamic_calc2.json | 60 +++++++++ .../60_5family_dynamic_calc2_empty.json | 60 +++++++++ .../60_5family_dynamic_calc_suffix.json | 60 +++++++++ .../60_5family_dynamic_calc_suffix2.json | 58 +++++++++ ...60_5family_dynamic_calc_suffix2_empty.json | 58 +++++++++ ..._5family_dynamic_calc_suffix_disabled.json | 46 +++++++ .../60_5family_dynamic_calc_suffix_empty.json | 60 +++++++++ .../60_5family_dynamic_calc_suffix_param.json | 58 +++++++++ ...amily_dynamic_calc_suffix_param_empty.json | 58 +++++++++ .../60_5family_dynamic_calc_variable.json | 60 +++++++++ ...0_5family_dynamic_calc_variable_empty.json | 60 +++++++++ .../60_5family_dynamic_hidden_suffix.json | 62 +++++++++ .../60_5family_dynamic_unknown_suffix.json | 66 ++++++++++ ..._5family_dynamic_unknown_suffix_empty.json | 98 ++++++++++++++ .../60_5family_dynamic_variable_outside.json | 68 ++++++++++ .../60_5family_dynamic_variable_outside2.json | 68 ++++++++++ ...amily_dynamic_variable_outside2_empty.json | 68 ++++++++++ ...family_dynamic_variable_outside_empty.json | 68 ++++++++++ ...family_dynamic_variable_outside_jinja.json | 68 ++++++++++ ..._dynamic_variable_outside_jinja_empty.json | 68 ++++++++++ ...y_dynamic_variable_outside_sub_suffix.json | 88 +++++++++++++ ...mic_variable_outside_sub_suffix_empty.json | 88 +++++++++++++ ...amily_dynamic_variable_outside_suffix.json | 60 +++++++++ ...dynamic_variable_outside_suffix_empty.json | 60 +++++++++ .../60_6family_dynamic_inside.json | 70 ++++++++++ .../60_6family_dynamic_inside_empty.json | 70 ++++++++++ .../60_6family_dynamic_leadership.json | 122 ++++++++++++++++++ .../60_6family_dynamic_leadership_empty.json | 122 ++++++++++++++++++ .../60_6family_dynamic_sub_dynamic.json | 110 ++++++++++++++++ .../60_6family_dynamic_sub_dynamic_1_0.json | 110 ++++++++++++++++ .../60_6family_dynamic_sub_dynamic_empty.json | 110 ++++++++++++++++ .../60_9extra_dynamic.json | 54 ++++++++ .../60_9extra_dynamic_extra.json | 68 ++++++++++ .../60_9family_dynamic_calc_both.json | 52 ++++++++ .../68_0family_leadership_mode.json | 72 +++++++++++ .../test_namespace_read_write/00_0empty.json | 34 +++++ .../00_0version_underscore.json | 40 ++++++ .../00_1empty_variable.json | 40 ++++++ .../00_2default_calculated.json | 46 +++++++ .../00_2default_calculated_multi.json | 58 +++++++++ ...efault_calculated_variable_transitive.json | 42 ++++++ .../00_4load_subfolder.json | 42 ++++++ .../00_5load_notype.json | 40 ++++++ .../00_6boolean.json | 50 +++++++ .../00_6boolean_no_mandatory.json | 40 ++++++ .../test_namespace_read_write/00_6choice.json | 50 +++++++ .../00_6choice_calculation.json | 40 ++++++ .../00_6choice_variable.json | 50 +++++++ .../test_namespace_read_write/00_6custom.json | 42 ++++++ .../00_6domainname.json | 40 ++++++ .../00_6domainname_params.json | 40 ++++++ .../test_namespace_read_write/00_6float.json | 50 +++++++ .../test_namespace_read_write/00_6number.json | 50 +++++++ .../test_namespace_read_write/00_6port.json | 44 +++++++ .../test_namespace_read_write/00_6regexp.json | 40 ++++++ .../test_namespace_read_write/00_6string.json | 50 +++++++ .../00_7choice_quote.json | 40 ++++++ .../00_7help_quote.json | 42 ++++++ .../00_7value_doublequote.json | 40 ++++++ .../00_7value_doublequote2.json | 40 ++++++ .../00_7value_doublequote3.json | 40 ++++++ .../00_7value_quote.json | 40 ++++++ .../00_8calculation_information.json | 40 ++++++ .../test_namespace_read_write/00_8test.json | 50 +++++++ .../00_9choice_variable_multi.json | 42 ++++++ .../00_9choice_variables.json | 44 +++++++ .../00_9default_calculation.json | 40 ++++++ .../00_9default_calculation_information.json | 40 ++++++ ...alculation_information_other_variable.json | 42 ++++++ ...0_9default_calculation_multi_optional.json | 46 +++++++ ..._9default_calculation_multi_optional2.json | 46 +++++++ .../00_9default_calculation_optional.json | 40 ++++++ ..._9default_calculation_optional_exists.json | 54 ++++++++ ...0_9default_calculation_param_optional.json | 42 ++++++ ...0_9default_information_other_variable.json | 42 ++++++ .../00_9default_integer.json | 40 ++++++ .../test_namespace_read_write/00_9extra.json | 46 +++++++ .../00_9extra_calculation.json | 50 +++++++ .../01_6boolean_multi.json | 86 ++++++++++++ .../01_6custom_multi.json | 46 +++++++ .../01_6float_multi.json | 86 ++++++++++++ .../01_6number_multi.json | 86 ++++++++++++ .../01_6string_empty.json | 46 +++++++ .../01_6string_multi.json | 74 +++++++++++ .../01_7value_multi_doublequote.json | 44 +++++++ .../01_7value_multi_doublequote2.json | 44 +++++++ .../01_7value_multi_quote.json | 44 +++++++ .../01_8calculation_information_multi.json | 40 ++++++ .../01_9choice_variable_multi.json | 50 +++++++ .../04_0type_param.json | 40 ++++++ .../04_1auto_save.json | 40 ++++++ .../04_1auto_save_and_calculated.json | 42 ++++++ .../04_1auto_save_and_calculated_hidden.json | 42 ++++++ .../04_1auto_save_and_hidden.json | 36 ++++++ .../04_1default_calculation_hidden.json | 42 ++++++ .../04_1default_calculation_hidden_2.json | 42 ++++++ .../04_5disabled_calculation.json | 44 +++++++ .../04_5disabled_calculation_default.json | 44 +++++++ .../04_5disabled_calculation_optional.json | 40 ++++++ .../04_5disabled_calculation_variable.json | 42 ++++++ .../04_5disabled_calculation_variable2.json | 40 ++++++ .../04_5disabled_calculation_variable3.json | 40 ++++++ .../04_5disabled_calculation_variable4.json | 42 ++++++ .../04_5hidden_calculation.json | 44 +++++++ .../04_5hidden_calculation2.json | 40 ++++++ ...idden_calculation_default_calculation.json | 44 +++++++ .../04_5validators.json | 40 ++++++ .../04_5validators_differ.json | 42 ++++++ .../04_5validators_multi.json | 46 +++++++ .../04_5validators_multi2.json | 46 +++++++ .../05_0multi_not_uniq.json | 44 +++++++ .../05_0multi_uniq.json | 44 +++++++ .../12_1auto_save_expert.json | 40 ++++++ .../16_0redefine_description.json | 40 ++++++ .../16_2family_redefine_calculation.json | 36 ++++++ .../16_2family_redefine_disabled.json | 36 ++++++ .../16_5exists_nonexists.json | 42 ++++++ .../16_5exists_redefine.json | 36 ++++++ .../16_5redefine_calculation.json | 40 ++++++ .../16_5redefine_choice.json | 40 ++++++ .../16_5redefine_default.json | 40 ++++++ .../16_5redefine_default_calculation.json | 40 ++++++ .../16_5redefine_family.json | 44 +++++++ .../16_5redefine_help.json | 44 +++++++ .../16_5redefine_hidden.json | 36 ++++++ .../16_5redefine_multi.json | 44 +++++++ ..._5redefine_remove_disable_calculation.json | 42 ++++++ .../16_5test_redefine.json | 44 +++++++ .../16_6choice_redefine.json | 40 ++++++ .../16_6exists_redefine_family.json | 50 +++++++ .../16exists_exists.json | 40 ++++++ .../17_5redefine_leadership.json | 36 ++++++ .../20_0empty_family.json | 36 ++++++ .../20_0family_append.json | 46 +++++++ .../20_0family_underscore.json | 36 ++++++ .../20_0multi_family.json | 48 +++++++ .../20_0multi_family_basic.json | 48 +++++++ .../20_0multi_family_expert.json | 48 +++++++ .../20_0multi_family_order.json | 54 ++++++++ .../20_0validators_differ_redefine.json | 44 +++++++ .../20_1empty_subfamily.json | 36 ++++++ .../20_9default_information_parent.json | 46 +++++++ .../24_0family_hidden_condition.json | 46 +++++++ .../24_0family_hidden_condition_boolean.json | 40 ++++++ ...4_0family_hidden_condition_sub_family.json | 50 +++++++ ..._hidden_condition_variable_sub_family.json | 40 ++++++ ...family_hidden_condition_with_variable.json | 42 ++++++ ...ily_hidden_param_condition_sub_family.json | 50 +++++++ .../24_0family_mandatory_condition.json | 42 ++++++ ..._0family_mandatory_condition_variable.json | 42 ++++++ .../24_7validators_variable_optional.json | 46 +++++++ .../24_family_disabled_var_hidden.json | 36 ++++++ .../40_0leadership.json | 40 ++++++ .../40_0leadership_diff_name.json | 40 ++++++ .../40_0leadership_empty.json | 36 ++++++ ...adership_follower_default_calculation.json | 40 ++++++ ...0leadership_follower_default_submulti.json | 62 +++++++++ ...follower_default_submulti_calculation.json | 60 +++++++++ ...40_0leadership_follower_default_value.json | 40 ++++++ .../40_0leadership_leader_not_multi.json | 50 +++++++ .../40_1leadership_append_follower.json | 40 ++++++ .../40_2leadership_calculation_index.json | 66 ++++++++++ ...0_2leadership_calculation_param_index.json | 66 ++++++++++ .../40_2leadership_leader_calculation.json | 62 +++++++++ .../40_6leadership_follower_multi.json | 40 ++++++ .../40_8calculation_boolean.json | 54 ++++++++ .../40_8calculation_boolean_return_none.json | 42 ++++++ .../40_8calculation_integer.json | 44 +++++++ .../40_8calculation_multi_variable.json | 50 +++++++ ...40_8calculation_multi_variable_parent.json | 46 +++++++ ...0_8calculation_multi_variable_parent2.json | 50 +++++++ .../41_0choice_leader.json | 40 ++++++ .../44_0leadership_hidden.json | 36 ++++++ .../44_0leadership_leader_hidden.json | 36 ++++++ ...44_1leadership_append_hidden_follower.json | 36 ++++++ .../44_4disabled_calcultion_follower.json | 52 ++++++++ .../44_4leadership_mandatory.json | 40 ++++++ .../44_4leadership_mandatory_follower.json | 40 ++++++ ...5leadership_leader_hidden_calculation.json | 40 ++++++ ...dership_follower_disabled_calculation.json | 42 ++++++ ...9calculated_default_leadership_leader.json | 56 ++++++++ .../60_0family_dynamic.json | 58 +++++++++ .../60_0family_dynamic_1_0.json | 58 +++++++++ .../60_0family_dynamic_1_0_empty.json | 40 ++++++ .../60_0family_dynamic_1_0_type.json | 58 +++++++++ .../60_0family_dynamic_1_0_type_empty.json | 40 ++++++ .../60_0family_dynamic_1_1.json | 58 +++++++++ .../60_0family_dynamic_1_1_empty.json | 40 ++++++ .../60_0family_dynamic_empty.json | 40 ++++++ .../60_0family_dynamic_jinja_number.json | 60 +++++++++ ...60_0family_dynamic_jinja_number_empty.json | 42 ++++++ .../60_0family_dynamic_no_description.json | 58 +++++++++ ..._0family_dynamic_no_description_empty.json | 40 ++++++ .../60_0family_dynamic_static.json | 50 +++++++ .../60_0family_dynamic_test.json | 40 ++++++ .../60_0family_dynamic_variable_empty.json | 40 ++++++ .../60_0family_dynamic_variable_suffix.json | 58 +++++++++ ...0family_dynamic_variable_suffix_empty.json | 40 ++++++ .../60_0family_empty.json | 36 ++++++ .../60_0family_hidden.json | 36 ++++++ .../60_0family_mode.json | 44 +++++++ .../60_1family_dynamic_jinja.json | 58 +++++++++ ..._2family_dynamic_jinja_fill_sub_group.json | 68 ++++++++++ ...family_dynamic_jinja_fill_sub_group_2.json | 68 ++++++++++ ..._dynamic_jinja_fill_sub_group_2_empty.json | 42 ++++++ ...ly_dynamic_jinja_fill_sub_group_empty.json | 42 ++++++ .../60_2family_dynamic_outside_calc.json | 60 +++++++++ ...60_2family_dynamic_outside_calc_empty.json | 42 ++++++ .../60_5family_dynamic_calc2.json | 60 +++++++++ .../60_5family_dynamic_calc2_empty.json | 42 ++++++ .../60_5family_dynamic_calc_suffix.json | 60 +++++++++ .../60_5family_dynamic_calc_suffix2.json | 58 +++++++++ ...60_5family_dynamic_calc_suffix2_empty.json | 40 ++++++ ..._5family_dynamic_calc_suffix_disabled.json | 46 +++++++ .../60_5family_dynamic_calc_suffix_empty.json | 42 ++++++ .../60_5family_dynamic_calc_suffix_param.json | 58 +++++++++ ...amily_dynamic_calc_suffix_param_empty.json | 40 ++++++ .../60_5family_dynamic_calc_variable.json | 60 +++++++++ ...0_5family_dynamic_calc_variable_empty.json | 42 ++++++ .../60_5family_dynamic_hidden_suffix.json | 50 +++++++ .../60_5family_dynamic_unknown_suffix.json | 66 ++++++++++ ..._5family_dynamic_unknown_suffix_empty.json | 40 ++++++ .../60_5family_dynamic_variable_outside.json | 66 ++++++++++ .../60_5family_dynamic_variable_outside2.json | 66 ++++++++++ ...amily_dynamic_variable_outside2_empty.json | 42 ++++++ ...family_dynamic_variable_outside_empty.json | 42 ++++++ ...family_dynamic_variable_outside_jinja.json | 66 ++++++++++ ..._dynamic_variable_outside_jinja_empty.json | 42 ++++++ ...y_dynamic_variable_outside_sub_suffix.json | 86 ++++++++++++ ...mic_variable_outside_sub_suffix_empty.json | 42 ++++++ ...amily_dynamic_variable_outside_suffix.json | 60 +++++++++ ...dynamic_variable_outside_suffix_empty.json | 42 ++++++ .../60_6family_dynamic_inside.json | 70 ++++++++++ .../60_6family_dynamic_inside_empty.json | 40 ++++++ .../60_6family_dynamic_leadership.json | 58 +++++++++ .../60_6family_dynamic_leadership_empty.json | 40 ++++++ .../60_6family_dynamic_sub_dynamic.json | 110 ++++++++++++++++ .../60_6family_dynamic_sub_dynamic_1_0.json | 110 ++++++++++++++++ .../60_6family_dynamic_sub_dynamic_empty.json | 40 ++++++ .../60_9extra_dynamic.json | 54 ++++++++ .../60_9extra_dynamic_extra.json | 64 +++++++++ .../60_9family_dynamic_calc_both.json | 52 ++++++++ .../68_0family_leadership_mode.json | 40 ++++++ .../00_0empty.json | 34 +++++ .../00_0version_underscore.json | 40 ++++++ .../00_1empty_variable.json | 40 ++++++ .../00_2default_calculated.json | 50 +++++++ .../00_2default_calculated_multi.json | 58 +++++++++ ...efault_calculated_variable_transitive.json | 54 ++++++++ .../00_4load_subfolder.json | 42 ++++++ .../00_5load_notype.json | 40 ++++++ .../00_6boolean.json | 50 +++++++ .../00_6boolean_no_mandatory.json | 40 ++++++ .../00_6choice.json | 50 +++++++ .../00_6choice_calculation.json | 40 ++++++ .../00_6choice_variable.json | 50 +++++++ .../00_6custom.json | 42 ++++++ .../00_6domainname.json | 40 ++++++ .../00_6domainname_params.json | 40 ++++++ .../00_6float.json | 50 +++++++ .../00_6number.json | 50 +++++++ .../00_6port.json | 44 +++++++ .../00_6regexp.json | 40 ++++++ .../00_6string.json | 50 +++++++ .../00_7choice_quote.json | 40 ++++++ .../00_7help_quote.json | 42 ++++++ .../00_7value_doublequote.json | 40 ++++++ .../00_7value_doublequote2.json | 40 ++++++ .../00_7value_doublequote3.json | 40 ++++++ .../00_7value_quote.json | 40 ++++++ .../00_8calculation_information.json | 40 ++++++ .../00_8test.json | 56 ++++++++ .../00_9choice_variable_multi.json | 54 ++++++++ .../00_9choice_variables.json | 44 +++++++ .../00_9default_calculation.json | 40 ++++++ .../00_9default_calculation_information.json | 40 ++++++ ...alculation_information_other_variable.json | 42 ++++++ ...0_9default_calculation_multi_optional.json | 50 +++++++ ..._9default_calculation_multi_optional2.json | 50 +++++++ .../00_9default_calculation_optional.json | 48 +++++++ ..._9default_calculation_optional_exists.json | 58 +++++++++ ...0_9default_calculation_param_optional.json | 42 ++++++ ...0_9default_information_other_variable.json | 42 ++++++ .../00_9default_integer.json | 40 ++++++ .../00_9extra.json | 46 +++++++ .../00_9extra_calculation.json | 50 +++++++ .../01_6boolean_multi.json | 86 ++++++++++++ .../01_6custom_multi.json | 58 +++++++++ .../01_6float_multi.json | 118 +++++++++++++++++ .../01_6number_multi.json | 118 +++++++++++++++++ .../01_6string_empty.json | 48 +++++++ .../01_6string_multi.json | 110 ++++++++++++++++ .../01_7value_multi_doublequote.json | 48 +++++++ .../01_7value_multi_doublequote2.json | 48 +++++++ .../01_7value_multi_quote.json | 48 +++++++ .../01_8calculation_information_multi.json | 48 +++++++ .../01_9choice_variable_multi.json | 50 +++++++ .../04_0type_param.json | 40 ++++++ .../04_1auto_save.json | 40 ++++++ .../04_1auto_save_and_calculated.json | 42 ++++++ .../04_1auto_save_and_calculated_hidden.json | 42 ++++++ .../04_1auto_save_and_hidden.json | 36 ++++++ .../04_1default_calculation_hidden.json | 44 +++++++ .../04_1default_calculation_hidden_2.json | 44 +++++++ .../04_5disabled_calculation.json | 44 +++++++ .../04_5disabled_calculation_default.json | 44 +++++++ .../04_5disabled_calculation_optional.json | 42 ++++++ .../04_5disabled_calculation_variable.json | 40 ++++++ .../04_5disabled_calculation_variable2.json | 40 ++++++ .../04_5disabled_calculation_variable3.json | 42 ++++++ .../04_5disabled_calculation_variable4.json | 40 ++++++ .../04_5hidden_calculation.json | 44 +++++++ .../04_5hidden_calculation2.json | 40 ++++++ ...idden_calculation_default_calculation.json | 44 +++++++ .../04_5validators.json | 40 ++++++ .../04_5validators_differ.json | 42 ++++++ .../04_5validators_multi.json | 48 +++++++ .../04_5validators_multi2.json | 46 +++++++ .../05_0multi_not_uniq.json | 48 +++++++ .../05_0multi_uniq.json | 48 +++++++ .../12_1auto_save_expert.json | 40 ++++++ .../16_0redefine_description.json | 40 ++++++ .../16_2family_redefine_calculation.json | 36 ++++++ .../16_2family_redefine_disabled.json | 36 ++++++ .../16_5exists_nonexists.json | 42 ++++++ .../16_5exists_redefine.json | 36 ++++++ .../16_5redefine_calculation.json | 40 ++++++ .../16_5redefine_choice.json | 40 ++++++ .../16_5redefine_default.json | 40 ++++++ .../16_5redefine_default_calculation.json | 40 ++++++ .../16_5redefine_family.json | 44 +++++++ .../16_5redefine_help.json | 44 +++++++ .../16_5redefine_hidden.json | 36 ++++++ .../16_5redefine_multi.json | 48 +++++++ ..._5redefine_remove_disable_calculation.json | 42 ++++++ .../16_5test_redefine.json | 44 +++++++ .../16_6choice_redefine.json | 40 ++++++ .../16_6exists_redefine_family.json | 50 +++++++ .../16exists_exists.json | 40 ++++++ .../17_5redefine_leadership.json | 36 ++++++ .../20_0empty_family.json | 36 ++++++ .../20_0family_append.json | 46 +++++++ .../20_0family_underscore.json | 36 ++++++ .../20_0multi_family.json | 48 +++++++ .../20_0multi_family_basic.json | 48 +++++++ .../20_0multi_family_expert.json | 48 +++++++ .../20_0multi_family_order.json | 54 ++++++++ .../20_0validators_differ_redefine.json | 44 +++++++ .../20_1empty_subfamily.json | 36 ++++++ .../20_9default_information_parent.json | 46 +++++++ .../24_0family_hidden_condition.json | 46 +++++++ .../24_0family_hidden_condition_boolean.json | 46 +++++++ ...4_0family_hidden_condition_sub_family.json | 50 +++++++ ..._hidden_condition_variable_sub_family.json | 40 ++++++ ...family_hidden_condition_with_variable.json | 44 +++++++ ...ily_hidden_param_condition_sub_family.json | 50 +++++++ .../24_0family_mandatory_condition.json | 42 ++++++ ..._0family_mandatory_condition_variable.json | 42 ++++++ .../24_7validators_variable_optional.json | 46 +++++++ .../24_family_disabled_var_hidden.json | 36 ++++++ .../40_0leadership.json | 72 +++++++++++ .../40_0leadership_diff_name.json | 72 +++++++++++ .../40_0leadership_empty.json | 36 ++++++ ...adership_follower_default_calculation.json | 72 +++++++++++ ...0leadership_follower_default_submulti.json | 120 +++++++++++++++++ ...follower_default_submulti_calculation.json | 120 +++++++++++++++++ ...40_0leadership_follower_default_value.json | 66 ++++++++++ .../40_0leadership_leader_not_multi.json | 82 ++++++++++++ .../40_1leadership_append_follower.json | 78 +++++++++++ .../40_2leadership_calculation_index.json | 66 ++++++++++ ...0_2leadership_calculation_param_index.json | 66 ++++++++++ .../40_2leadership_leader_calculation.json | 72 +++++++++++ .../40_6leadership_follower_multi.json | 120 +++++++++++++++++ .../40_8calculation_boolean.json | 52 ++++++++ .../40_8calculation_boolean_return_none.json | 42 ++++++ .../40_8calculation_integer.json | 44 +++++++ .../40_8calculation_multi_variable.json | 52 ++++++++ ...40_8calculation_multi_variable_parent.json | 46 +++++++ ...0_8calculation_multi_variable_parent2.json | 50 +++++++ .../41_0choice_leader.json | 66 ++++++++++ .../44_0leadership_hidden.json | 36 ++++++ .../44_0leadership_leader_hidden.json | 36 ++++++ ...44_1leadership_append_hidden_follower.json | 36 ++++++ .../44_4disabled_calcultion_follower.json | 68 ++++++++++ .../44_4leadership_mandatory.json | 66 ++++++++++ .../44_4leadership_mandatory_follower.json | 66 ++++++++++ ...5leadership_leader_hidden_calculation.json | 68 ++++++++++ ...dership_follower_disabled_calculation.json | 68 ++++++++++ ...9calculated_default_leadership_leader.json | 66 ++++++++++ .../60_0family_dynamic.json | 58 +++++++++ .../60_0family_dynamic_1_0.json | 58 +++++++++ .../60_0family_dynamic_1_0_empty.json | 58 +++++++++ .../60_0family_dynamic_1_0_type.json | 58 +++++++++ .../60_0family_dynamic_1_0_type_empty.json | 58 +++++++++ .../60_0family_dynamic_1_1.json | 58 +++++++++ .../60_0family_dynamic_1_1_empty.json | 58 +++++++++ .../60_0family_dynamic_empty.json | 66 ++++++++++ .../60_0family_dynamic_jinja_number.json | 60 +++++++++ ...60_0family_dynamic_jinja_number_empty.json | 60 +++++++++ .../60_0family_dynamic_no_description.json | 58 +++++++++ ..._0family_dynamic_no_description_empty.json | 58 +++++++++ .../60_0family_dynamic_static.json | 50 +++++++ .../60_0family_dynamic_test.json | 58 +++++++++ .../60_0family_dynamic_variable_empty.json | 66 ++++++++++ .../60_0family_dynamic_variable_suffix.json | 58 +++++++++ ...0family_dynamic_variable_suffix_empty.json | 58 +++++++++ .../60_0family_empty.json | 36 ++++++ .../60_0family_hidden.json | 36 ++++++ .../60_0family_mode.json | 44 +++++++ .../60_1family_dynamic_jinja.json | 66 ++++++++++ ..._2family_dynamic_jinja_fill_sub_group.json | 68 ++++++++++ ...family_dynamic_jinja_fill_sub_group_2.json | 68 ++++++++++ ..._dynamic_jinja_fill_sub_group_2_empty.json | 68 ++++++++++ ...ly_dynamic_jinja_fill_sub_group_empty.json | 68 ++++++++++ .../60_2family_dynamic_outside_calc.json | 60 +++++++++ ...60_2family_dynamic_outside_calc_empty.json | 60 +++++++++ .../60_5family_dynamic_calc2.json | 60 +++++++++ .../60_5family_dynamic_calc2_empty.json | 60 +++++++++ .../60_5family_dynamic_calc_suffix.json | 60 +++++++++ .../60_5family_dynamic_calc_suffix2.json | 58 +++++++++ ...60_5family_dynamic_calc_suffix2_empty.json | 58 +++++++++ ..._5family_dynamic_calc_suffix_disabled.json | 46 +++++++ .../60_5family_dynamic_calc_suffix_empty.json | 60 +++++++++ .../60_5family_dynamic_calc_suffix_param.json | 58 +++++++++ ...amily_dynamic_calc_suffix_param_empty.json | 58 +++++++++ .../60_5family_dynamic_calc_variable.json | 60 +++++++++ ...0_5family_dynamic_calc_variable_empty.json | 60 +++++++++ .../60_5family_dynamic_hidden_suffix.json | 50 +++++++ .../60_5family_dynamic_unknown_suffix.json | 66 ++++++++++ ..._5family_dynamic_unknown_suffix_empty.json | 98 ++++++++++++++ .../60_5family_dynamic_variable_outside.json | 68 ++++++++++ .../60_5family_dynamic_variable_outside2.json | 68 ++++++++++ ...amily_dynamic_variable_outside2_empty.json | 68 ++++++++++ ...family_dynamic_variable_outside_empty.json | 68 ++++++++++ ...family_dynamic_variable_outside_jinja.json | 68 ++++++++++ ..._dynamic_variable_outside_jinja_empty.json | 68 ++++++++++ ...y_dynamic_variable_outside_sub_suffix.json | 88 +++++++++++++ ...mic_variable_outside_sub_suffix_empty.json | 88 +++++++++++++ ...amily_dynamic_variable_outside_suffix.json | 60 +++++++++ ...dynamic_variable_outside_suffix_empty.json | 60 +++++++++ .../60_6family_dynamic_inside.json | 70 ++++++++++ .../60_6family_dynamic_inside_empty.json | 70 ++++++++++ .../60_6family_dynamic_leadership.json | 122 ++++++++++++++++++ .../60_6family_dynamic_leadership_empty.json | 122 ++++++++++++++++++ .../60_6family_dynamic_sub_dynamic.json | 110 ++++++++++++++++ .../60_6family_dynamic_sub_dynamic_1_0.json | 110 ++++++++++++++++ .../60_6family_dynamic_sub_dynamic_empty.json | 110 ++++++++++++++++ .../60_9extra_dynamic.json | 54 ++++++++ .../60_9extra_dynamic_extra.json | 68 ++++++++++ .../60_9family_dynamic_calc_both.json | 52 ++++++++ .../68_0family_leadership_mode.json | 72 +++++++++++ .../00_0empty.json | 34 +++++ .../00_0version_underscore.json | 22 ++++ .../00_1empty_variable.json | 22 ++++ .../00_2default_calculated.json | 46 +++++++ .../00_2default_calculated_multi.json | 58 +++++++++ ...efault_calculated_variable_transitive.json | 23 ++++ .../00_4load_subfolder.json | 23 ++++ .../00_5load_notype.json | 40 ++++++ .../00_6boolean.json | 50 +++++++ .../00_6boolean_no_mandatory.json | 40 ++++++ .../00_6choice.json | 23 ++++ .../00_6choice_calculation.json | 40 ++++++ .../00_6choice_variable.json | 50 +++++++ .../00_6custom.json | 22 ++++ .../00_6domainname.json | 40 ++++++ .../00_6domainname_params.json | 40 ++++++ .../00_6float.json | 50 +++++++ .../00_6number.json | 50 +++++++ .../00_6port.json | 22 ++++ .../00_6regexp.json | 40 ++++++ .../00_6string.json | 24 ++++ .../00_7choice_quote.json | 40 ++++++ .../00_7help_quote.json | 23 ++++ .../00_7value_doublequote.json | 40 ++++++ .../00_7value_doublequote2.json | 40 ++++++ .../00_7value_doublequote3.json | 40 ++++++ .../00_7value_quote.json | 40 ++++++ .../00_8calculation_information.json | 22 ++++ .../00_8test.json | 24 ++++ .../00_9choice_variable_multi.json | 22 ++++ .../00_9choice_variables.json | 44 +++++++ .../00_9default_calculation.json | 40 ++++++ .../00_9default_calculation_information.json | 22 ++++ ...alculation_information_other_variable.json | 23 ++++ ...0_9default_calculation_multi_optional.json | 46 +++++++ ..._9default_calculation_multi_optional2.json | 46 +++++++ .../00_9default_calculation_optional.json | 22 ++++ ..._9default_calculation_optional_exists.json | 54 ++++++++ ...0_9default_calculation_param_optional.json | 42 ++++++ ...0_9default_information_other_variable.json | 23 ++++ .../00_9default_integer.json | 40 ++++++ .../00_9extra.json | 46 +++++++ .../00_9extra_calculation.json | 50 +++++++ .../01_6boolean_multi.json | 86 ++++++++++++ .../01_6custom_multi.json | 22 ++++ .../01_6float_multi.json | 86 ++++++++++++ .../01_6number_multi.json | 86 ++++++++++++ .../01_6string_empty.json | 22 ++++ .../01_6string_multi.json | 24 ++++ .../01_7value_multi_doublequote.json | 44 +++++++ .../01_7value_multi_doublequote2.json | 44 +++++++ .../01_7value_multi_quote.json | 44 +++++++ .../01_8calculation_information_multi.json | 22 ++++ .../01_9choice_variable_multi.json | 22 ++++ .../04_0type_param.json | 40 ++++++ .../04_1auto_save.json | 40 ++++++ .../04_1auto_save_and_calculated.json | 42 ++++++ .../04_1auto_save_and_calculated_hidden.json | 42 ++++++ .../04_1auto_save_and_hidden.json | 36 ++++++ .../04_1default_calculation_hidden.json | 42 ++++++ .../04_1default_calculation_hidden_2.json | 42 ++++++ .../04_5disabled_calculation.json | 23 ++++ .../04_5disabled_calculation_default.json | 44 +++++++ .../04_5disabled_calculation_optional.json | 40 ++++++ .../04_5disabled_calculation_variable.json | 22 ++++ .../04_5disabled_calculation_variable2.json | 40 ++++++ .../04_5disabled_calculation_variable3.json | 40 ++++++ .../04_5disabled_calculation_variable4.json | 22 ++++ .../04_5hidden_calculation.json | 44 +++++++ .../04_5hidden_calculation2.json | 40 ++++++ ...idden_calculation_default_calculation.json | 44 +++++++ .../04_5validators.json | 22 ++++ .../04_5validators_differ.json | 42 ++++++ .../04_5validators_multi.json | 46 +++++++ .../04_5validators_multi2.json | 46 +++++++ .../05_0multi_not_uniq.json | 44 +++++++ .../05_0multi_uniq.json | 44 +++++++ .../12_1auto_save_expert.json | 40 ++++++ .../16_0redefine_description.json | 22 ++++ .../16_2family_redefine_calculation.json | 36 ++++++ .../16_2family_redefine_disabled.json | 36 ++++++ .../16_5exists_nonexists.json | 42 ++++++ .../16_5exists_redefine.json | 36 ++++++ .../16_5redefine_calculation.json | 40 ++++++ .../16_5redefine_choice.json | 22 ++++ .../16_5redefine_default.json | 40 ++++++ .../16_5redefine_default_calculation.json | 22 ++++ .../16_5redefine_family.json | 22 ++++ .../16_5redefine_help.json | 22 ++++ .../16_5redefine_hidden.json | 36 ++++++ .../16_5redefine_multi.json | 44 +++++++ ..._5redefine_remove_disable_calculation.json | 22 ++++ .../16_5test_redefine.json | 22 ++++ .../16_6choice_redefine.json | 40 ++++++ .../16_6exists_redefine_family.json | 23 ++++ .../16exists_exists.json | 22 ++++ .../17_5redefine_leadership.json | 36 ++++++ .../20_0empty_family.json | 36 ++++++ .../20_0family_append.json | 23 ++++ .../20_0family_underscore.json | 36 ++++++ .../20_0multi_family.json | 48 +++++++ .../20_0multi_family_basic.json | 22 ++++ .../20_0multi_family_expert.json | 48 +++++++ .../20_0multi_family_order.json | 25 ++++ .../20_0validators_differ_redefine.json | 44 +++++++ .../20_1empty_subfamily.json | 36 ++++++ .../20_9default_information_parent.json | 23 ++++ .../24_0family_hidden_condition.json | 22 ++++ .../24_0family_hidden_condition_boolean.json | 40 ++++++ ...4_0family_hidden_condition_sub_family.json | 22 ++++ ..._hidden_condition_variable_sub_family.json | 40 ++++++ ...family_hidden_condition_with_variable.json | 42 ++++++ ...ily_hidden_param_condition_sub_family.json | 22 ++++ .../24_0family_mandatory_condition.json | 42 ++++++ ..._0family_mandatory_condition_variable.json | 22 ++++ .../24_7validators_variable_optional.json | 22 ++++ .../24_family_disabled_var_hidden.json | 36 ++++++ .../40_0leadership.json | 22 ++++ .../40_0leadership_diff_name.json | 22 ++++ .../40_0leadership_empty.json | 36 ++++++ ...adership_follower_default_calculation.json | 22 ++++ ...0leadership_follower_default_submulti.json | 62 +++++++++ ...follower_default_submulti_calculation.json | 60 +++++++++ ...40_0leadership_follower_default_value.json | 40 ++++++ .../40_0leadership_leader_not_multi.json | 22 ++++ .../40_1leadership_append_follower.json | 22 ++++ .../40_2leadership_calculation_index.json | 66 ++++++++++ ...0_2leadership_calculation_param_index.json | 66 ++++++++++ .../40_2leadership_leader_calculation.json | 25 ++++ .../40_6leadership_follower_multi.json | 22 ++++ .../40_8calculation_boolean.json | 54 ++++++++ .../40_8calculation_boolean_return_none.json | 22 ++++ .../40_8calculation_integer.json | 44 +++++++ .../40_8calculation_multi_variable.json | 50 +++++++ ...40_8calculation_multi_variable_parent.json | 46 +++++++ ...0_8calculation_multi_variable_parent2.json | 50 +++++++ .../41_0choice_leader.json | 40 ++++++ .../44_0leadership_hidden.json | 36 ++++++ .../44_0leadership_leader_hidden.json | 36 ++++++ ...44_1leadership_append_hidden_follower.json | 36 ++++++ .../44_4disabled_calcultion_follower.json | 22 ++++ .../44_4leadership_mandatory.json | 22 ++++ .../44_4leadership_mandatory_follower.json | 40 ++++++ ...5leadership_leader_hidden_calculation.json | 40 ++++++ ...dership_follower_disabled_calculation.json | 22 ++++ ...9calculated_default_leadership_leader.json | 56 ++++++++ .../60_0family_dynamic.json | 23 ++++ .../60_0family_dynamic_1_0.json | 58 +++++++++ .../60_0family_dynamic_1_0_empty.json | 40 ++++++ .../60_0family_dynamic_1_0_type.json | 23 ++++ .../60_0family_dynamic_1_0_type_empty.json | 40 ++++++ .../60_0family_dynamic_1_1.json | 23 ++++ .../60_0family_dynamic_1_1_empty.json | 40 ++++++ .../60_0family_dynamic_empty.json | 40 ++++++ .../60_0family_dynamic_jinja_number.json | 60 +++++++++ ...60_0family_dynamic_jinja_number_empty.json | 22 ++++ .../60_0family_dynamic_no_description.json | 23 ++++ ..._0family_dynamic_no_description_empty.json | 40 ++++++ .../60_0family_dynamic_static.json | 23 ++++ .../60_0family_dynamic_test.json | 22 ++++ .../60_0family_dynamic_variable_empty.json | 22 ++++ .../60_0family_dynamic_variable_suffix.json | 58 +++++++++ ...0family_dynamic_variable_suffix_empty.json | 22 ++++ .../60_0family_empty.json | 36 ++++++ .../60_0family_hidden.json | 36 ++++++ .../60_0family_mode.json | 44 +++++++ .../60_1family_dynamic_jinja.json | 58 +++++++++ ..._2family_dynamic_jinja_fill_sub_group.json | 24 ++++ ...family_dynamic_jinja_fill_sub_group_2.json | 68 ++++++++++ ..._dynamic_jinja_fill_sub_group_2_empty.json | 42 ++++++ ...ly_dynamic_jinja_fill_sub_group_empty.json | 42 ++++++ .../60_2family_dynamic_outside_calc.json | 60 +++++++++ ...60_2family_dynamic_outside_calc_empty.json | 42 ++++++ .../60_5family_dynamic_calc2.json | 22 ++++ .../60_5family_dynamic_calc2_empty.json | 22 ++++ .../60_5family_dynamic_calc_suffix.json | 24 ++++ .../60_5family_dynamic_calc_suffix2.json | 58 +++++++++ ...60_5family_dynamic_calc_suffix2_empty.json | 40 ++++++ ..._5family_dynamic_calc_suffix_disabled.json | 22 ++++ .../60_5family_dynamic_calc_suffix_empty.json | 22 ++++ .../60_5family_dynamic_calc_suffix_param.json | 58 +++++++++ ...amily_dynamic_calc_suffix_param_empty.json | 40 ++++++ .../60_5family_dynamic_calc_variable.json | 24 ++++ ...0_5family_dynamic_calc_variable_empty.json | 22 ++++ .../60_5family_dynamic_hidden_suffix.json | 50 +++++++ .../60_5family_dynamic_unknown_suffix.json | 66 ++++++++++ ..._5family_dynamic_unknown_suffix_empty.json | 40 ++++++ .../60_5family_dynamic_variable_outside.json | 66 ++++++++++ .../60_5family_dynamic_variable_outside2.json | 66 ++++++++++ ...amily_dynamic_variable_outside2_empty.json | 22 ++++ ...family_dynamic_variable_outside_empty.json | 22 ++++ ...family_dynamic_variable_outside_jinja.json | 66 ++++++++++ ..._dynamic_variable_outside_jinja_empty.json | 22 ++++ ...y_dynamic_variable_outside_sub_suffix.json | 86 ++++++++++++ ...mic_variable_outside_sub_suffix_empty.json | 42 ++++++ ...amily_dynamic_variable_outside_suffix.json | 60 +++++++++ ...dynamic_variable_outside_suffix_empty.json | 42 ++++++ .../60_6family_dynamic_inside.json | 70 ++++++++++ .../60_6family_dynamic_inside_empty.json | 40 ++++++ .../60_6family_dynamic_leadership.json | 23 ++++ .../60_6family_dynamic_leadership_empty.json | 40 ++++++ .../60_6family_dynamic_sub_dynamic.json | 110 ++++++++++++++++ .../60_6family_dynamic_sub_dynamic_1_0.json | 110 ++++++++++++++++ .../60_6family_dynamic_sub_dynamic_empty.json | 40 ++++++ .../60_9extra_dynamic.json | 22 ++++ .../60_9extra_dynamic_extra.json | 22 ++++ .../60_9family_dynamic_calc_both.json | 23 ++++ .../68_0family_leadership_mode.json | 40 ++++++ tests/test_load.py | 93 +++++++++++++ 1045 files changed, 52125 insertions(+), 30 deletions(-) create mode 100644 tests/hosts/00-ip.yml create mode 100644 tests/hosts/10-group.yml create mode 100644 tests/results/test_namespace/00_0empty.json create mode 100644 tests/results/test_namespace/00_0version_underscore.json create mode 100644 tests/results/test_namespace/00_1empty_variable.json create mode 100644 tests/results/test_namespace/00_2default_calculated.json create mode 100644 tests/results/test_namespace/00_2default_calculated_multi.json create mode 100644 tests/results/test_namespace/00_2default_calculated_variable_transitive.json create mode 100644 tests/results/test_namespace/00_4load_subfolder.json create mode 100644 tests/results/test_namespace/00_5load_notype.json create mode 100644 tests/results/test_namespace/00_6boolean.json create mode 100644 tests/results/test_namespace/00_6boolean_no_mandatory.json create mode 100644 tests/results/test_namespace/00_6choice.json create mode 100644 tests/results/test_namespace/00_6choice_calculation.json create mode 100644 tests/results/test_namespace/00_6choice_variable.json create mode 100644 tests/results/test_namespace/00_6custom.json create mode 100644 tests/results/test_namespace/00_6domainname.json create mode 100644 tests/results/test_namespace/00_6domainname_params.json create mode 100644 tests/results/test_namespace/00_6float.json create mode 100644 tests/results/test_namespace/00_6number.json create mode 100644 tests/results/test_namespace/00_6port.json create mode 100644 tests/results/test_namespace/00_6regexp.json create mode 100644 tests/results/test_namespace/00_6string.json create mode 100644 tests/results/test_namespace/00_7choice_quote.json create mode 100644 tests/results/test_namespace/00_7help_quote.json create mode 100644 tests/results/test_namespace/00_7value_doublequote.json create mode 100644 tests/results/test_namespace/00_7value_doublequote2.json create mode 100644 tests/results/test_namespace/00_7value_doublequote3.json create mode 100644 tests/results/test_namespace/00_7value_quote.json create mode 100644 tests/results/test_namespace/00_8calculation_information.json create mode 100644 tests/results/test_namespace/00_8test.json create mode 100644 tests/results/test_namespace/00_9choice_variable_multi.json create mode 100644 tests/results/test_namespace/00_9choice_variables.json create mode 100644 tests/results/test_namespace/00_9default_calculation.json create mode 100644 tests/results/test_namespace/00_9default_calculation_information.json create mode 100644 tests/results/test_namespace/00_9default_calculation_information_other_variable.json create mode 100644 tests/results/test_namespace/00_9default_calculation_multi_optional.json create mode 100644 tests/results/test_namespace/00_9default_calculation_multi_optional2.json create mode 100644 tests/results/test_namespace/00_9default_calculation_optional.json create mode 100644 tests/results/test_namespace/00_9default_calculation_optional_exists.json create mode 100644 tests/results/test_namespace/00_9default_calculation_param_optional.json create mode 100644 tests/results/test_namespace/00_9default_information_other_variable.json create mode 100644 tests/results/test_namespace/00_9default_integer.json create mode 100644 tests/results/test_namespace/00_9extra.json create mode 100644 tests/results/test_namespace/00_9extra_calculation.json create mode 100644 tests/results/test_namespace/01_6boolean_multi.json create mode 100644 tests/results/test_namespace/01_6custom_multi.json create mode 100644 tests/results/test_namespace/01_6float_multi.json create mode 100644 tests/results/test_namespace/01_6number_multi.json create mode 100644 tests/results/test_namespace/01_6string_empty.json create mode 100644 tests/results/test_namespace/01_6string_multi.json create mode 100644 tests/results/test_namespace/01_7value_multi_doublequote.json create mode 100644 tests/results/test_namespace/01_7value_multi_doublequote2.json create mode 100644 tests/results/test_namespace/01_7value_multi_quote.json create mode 100644 tests/results/test_namespace/01_8calculation_information_multi.json create mode 100644 tests/results/test_namespace/01_9choice_variable_multi.json create mode 100644 tests/results/test_namespace/04_0type_param.json create mode 100644 tests/results/test_namespace/04_1auto_save.json create mode 100644 tests/results/test_namespace/04_1auto_save_and_calculated.json create mode 100644 tests/results/test_namespace/04_1auto_save_and_calculated_hidden.json create mode 100644 tests/results/test_namespace/04_1auto_save_and_hidden.json create mode 100644 tests/results/test_namespace/04_1default_calculation_hidden.json create mode 100644 tests/results/test_namespace/04_1default_calculation_hidden_2.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation_default.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation_optional.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable2.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable3.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable4.json create mode 100644 tests/results/test_namespace/04_5hidden_calculation.json create mode 100644 tests/results/test_namespace/04_5hidden_calculation2.json create mode 100644 tests/results/test_namespace/04_5hidden_calculation_default_calculation.json create mode 100644 tests/results/test_namespace/04_5validators.json create mode 100644 tests/results/test_namespace/04_5validators_differ.json create mode 100644 tests/results/test_namespace/04_5validators_multi.json create mode 100644 tests/results/test_namespace/04_5validators_multi2.json create mode 100644 tests/results/test_namespace/05_0multi_not_uniq.json create mode 100644 tests/results/test_namespace/05_0multi_uniq.json create mode 100644 tests/results/test_namespace/12_1auto_save_expert.json create mode 100644 tests/results/test_namespace/16_0redefine_description.json create mode 100644 tests/results/test_namespace/16_2family_redefine_calculation.json create mode 100644 tests/results/test_namespace/16_2family_redefine_disabled.json create mode 100644 tests/results/test_namespace/16_5exists_nonexists.json create mode 100644 tests/results/test_namespace/16_5exists_redefine.json create mode 100644 tests/results/test_namespace/16_5redefine_calculation.json create mode 100644 tests/results/test_namespace/16_5redefine_choice.json create mode 100644 tests/results/test_namespace/16_5redefine_default.json create mode 100644 tests/results/test_namespace/16_5redefine_default_calculation.json create mode 100644 tests/results/test_namespace/16_5redefine_family.json create mode 100644 tests/results/test_namespace/16_5redefine_help.json create mode 100644 tests/results/test_namespace/16_5redefine_hidden.json create mode 100644 tests/results/test_namespace/16_5redefine_multi.json create mode 100644 tests/results/test_namespace/16_5redefine_remove_disable_calculation.json create mode 100644 tests/results/test_namespace/16_5test_redefine.json create mode 100644 tests/results/test_namespace/16_6choice_redefine.json create mode 100644 tests/results/test_namespace/16_6exists_redefine_family.json create mode 100644 tests/results/test_namespace/16exists_exists.json create mode 100644 tests/results/test_namespace/17_5redefine_leadership.json create mode 100644 tests/results/test_namespace/20_0empty_family.json create mode 100644 tests/results/test_namespace/20_0family_append.json create mode 100644 tests/results/test_namespace/20_0family_underscore.json create mode 100644 tests/results/test_namespace/20_0multi_family.json create mode 100644 tests/results/test_namespace/20_0multi_family_basic.json create mode 100644 tests/results/test_namespace/20_0multi_family_expert.json create mode 100644 tests/results/test_namespace/20_0multi_family_order.json create mode 100644 tests/results/test_namespace/20_0validators_differ_redefine.json create mode 100644 tests/results/test_namespace/20_1empty_subfamily.json create mode 100644 tests/results/test_namespace/20_9default_information_parent.json create mode 100644 tests/results/test_namespace/24_0family_hidden_condition.json create mode 100644 tests/results/test_namespace/24_0family_hidden_condition_boolean.json create mode 100644 tests/results/test_namespace/24_0family_hidden_condition_sub_family.json create mode 100644 tests/results/test_namespace/24_0family_hidden_condition_variable_sub_family.json create mode 100644 tests/results/test_namespace/24_0family_hidden_condition_with_variable.json create mode 100644 tests/results/test_namespace/24_0family_hidden_param_condition_sub_family.json create mode 100644 tests/results/test_namespace/24_0family_mandatory_condition.json create mode 100644 tests/results/test_namespace/24_0family_mandatory_condition_variable.json create mode 100644 tests/results/test_namespace/24_7validators_variable_optional.json create mode 100644 tests/results/test_namespace/24_family_disabled_var_hidden.json create mode 100644 tests/results/test_namespace/40_0leadership.json create mode 100644 tests/results/test_namespace/40_0leadership_diff_name.json create mode 100644 tests/results/test_namespace/40_0leadership_empty.json create mode 100644 tests/results/test_namespace/40_0leadership_follower_default_calculation.json create mode 100644 tests/results/test_namespace/40_0leadership_follower_default_submulti.json create mode 100644 tests/results/test_namespace/40_0leadership_follower_default_submulti_calculation.json create mode 100644 tests/results/test_namespace/40_0leadership_follower_default_value.json create mode 100644 tests/results/test_namespace/40_0leadership_leader_not_multi.json create mode 100644 tests/results/test_namespace/40_1leadership_append_follower.json create mode 100644 tests/results/test_namespace/40_2leadership_calculation_index.json create mode 100644 tests/results/test_namespace/40_2leadership_calculation_param_index.json create mode 100644 tests/results/test_namespace/40_2leadership_leader_calculation.json create mode 100644 tests/results/test_namespace/40_6leadership_follower_multi.json create mode 100644 tests/results/test_namespace/40_8calculation_boolean.json create mode 100644 tests/results/test_namespace/40_8calculation_boolean_return_none.json create mode 100644 tests/results/test_namespace/40_8calculation_integer.json create mode 100644 tests/results/test_namespace/40_8calculation_multi_variable.json create mode 100644 tests/results/test_namespace/40_8calculation_multi_variable_parent.json create mode 100644 tests/results/test_namespace/40_8calculation_multi_variable_parent2.json create mode 100644 tests/results/test_namespace/41_0choice_leader.json create mode 100644 tests/results/test_namespace/44_0leadership_hidden.json create mode 100644 tests/results/test_namespace/44_0leadership_leader_hidden.json create mode 100644 tests/results/test_namespace/44_1leadership_append_hidden_follower.json create mode 100644 tests/results/test_namespace/44_4disabled_calcultion_follower.json create mode 100644 tests/results/test_namespace/44_4leadership_mandatory.json create mode 100644 tests/results/test_namespace/44_4leadership_mandatory_follower.json create mode 100644 tests/results/test_namespace/44_5leadership_leader_hidden_calculation.json create mode 100644 tests/results/test_namespace/44_6leadership_follower_disabled_calculation.json create mode 100644 tests/results/test_namespace/44_9calculated_default_leadership_leader.json create mode 100644 tests/results/test_namespace/60_0family_dynamic.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_1_0.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_1_0_empty.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_1_0_type.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_1_0_type_empty.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_1_1.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_1_1_empty.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_empty.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_jinja_number.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_jinja_number_empty.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_no_description.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_no_description_empty.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_static.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_test.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_variable_empty.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_variable_suffix.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_variable_suffix_empty.json create mode 100644 tests/results/test_namespace/60_0family_empty.json create mode 100644 tests/results/test_namespace/60_0family_hidden.json create mode 100644 tests/results/test_namespace/60_0family_mode.json create mode 100644 tests/results/test_namespace/60_1family_dynamic_jinja.json create mode 100644 tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group.json create mode 100644 tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group_2.json create mode 100644 tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group_2_empty.json create mode 100644 tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group_empty.json create mode 100644 tests/results/test_namespace/60_2family_dynamic_outside_calc.json create mode 100644 tests/results/test_namespace/60_2family_dynamic_outside_calc_empty.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_calc2.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_calc2_empty.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_calc_suffix.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_calc_suffix2.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_calc_suffix2_empty.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_calc_suffix_param.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_calc_suffix_param_empty.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_calc_variable.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_hidden_suffix.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_unknown_suffix.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_variable_outside.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_variable_outside2.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_variable_outside_jinja.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_variable_outside_jinja_empty.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix.json create mode 100644 tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.json create mode 100644 tests/results/test_namespace/60_6family_dynamic_inside.json create mode 100644 tests/results/test_namespace/60_6family_dynamic_inside_empty.json create mode 100644 tests/results/test_namespace/60_6family_dynamic_leadership.json create mode 100644 tests/results/test_namespace/60_6family_dynamic_leadership_empty.json create mode 100644 tests/results/test_namespace/60_6family_dynamic_sub_dynamic.json create mode 100644 tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.json create mode 100644 tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.json create mode 100644 tests/results/test_namespace/60_9extra_dynamic.json create mode 100644 tests/results/test_namespace/60_9extra_dynamic_extra.json create mode 100644 tests/results/test_namespace/60_9family_dynamic_calc_both.json create mode 100644 tests/results/test_namespace/68_0family_leadership_mode.json create mode 100644 tests/results/test_namespace_mandatory/00_0empty.json create mode 100644 tests/results/test_namespace_mandatory/00_0version_underscore.json create mode 100644 tests/results/test_namespace_mandatory/00_1empty_variable.json create mode 100644 tests/results/test_namespace_mandatory/00_2default_calculated.json create mode 100644 tests/results/test_namespace_mandatory/00_2default_calculated_multi.json create mode 100644 tests/results/test_namespace_mandatory/00_2default_calculated_variable_transitive.json create mode 100644 tests/results/test_namespace_mandatory/00_4load_subfolder.json create mode 100644 tests/results/test_namespace_mandatory/00_5load_notype.json create mode 100644 tests/results/test_namespace_mandatory/00_6boolean.json create mode 100644 tests/results/test_namespace_mandatory/00_6boolean_no_mandatory.json create mode 100644 tests/results/test_namespace_mandatory/00_6choice.json create mode 100644 tests/results/test_namespace_mandatory/00_6choice_calculation.json create mode 100644 tests/results/test_namespace_mandatory/00_6choice_variable.json create mode 100644 tests/results/test_namespace_mandatory/00_6custom.json create mode 100644 tests/results/test_namespace_mandatory/00_6domainname.json create mode 100644 tests/results/test_namespace_mandatory/00_6domainname_params.json create mode 100644 tests/results/test_namespace_mandatory/00_6float.json create mode 100644 tests/results/test_namespace_mandatory/00_6number.json create mode 100644 tests/results/test_namespace_mandatory/00_6port.json create mode 100644 tests/results/test_namespace_mandatory/00_6regexp.json create mode 100644 tests/results/test_namespace_mandatory/00_6string.json create mode 100644 tests/results/test_namespace_mandatory/00_7choice_quote.json create mode 100644 tests/results/test_namespace_mandatory/00_7help_quote.json create mode 100644 tests/results/test_namespace_mandatory/00_7value_doublequote.json create mode 100644 tests/results/test_namespace_mandatory/00_7value_doublequote2.json create mode 100644 tests/results/test_namespace_mandatory/00_7value_doublequote3.json create mode 100644 tests/results/test_namespace_mandatory/00_7value_quote.json create mode 100644 tests/results/test_namespace_mandatory/00_8calculation_information.json create mode 100644 tests/results/test_namespace_mandatory/00_8test.json create mode 100644 tests/results/test_namespace_mandatory/00_9choice_variable_multi.json create mode 100644 tests/results/test_namespace_mandatory/00_9choice_variables.json create mode 100644 tests/results/test_namespace_mandatory/00_9default_calculation.json create mode 100644 tests/results/test_namespace_mandatory/00_9default_calculation_information.json create mode 100644 tests/results/test_namespace_mandatory/00_9default_calculation_information_other_variable.json create mode 100644 tests/results/test_namespace_mandatory/00_9default_calculation_multi_optional.json create mode 100644 tests/results/test_namespace_mandatory/00_9default_calculation_multi_optional2.json create mode 100644 tests/results/test_namespace_mandatory/00_9default_calculation_optional.json create mode 100644 tests/results/test_namespace_mandatory/00_9default_calculation_optional_exists.json create mode 100644 tests/results/test_namespace_mandatory/00_9default_calculation_param_optional.json create mode 100644 tests/results/test_namespace_mandatory/00_9default_information_other_variable.json create mode 100644 tests/results/test_namespace_mandatory/00_9default_integer.json create mode 100644 tests/results/test_namespace_mandatory/00_9extra.json create mode 100644 tests/results/test_namespace_mandatory/00_9extra_calculation.json create mode 100644 tests/results/test_namespace_mandatory/01_6boolean_multi.json create mode 100644 tests/results/test_namespace_mandatory/01_6custom_multi.json create mode 100644 tests/results/test_namespace_mandatory/01_6float_multi.json create mode 100644 tests/results/test_namespace_mandatory/01_6number_multi.json create mode 100644 tests/results/test_namespace_mandatory/01_6string_empty.json create mode 100644 tests/results/test_namespace_mandatory/01_6string_multi.json create mode 100644 tests/results/test_namespace_mandatory/01_7value_multi_doublequote.json create mode 100644 tests/results/test_namespace_mandatory/01_7value_multi_doublequote2.json create mode 100644 tests/results/test_namespace_mandatory/01_7value_multi_quote.json create mode 100644 tests/results/test_namespace_mandatory/01_8calculation_information_multi.json create mode 100644 tests/results/test_namespace_mandatory/01_9choice_variable_multi.json create mode 100644 tests/results/test_namespace_mandatory/04_0type_param.json create mode 100644 tests/results/test_namespace_mandatory/04_1auto_save.json create mode 100644 tests/results/test_namespace_mandatory/04_1auto_save_and_calculated.json create mode 100644 tests/results/test_namespace_mandatory/04_1auto_save_and_calculated_hidden.json create mode 100644 tests/results/test_namespace_mandatory/04_1auto_save_and_hidden.json create mode 100644 tests/results/test_namespace_mandatory/04_1default_calculation_hidden.json create mode 100644 tests/results/test_namespace_mandatory/04_1default_calculation_hidden_2.json create mode 100644 tests/results/test_namespace_mandatory/04_5disabled_calculation.json create mode 100644 tests/results/test_namespace_mandatory/04_5disabled_calculation_default.json create mode 100644 tests/results/test_namespace_mandatory/04_5disabled_calculation_optional.json create mode 100644 tests/results/test_namespace_mandatory/04_5disabled_calculation_variable.json create mode 100644 tests/results/test_namespace_mandatory/04_5disabled_calculation_variable2.json create mode 100644 tests/results/test_namespace_mandatory/04_5disabled_calculation_variable3.json create mode 100644 tests/results/test_namespace_mandatory/04_5disabled_calculation_variable4.json create mode 100644 tests/results/test_namespace_mandatory/04_5hidden_calculation.json create mode 100644 tests/results/test_namespace_mandatory/04_5hidden_calculation2.json create mode 100644 tests/results/test_namespace_mandatory/04_5hidden_calculation_default_calculation.json create mode 100644 tests/results/test_namespace_mandatory/04_5validators.json create mode 100644 tests/results/test_namespace_mandatory/04_5validators_differ.json create mode 100644 tests/results/test_namespace_mandatory/04_5validators_multi.json create mode 100644 tests/results/test_namespace_mandatory/04_5validators_multi2.json create mode 100644 tests/results/test_namespace_mandatory/05_0multi_not_uniq.json create mode 100644 tests/results/test_namespace_mandatory/05_0multi_uniq.json create mode 100644 tests/results/test_namespace_mandatory/12_1auto_save_expert.json create mode 100644 tests/results/test_namespace_mandatory/16_0redefine_description.json create mode 100644 tests/results/test_namespace_mandatory/16_2family_redefine_calculation.json create mode 100644 tests/results/test_namespace_mandatory/16_2family_redefine_disabled.json create mode 100644 tests/results/test_namespace_mandatory/16_5exists_nonexists.json create mode 100644 tests/results/test_namespace_mandatory/16_5exists_redefine.json create mode 100644 tests/results/test_namespace_mandatory/16_5redefine_calculation.json create mode 100644 tests/results/test_namespace_mandatory/16_5redefine_choice.json create mode 100644 tests/results/test_namespace_mandatory/16_5redefine_default.json create mode 100644 tests/results/test_namespace_mandatory/16_5redefine_default_calculation.json create mode 100644 tests/results/test_namespace_mandatory/16_5redefine_family.json create mode 100644 tests/results/test_namespace_mandatory/16_5redefine_help.json create mode 100644 tests/results/test_namespace_mandatory/16_5redefine_hidden.json create mode 100644 tests/results/test_namespace_mandatory/16_5redefine_multi.json create mode 100644 tests/results/test_namespace_mandatory/16_5redefine_remove_disable_calculation.json create mode 100644 tests/results/test_namespace_mandatory/16_5test_redefine.json create mode 100644 tests/results/test_namespace_mandatory/16_6choice_redefine.json create mode 100644 tests/results/test_namespace_mandatory/16_6exists_redefine_family.json create mode 100644 tests/results/test_namespace_mandatory/16exists_exists.json create mode 100644 tests/results/test_namespace_mandatory/17_5redefine_leadership.json create mode 100644 tests/results/test_namespace_mandatory/20_0empty_family.json create mode 100644 tests/results/test_namespace_mandatory/20_0family_append.json create mode 100644 tests/results/test_namespace_mandatory/20_0family_underscore.json create mode 100644 tests/results/test_namespace_mandatory/20_0multi_family.json create mode 100644 tests/results/test_namespace_mandatory/20_0multi_family_basic.json create mode 100644 tests/results/test_namespace_mandatory/20_0multi_family_expert.json create mode 100644 tests/results/test_namespace_mandatory/20_0multi_family_order.json create mode 100644 tests/results/test_namespace_mandatory/20_0validators_differ_redefine.json create mode 100644 tests/results/test_namespace_mandatory/20_1empty_subfamily.json create mode 100644 tests/results/test_namespace_mandatory/20_9default_information_parent.json create mode 100644 tests/results/test_namespace_mandatory/24_0family_hidden_condition.json create mode 100644 tests/results/test_namespace_mandatory/24_0family_hidden_condition_boolean.json create mode 100644 tests/results/test_namespace_mandatory/24_0family_hidden_condition_sub_family.json create mode 100644 tests/results/test_namespace_mandatory/24_0family_hidden_condition_variable_sub_family.json create mode 100644 tests/results/test_namespace_mandatory/24_0family_hidden_condition_with_variable.json create mode 100644 tests/results/test_namespace_mandatory/24_0family_hidden_param_condition_sub_family.json create mode 100644 tests/results/test_namespace_mandatory/24_0family_mandatory_condition.json create mode 100644 tests/results/test_namespace_mandatory/24_0family_mandatory_condition_variable.json create mode 100644 tests/results/test_namespace_mandatory/24_7validators_variable_optional.json create mode 100644 tests/results/test_namespace_mandatory/24_family_disabled_var_hidden.json create mode 100644 tests/results/test_namespace_mandatory/40_0leadership.json create mode 100644 tests/results/test_namespace_mandatory/40_0leadership_diff_name.json create mode 100644 tests/results/test_namespace_mandatory/40_0leadership_empty.json create mode 100644 tests/results/test_namespace_mandatory/40_0leadership_follower_default_calculation.json create mode 100644 tests/results/test_namespace_mandatory/40_0leadership_follower_default_submulti.json create mode 100644 tests/results/test_namespace_mandatory/40_0leadership_follower_default_submulti_calculation.json create mode 100644 tests/results/test_namespace_mandatory/40_0leadership_follower_default_value.json create mode 100644 tests/results/test_namespace_mandatory/40_0leadership_leader_not_multi.json create mode 100644 tests/results/test_namespace_mandatory/40_1leadership_append_follower.json create mode 100644 tests/results/test_namespace_mandatory/40_2leadership_calculation_index.json create mode 100644 tests/results/test_namespace_mandatory/40_2leadership_calculation_param_index.json create mode 100644 tests/results/test_namespace_mandatory/40_2leadership_leader_calculation.json create mode 100644 tests/results/test_namespace_mandatory/40_6leadership_follower_multi.json create mode 100644 tests/results/test_namespace_mandatory/40_8calculation_boolean.json create mode 100644 tests/results/test_namespace_mandatory/40_8calculation_boolean_return_none.json create mode 100644 tests/results/test_namespace_mandatory/40_8calculation_integer.json create mode 100644 tests/results/test_namespace_mandatory/40_8calculation_multi_variable.json create mode 100644 tests/results/test_namespace_mandatory/40_8calculation_multi_variable_parent.json create mode 100644 tests/results/test_namespace_mandatory/40_8calculation_multi_variable_parent2.json create mode 100644 tests/results/test_namespace_mandatory/41_0choice_leader.json create mode 100644 tests/results/test_namespace_mandatory/44_0leadership_hidden.json create mode 100644 tests/results/test_namespace_mandatory/44_0leadership_leader_hidden.json create mode 100644 tests/results/test_namespace_mandatory/44_1leadership_append_hidden_follower.json create mode 100644 tests/results/test_namespace_mandatory/44_4disabled_calcultion_follower.json create mode 100644 tests/results/test_namespace_mandatory/44_4leadership_mandatory.json create mode 100644 tests/results/test_namespace_mandatory/44_4leadership_mandatory_follower.json create mode 100644 tests/results/test_namespace_mandatory/44_5leadership_leader_hidden_calculation.json create mode 100644 tests/results/test_namespace_mandatory/44_6leadership_follower_disabled_calculation.json create mode 100644 tests/results/test_namespace_mandatory/44_9calculated_default_leadership_leader.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_1_0.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_1_0_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_1_0_type.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_1_0_type_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_1_1.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_1_1_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_jinja_number.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_jinja_number_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_no_description.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_no_description_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_static.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_test.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_variable_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_variable_suffix.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_dynamic_variable_suffix_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_hidden.json create mode 100644 tests/results/test_namespace_mandatory/60_0family_mode.json create mode 100644 tests/results/test_namespace_mandatory/60_1family_dynamic_jinja.json create mode 100644 tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group.json create mode 100644 tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group_2.json create mode 100644 tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group_2_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_2family_dynamic_outside_calc.json create mode 100644 tests/results/test_namespace_mandatory/60_2family_dynamic_outside_calc_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_calc2.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_calc2_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix2.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix2_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_disabled.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_param.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_param_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_calc_variable.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_calc_variable_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_hidden_suffix.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_unknown_suffix.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_unknown_suffix_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside2.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside2_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_jinja.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_jinja_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_sub_suffix.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_sub_suffix_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_suffix.json create mode 100644 tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_suffix_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_6family_dynamic_inside.json create mode 100644 tests/results/test_namespace_mandatory/60_6family_dynamic_inside_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_6family_dynamic_leadership.json create mode 100644 tests/results/test_namespace_mandatory/60_6family_dynamic_leadership_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_6family_dynamic_sub_dynamic.json create mode 100644 tests/results/test_namespace_mandatory/60_6family_dynamic_sub_dynamic_1_0.json create mode 100644 tests/results/test_namespace_mandatory/60_6family_dynamic_sub_dynamic_empty.json create mode 100644 tests/results/test_namespace_mandatory/60_9extra_dynamic.json create mode 100644 tests/results/test_namespace_mandatory/60_9extra_dynamic_extra.json create mode 100644 tests/results/test_namespace_mandatory/60_9family_dynamic_calc_both.json create mode 100644 tests/results/test_namespace_mandatory/68_0family_leadership_mode.json create mode 100644 tests/results/test_namespace_read_write/00_0empty.json create mode 100644 tests/results/test_namespace_read_write/00_0version_underscore.json create mode 100644 tests/results/test_namespace_read_write/00_1empty_variable.json create mode 100644 tests/results/test_namespace_read_write/00_2default_calculated.json create mode 100644 tests/results/test_namespace_read_write/00_2default_calculated_multi.json create mode 100644 tests/results/test_namespace_read_write/00_2default_calculated_variable_transitive.json create mode 100644 tests/results/test_namespace_read_write/00_4load_subfolder.json create mode 100644 tests/results/test_namespace_read_write/00_5load_notype.json create mode 100644 tests/results/test_namespace_read_write/00_6boolean.json create mode 100644 tests/results/test_namespace_read_write/00_6boolean_no_mandatory.json create mode 100644 tests/results/test_namespace_read_write/00_6choice.json create mode 100644 tests/results/test_namespace_read_write/00_6choice_calculation.json create mode 100644 tests/results/test_namespace_read_write/00_6choice_variable.json create mode 100644 tests/results/test_namespace_read_write/00_6custom.json create mode 100644 tests/results/test_namespace_read_write/00_6domainname.json create mode 100644 tests/results/test_namespace_read_write/00_6domainname_params.json create mode 100644 tests/results/test_namespace_read_write/00_6float.json create mode 100644 tests/results/test_namespace_read_write/00_6number.json create mode 100644 tests/results/test_namespace_read_write/00_6port.json create mode 100644 tests/results/test_namespace_read_write/00_6regexp.json create mode 100644 tests/results/test_namespace_read_write/00_6string.json create mode 100644 tests/results/test_namespace_read_write/00_7choice_quote.json create mode 100644 tests/results/test_namespace_read_write/00_7help_quote.json create mode 100644 tests/results/test_namespace_read_write/00_7value_doublequote.json create mode 100644 tests/results/test_namespace_read_write/00_7value_doublequote2.json create mode 100644 tests/results/test_namespace_read_write/00_7value_doublequote3.json create mode 100644 tests/results/test_namespace_read_write/00_7value_quote.json create mode 100644 tests/results/test_namespace_read_write/00_8calculation_information.json create mode 100644 tests/results/test_namespace_read_write/00_8test.json create mode 100644 tests/results/test_namespace_read_write/00_9choice_variable_multi.json create mode 100644 tests/results/test_namespace_read_write/00_9choice_variables.json create mode 100644 tests/results/test_namespace_read_write/00_9default_calculation.json create mode 100644 tests/results/test_namespace_read_write/00_9default_calculation_information.json create mode 100644 tests/results/test_namespace_read_write/00_9default_calculation_information_other_variable.json create mode 100644 tests/results/test_namespace_read_write/00_9default_calculation_multi_optional.json create mode 100644 tests/results/test_namespace_read_write/00_9default_calculation_multi_optional2.json create mode 100644 tests/results/test_namespace_read_write/00_9default_calculation_optional.json create mode 100644 tests/results/test_namespace_read_write/00_9default_calculation_optional_exists.json create mode 100644 tests/results/test_namespace_read_write/00_9default_calculation_param_optional.json create mode 100644 tests/results/test_namespace_read_write/00_9default_information_other_variable.json create mode 100644 tests/results/test_namespace_read_write/00_9default_integer.json create mode 100644 tests/results/test_namespace_read_write/00_9extra.json create mode 100644 tests/results/test_namespace_read_write/00_9extra_calculation.json create mode 100644 tests/results/test_namespace_read_write/01_6boolean_multi.json create mode 100644 tests/results/test_namespace_read_write/01_6custom_multi.json create mode 100644 tests/results/test_namespace_read_write/01_6float_multi.json create mode 100644 tests/results/test_namespace_read_write/01_6number_multi.json create mode 100644 tests/results/test_namespace_read_write/01_6string_empty.json create mode 100644 tests/results/test_namespace_read_write/01_6string_multi.json create mode 100644 tests/results/test_namespace_read_write/01_7value_multi_doublequote.json create mode 100644 tests/results/test_namespace_read_write/01_7value_multi_doublequote2.json create mode 100644 tests/results/test_namespace_read_write/01_7value_multi_quote.json create mode 100644 tests/results/test_namespace_read_write/01_8calculation_information_multi.json create mode 100644 tests/results/test_namespace_read_write/01_9choice_variable_multi.json create mode 100644 tests/results/test_namespace_read_write/04_0type_param.json create mode 100644 tests/results/test_namespace_read_write/04_1auto_save.json create mode 100644 tests/results/test_namespace_read_write/04_1auto_save_and_calculated.json create mode 100644 tests/results/test_namespace_read_write/04_1auto_save_and_calculated_hidden.json create mode 100644 tests/results/test_namespace_read_write/04_1auto_save_and_hidden.json create mode 100644 tests/results/test_namespace_read_write/04_1default_calculation_hidden.json create mode 100644 tests/results/test_namespace_read_write/04_1default_calculation_hidden_2.json create mode 100644 tests/results/test_namespace_read_write/04_5disabled_calculation.json create mode 100644 tests/results/test_namespace_read_write/04_5disabled_calculation_default.json create mode 100644 tests/results/test_namespace_read_write/04_5disabled_calculation_optional.json create mode 100644 tests/results/test_namespace_read_write/04_5disabled_calculation_variable.json create mode 100644 tests/results/test_namespace_read_write/04_5disabled_calculation_variable2.json create mode 100644 tests/results/test_namespace_read_write/04_5disabled_calculation_variable3.json create mode 100644 tests/results/test_namespace_read_write/04_5disabled_calculation_variable4.json create mode 100644 tests/results/test_namespace_read_write/04_5hidden_calculation.json create mode 100644 tests/results/test_namespace_read_write/04_5hidden_calculation2.json create mode 100644 tests/results/test_namespace_read_write/04_5hidden_calculation_default_calculation.json create mode 100644 tests/results/test_namespace_read_write/04_5validators.json create mode 100644 tests/results/test_namespace_read_write/04_5validators_differ.json create mode 100644 tests/results/test_namespace_read_write/04_5validators_multi.json create mode 100644 tests/results/test_namespace_read_write/04_5validators_multi2.json create mode 100644 tests/results/test_namespace_read_write/05_0multi_not_uniq.json create mode 100644 tests/results/test_namespace_read_write/05_0multi_uniq.json create mode 100644 tests/results/test_namespace_read_write/12_1auto_save_expert.json create mode 100644 tests/results/test_namespace_read_write/16_0redefine_description.json create mode 100644 tests/results/test_namespace_read_write/16_2family_redefine_calculation.json create mode 100644 tests/results/test_namespace_read_write/16_2family_redefine_disabled.json create mode 100644 tests/results/test_namespace_read_write/16_5exists_nonexists.json create mode 100644 tests/results/test_namespace_read_write/16_5exists_redefine.json create mode 100644 tests/results/test_namespace_read_write/16_5redefine_calculation.json create mode 100644 tests/results/test_namespace_read_write/16_5redefine_choice.json create mode 100644 tests/results/test_namespace_read_write/16_5redefine_default.json create mode 100644 tests/results/test_namespace_read_write/16_5redefine_default_calculation.json create mode 100644 tests/results/test_namespace_read_write/16_5redefine_family.json create mode 100644 tests/results/test_namespace_read_write/16_5redefine_help.json create mode 100644 tests/results/test_namespace_read_write/16_5redefine_hidden.json create mode 100644 tests/results/test_namespace_read_write/16_5redefine_multi.json create mode 100644 tests/results/test_namespace_read_write/16_5redefine_remove_disable_calculation.json create mode 100644 tests/results/test_namespace_read_write/16_5test_redefine.json create mode 100644 tests/results/test_namespace_read_write/16_6choice_redefine.json create mode 100644 tests/results/test_namespace_read_write/16_6exists_redefine_family.json create mode 100644 tests/results/test_namespace_read_write/16exists_exists.json create mode 100644 tests/results/test_namespace_read_write/17_5redefine_leadership.json create mode 100644 tests/results/test_namespace_read_write/20_0empty_family.json create mode 100644 tests/results/test_namespace_read_write/20_0family_append.json create mode 100644 tests/results/test_namespace_read_write/20_0family_underscore.json create mode 100644 tests/results/test_namespace_read_write/20_0multi_family.json create mode 100644 tests/results/test_namespace_read_write/20_0multi_family_basic.json create mode 100644 tests/results/test_namespace_read_write/20_0multi_family_expert.json create mode 100644 tests/results/test_namespace_read_write/20_0multi_family_order.json create mode 100644 tests/results/test_namespace_read_write/20_0validators_differ_redefine.json create mode 100644 tests/results/test_namespace_read_write/20_1empty_subfamily.json create mode 100644 tests/results/test_namespace_read_write/20_9default_information_parent.json create mode 100644 tests/results/test_namespace_read_write/24_0family_hidden_condition.json create mode 100644 tests/results/test_namespace_read_write/24_0family_hidden_condition_boolean.json create mode 100644 tests/results/test_namespace_read_write/24_0family_hidden_condition_sub_family.json create mode 100644 tests/results/test_namespace_read_write/24_0family_hidden_condition_variable_sub_family.json create mode 100644 tests/results/test_namespace_read_write/24_0family_hidden_condition_with_variable.json create mode 100644 tests/results/test_namespace_read_write/24_0family_hidden_param_condition_sub_family.json create mode 100644 tests/results/test_namespace_read_write/24_0family_mandatory_condition.json create mode 100644 tests/results/test_namespace_read_write/24_0family_mandatory_condition_variable.json create mode 100644 tests/results/test_namespace_read_write/24_7validators_variable_optional.json create mode 100644 tests/results/test_namespace_read_write/24_family_disabled_var_hidden.json create mode 100644 tests/results/test_namespace_read_write/40_0leadership.json create mode 100644 tests/results/test_namespace_read_write/40_0leadership_diff_name.json create mode 100644 tests/results/test_namespace_read_write/40_0leadership_empty.json create mode 100644 tests/results/test_namespace_read_write/40_0leadership_follower_default_calculation.json create mode 100644 tests/results/test_namespace_read_write/40_0leadership_follower_default_submulti.json create mode 100644 tests/results/test_namespace_read_write/40_0leadership_follower_default_submulti_calculation.json create mode 100644 tests/results/test_namespace_read_write/40_0leadership_follower_default_value.json create mode 100644 tests/results/test_namespace_read_write/40_0leadership_leader_not_multi.json create mode 100644 tests/results/test_namespace_read_write/40_1leadership_append_follower.json create mode 100644 tests/results/test_namespace_read_write/40_2leadership_calculation_index.json create mode 100644 tests/results/test_namespace_read_write/40_2leadership_calculation_param_index.json create mode 100644 tests/results/test_namespace_read_write/40_2leadership_leader_calculation.json create mode 100644 tests/results/test_namespace_read_write/40_6leadership_follower_multi.json create mode 100644 tests/results/test_namespace_read_write/40_8calculation_boolean.json create mode 100644 tests/results/test_namespace_read_write/40_8calculation_boolean_return_none.json create mode 100644 tests/results/test_namespace_read_write/40_8calculation_integer.json create mode 100644 tests/results/test_namespace_read_write/40_8calculation_multi_variable.json create mode 100644 tests/results/test_namespace_read_write/40_8calculation_multi_variable_parent.json create mode 100644 tests/results/test_namespace_read_write/40_8calculation_multi_variable_parent2.json create mode 100644 tests/results/test_namespace_read_write/41_0choice_leader.json create mode 100644 tests/results/test_namespace_read_write/44_0leadership_hidden.json create mode 100644 tests/results/test_namespace_read_write/44_0leadership_leader_hidden.json create mode 100644 tests/results/test_namespace_read_write/44_1leadership_append_hidden_follower.json create mode 100644 tests/results/test_namespace_read_write/44_4disabled_calcultion_follower.json create mode 100644 tests/results/test_namespace_read_write/44_4leadership_mandatory.json create mode 100644 tests/results/test_namespace_read_write/44_4leadership_mandatory_follower.json create mode 100644 tests/results/test_namespace_read_write/44_5leadership_leader_hidden_calculation.json create mode 100644 tests/results/test_namespace_read_write/44_6leadership_follower_disabled_calculation.json create mode 100644 tests/results/test_namespace_read_write/44_9calculated_default_leadership_leader.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_1_0.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_1_0_empty.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_1_0_type.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_1_0_type_empty.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_1_1.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_1_1_empty.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_empty.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_jinja_number.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_jinja_number_empty.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_no_description.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_no_description_empty.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_static.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_test.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_variable_empty.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_variable_suffix.json create mode 100644 tests/results/test_namespace_read_write/60_0family_dynamic_variable_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write/60_0family_empty.json create mode 100644 tests/results/test_namespace_read_write/60_0family_hidden.json create mode 100644 tests/results/test_namespace_read_write/60_0family_mode.json create mode 100644 tests/results/test_namespace_read_write/60_1family_dynamic_jinja.json create mode 100644 tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group.json create mode 100644 tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group_2.json create mode 100644 tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group_2_empty.json create mode 100644 tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group_empty.json create mode 100644 tests/results/test_namespace_read_write/60_2family_dynamic_outside_calc.json create mode 100644 tests/results/test_namespace_read_write/60_2family_dynamic_outside_calc_empty.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_calc2.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_calc2_empty.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix2.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix2_empty.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_disabled.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_param.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_param_empty.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_calc_variable.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_calc_variable_empty.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_hidden_suffix.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_unknown_suffix.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_unknown_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside2.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside2_empty.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_empty.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_jinja.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_jinja_empty.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_sub_suffix.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_sub_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_suffix.json create mode 100644 tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write/60_6family_dynamic_inside.json create mode 100644 tests/results/test_namespace_read_write/60_6family_dynamic_inside_empty.json create mode 100644 tests/results/test_namespace_read_write/60_6family_dynamic_leadership.json create mode 100644 tests/results/test_namespace_read_write/60_6family_dynamic_leadership_empty.json create mode 100644 tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic.json create mode 100644 tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic_1_0.json create mode 100644 tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic_empty.json create mode 100644 tests/results/test_namespace_read_write/60_9extra_dynamic.json create mode 100644 tests/results/test_namespace_read_write/60_9extra_dynamic_extra.json create mode 100644 tests/results/test_namespace_read_write/60_9family_dynamic_calc_both.json create mode 100644 tests/results/test_namespace_read_write/68_0family_leadership_mode.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_0empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_0version_underscore.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_1empty_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_2default_calculated.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_2default_calculated_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_2default_calculated_variable_transitive.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_4load_subfolder.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_5load_notype.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_6boolean.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_6boolean_no_mandatory.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_6choice.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_6choice_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_6choice_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_6custom.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_6domainname.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_6domainname_params.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_6float.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_6number.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_6port.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_6regexp.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_6string.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_7choice_quote.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_7help_quote.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_7value_doublequote.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_7value_doublequote2.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_7value_doublequote3.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_7value_quote.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_8calculation_information.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_8test.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9choice_variable_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9choice_variables.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9default_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9default_calculation_information.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9default_calculation_information_other_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9default_calculation_multi_optional.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9default_calculation_multi_optional2.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9default_calculation_optional.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9default_calculation_optional_exists.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9default_calculation_param_optional.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9default_information_other_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9default_integer.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9extra.json create mode 100644 tests/results/test_namespace_read_write_mandatory/00_9extra_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/01_6boolean_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory/01_6custom_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory/01_6float_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory/01_6number_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory/01_6string_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/01_6string_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory/01_7value_multi_doublequote.json create mode 100644 tests/results/test_namespace_read_write_mandatory/01_7value_multi_doublequote2.json create mode 100644 tests/results/test_namespace_read_write_mandatory/01_7value_multi_quote.json create mode 100644 tests/results/test_namespace_read_write_mandatory/01_8calculation_information_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory/01_9choice_variable_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_0type_param.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_1auto_save.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_1auto_save_and_calculated.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_1auto_save_and_calculated_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_1auto_save_and_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_1default_calculation_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_1default_calculation_hidden_2.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_default.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_optional.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable2.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable3.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable4.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5hidden_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5hidden_calculation2.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5hidden_calculation_default_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5validators.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5validators_differ.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5validators_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory/04_5validators_multi2.json create mode 100644 tests/results/test_namespace_read_write_mandatory/05_0multi_not_uniq.json create mode 100644 tests/results/test_namespace_read_write_mandatory/05_0multi_uniq.json create mode 100644 tests/results/test_namespace_read_write_mandatory/12_1auto_save_expert.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_0redefine_description.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_2family_redefine_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_2family_redefine_disabled.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_5exists_nonexists.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_5exists_redefine.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_5redefine_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_5redefine_choice.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_5redefine_default.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_5redefine_default_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_5redefine_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_5redefine_help.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_5redefine_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_5redefine_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_5redefine_remove_disable_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_5test_redefine.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_6choice_redefine.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16_6exists_redefine_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory/16exists_exists.json create mode 100644 tests/results/test_namespace_read_write_mandatory/17_5redefine_leadership.json create mode 100644 tests/results/test_namespace_read_write_mandatory/20_0empty_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory/20_0family_append.json create mode 100644 tests/results/test_namespace_read_write_mandatory/20_0family_underscore.json create mode 100644 tests/results/test_namespace_read_write_mandatory/20_0multi_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory/20_0multi_family_basic.json create mode 100644 tests/results/test_namespace_read_write_mandatory/20_0multi_family_expert.json create mode 100644 tests/results/test_namespace_read_write_mandatory/20_0multi_family_order.json create mode 100644 tests/results/test_namespace_read_write_mandatory/20_0validators_differ_redefine.json create mode 100644 tests/results/test_namespace_read_write_mandatory/20_1empty_subfamily.json create mode 100644 tests/results/test_namespace_read_write_mandatory/20_9default_information_parent.json create mode 100644 tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition.json create mode 100644 tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_boolean.json create mode 100644 tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_sub_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_variable_sub_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_with_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory/24_0family_hidden_param_condition_sub_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory/24_0family_mandatory_condition.json create mode 100644 tests/results/test_namespace_read_write_mandatory/24_0family_mandatory_condition_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory/24_7validators_variable_optional.json create mode 100644 tests/results/test_namespace_read_write_mandatory/24_family_disabled_var_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_0leadership.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_0leadership_diff_name.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_0leadership_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_submulti.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_submulti_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_value.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_0leadership_leader_not_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_1leadership_append_follower.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_2leadership_calculation_index.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_2leadership_calculation_param_index.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_2leadership_leader_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_6leadership_follower_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_8calculation_boolean.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_8calculation_boolean_return_none.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_8calculation_integer.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_8calculation_multi_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_8calculation_multi_variable_parent.json create mode 100644 tests/results/test_namespace_read_write_mandatory/40_8calculation_multi_variable_parent2.json create mode 100644 tests/results/test_namespace_read_write_mandatory/41_0choice_leader.json create mode 100644 tests/results/test_namespace_read_write_mandatory/44_0leadership_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory/44_0leadership_leader_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory/44_1leadership_append_hidden_follower.json create mode 100644 tests/results/test_namespace_read_write_mandatory/44_4disabled_calcultion_follower.json create mode 100644 tests/results/test_namespace_read_write_mandatory/44_4leadership_mandatory.json create mode 100644 tests/results/test_namespace_read_write_mandatory/44_4leadership_mandatory_follower.json create mode 100644 tests/results/test_namespace_read_write_mandatory/44_5leadership_leader_hidden_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/44_6leadership_follower_disabled_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory/44_9calculated_default_leadership_leader.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0_type.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0_type_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_1.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_1_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_jinja_number.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_jinja_number_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_no_description.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_no_description_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_static.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_test.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_suffix.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_0family_mode.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_1family_dynamic_jinja.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group_2.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group_2_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_outside_calc.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_outside_calc_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc2.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc2_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix2.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix2_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_disabled.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_param.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_param_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_variable_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_hidden_suffix.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_unknown_suffix.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_unknown_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside2.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside2_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_jinja.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_jinja_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_sub_suffix.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_sub_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_suffix.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_inside.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_inside_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_leadership.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_leadership_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_sub_dynamic.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_sub_dynamic_1_0.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_sub_dynamic_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_9extra_dynamic.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_9extra_dynamic_extra.json create mode 100644 tests/results/test_namespace_read_write_mandatory/60_9family_dynamic_calc_both.json create mode 100644 tests/results/test_namespace_read_write_mandatory/68_0family_leadership_mode.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_0empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_0version_underscore.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_1empty_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated_variable_transitive.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_4load_subfolder.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_5load_notype.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_6boolean.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_6boolean_no_mandatory.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_6choice.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_6choice_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_6choice_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_6custom.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_6domainname.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_6domainname_params.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_6float.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_6number.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_6port.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_6regexp.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_6string.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_7choice_quote.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_7help_quote.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_7value_doublequote.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_7value_doublequote2.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_7value_doublequote3.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_7value_quote.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_8calculation_information.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_8test.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9choice_variable_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9choice_variables.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_information.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_information_other_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_multi_optional.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_multi_optional2.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_optional.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_optional_exists.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_param_optional.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9default_information_other_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9default_integer.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9extra.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/00_9extra_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/01_6boolean_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/01_6custom_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/01_6float_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/01_6number_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/01_6string_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/01_6string_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/01_7value_multi_doublequote.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/01_7value_multi_doublequote2.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/01_7value_multi_quote.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/01_8calculation_information_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/01_9choice_variable_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_0type_param.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save_and_calculated.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save_and_calculated_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save_and_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_1default_calculation_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_1default_calculation_hidden_2.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_default.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_optional.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable2.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable3.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable4.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5hidden_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5hidden_calculation2.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5hidden_calculation_default_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5validators.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5validators_differ.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5validators_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5validators_multi2.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/05_0multi_not_uniq.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/05_0multi_uniq.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/12_1auto_save_expert.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_0redefine_description.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_2family_redefine_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_2family_redefine_disabled.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_5exists_nonexists.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_5exists_redefine.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_choice.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_default.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_default_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_help.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_remove_disable_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_5test_redefine.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_6choice_redefine.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16_6exists_redefine_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/16exists_exists.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/17_5redefine_leadership.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/20_0empty_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/20_0family_append.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/20_0family_underscore.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family_basic.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family_expert.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family_order.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/20_0validators_differ_redefine.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/20_1empty_subfamily.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/20_9default_information_parent.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_boolean.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_sub_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_variable_sub_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_with_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_param_condition_sub_family.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/24_0family_mandatory_condition.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/24_0family_mandatory_condition_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/24_7validators_variable_optional.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/24_family_disabled_var_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_0leadership.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_diff_name.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_submulti.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_submulti_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_value.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_leader_not_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_1leadership_append_follower.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_calculation_index.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_calculation_param_index.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_leader_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_6leadership_follower_multi.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_boolean.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_boolean_return_none.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_integer.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_multi_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_multi_variable_parent.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_multi_variable_parent2.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/41_0choice_leader.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/44_0leadership_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/44_0leadership_leader_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/44_1leadership_append_hidden_follower.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/44_4disabled_calcultion_follower.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/44_4leadership_mandatory.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/44_4leadership_mandatory_follower.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/44_5leadership_leader_hidden_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/44_6leadership_follower_disabled_calculation.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/44_9calculated_default_leadership_leader.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0_type.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0_type_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_1.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_1_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_jinja_number.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_jinja_number_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_no_description.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_no_description_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_static.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_test.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_suffix.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_hidden.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_0family_mode.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_1family_dynamic_jinja.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group_2.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group_2_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_outside_calc.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_outside_calc_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc2.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc2_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix2.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix2_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_disabled.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_param.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_param_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_variable.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_variable_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_hidden_suffix.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_unknown_suffix.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_unknown_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside2.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside2_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_jinja.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_jinja_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_sub_suffix.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_sub_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_suffix.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_suffix_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_inside.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_inside_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_leadership.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_leadership_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_sub_dynamic.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_sub_dynamic_1_0.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_sub_dynamic_empty.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_9extra_dynamic.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_9extra_dynamic_extra.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/60_9family_dynamic_calc_both.json create mode 100644 tests/results/test_namespace_read_write_mandatory_errors/68_0family_leadership_mode.json create mode 100644 tests/test_load.py diff --git a/src/rougail/output_ansible/__init__.py b/src/rougail/output_ansible/__init__.py index 8151cb6..a9bce01 100644 --- a/src/rougail/output_ansible/__init__.py +++ b/src/rougail/output_ansible/__init__.py @@ -19,46 +19,83 @@ along with this program. If not, see . from typing import Optional from json import dumps +from tiramisu import groups + from .i18n import _ from ..output_json import RougailOutputJson class RougailOutputAnsible(RougailOutputJson): + output_name = "ansible" + def __init__( self, config: "Config", + *, rougailconfig: "RougailConfig" = None, - user_data_errors: Optional[list] = None, - user_data_warnings: Optional[list] = None, + **kwargs, ) -> None: - if rougailconfig is None: - from rougail import RougailConfig - - rougailconfig = RougailConfig - self.rougailconfig = rougailconfig + super().__init__(config, rougailconfig=rougailconfig, **kwargs) + try: + groups.namespace + self.support_namespace = True + except AttributeError: + self.support_namespace = False self.host_namespace = self.rougailconfig["ansible.host_namespace"] - self.config = config - self.read_write = False - self.is_mandatory = True - self.dico = {} - self.errors = [] - self.warnings = [] def exporter(self) -> None: super().exporter() self.json_to_ansible() + def manage_errors(self) -> bool: + if not super().manage_errors(): + if not self.support_namespace: + self.errors.append(_('no namespace configured')) + hosts_config = self.config.option('hosts') + try: + if hosts_config.group_type() != groups.namespace: + hosts_config = None + except AttributeError: + hosts_config = None + if not hosts_config: + self.errors.append(_('cannot find hosts namespace "{0}"').format(self.host_namespace)) + else: + try: + hosts_config.option('hostnames').name() + except AttributeError: + self.errors.append(_('malformated hosts namespace "{0}", should has "hostnames"').format(self.host_namespace)) + return super().manage_errors() + return True + + def parse_family( + self, + conf, + child, + ): + if self.read_write and conf.path() == self.host_namespace: + self.config.property.read_only() + super().parse_family(conf, child) + if self.read_write and conf.path() == self.host_namespace: + self.config.property.read_write() + def json_to_ansible(self): ret = {"_meta": {"hostvars": {}}, "all": {"children": ["ungrouped"]}} - if self.host_namespace not in self.dico: - self.errors.append(_('cannot find hosts namespace "{0}"').format(self.host_namespace)) - elif 'hostnames' not in self.dico[self.host_namespace]: - self.errors.append(_('malformated hosts namespace "{0}", should has "hostnames"').format(self.host_namespace)) - if self.errors: - ret["_meta"]["hostvars"]["localhost"] = {'_errors': self.errors} + if '_warnings' in self.dico: + ret["_meta"]["hostvars"]["localhost"] = {'_warnings': self.dico.pop('_warnings')} ret["ungrouped"] = {"hosts": ["localhost"]} - else: - hostnames = self.dico[self.host_namespace]['hostnames'] + if '_errors' in self.dico: + ret["_meta"]["hostvars"].setdefault("localhost", {})['_errors'] = self.dico.pop('_errors') + if "ungrouped" not in ret: + ret["ungrouped"] = {"hosts": ["localhost"]} + if self.host_namespace in self.dico: + hosts = self.dico.pop(self.host_namespace) + if "hostnames" not in hosts: + ret["_meta"]["hostvars"].setdefault("localhost", {}).setdefault('_errors', []).append(_('cannot find "hostnames" in "{0}" namespace').format(self.host_namespace)) + if "ungrouped" not in ret: + ret["ungrouped"] = {"hosts": ["localhost"]} + hostnames = {} + else: + hostnames = hosts['hostnames'] ret_hosts = {} for name, hosts in hostnames.items(): if 'hosts' in hosts: diff --git a/src/rougail/output_ansible/config.py b/src/rougail/output_ansible/config.py index ec672db..e9a5b82 100644 --- a/src/rougail/output_ansible/config.py +++ b/src/rougail/output_ansible/config.py @@ -35,24 +35,24 @@ list: disabled {% endif %} -ansible: - description: Configuration of output Ansible +json: + redefine: true disabled: type: jinja jinja: | - {% if step.output != 'ansible' %} + {% if step.output != 'json' and step.output != 'ansible' %} disabled {% endif %} +ansible: + description: Configuration of output Ansible + disabled: + variable: step.output + when_not: ansible + host_namespace: description: Namespace with host values default: "hosts" - disabled: - type: jinja - jinja: | - {% if step.output != 'ansible' %} - disabled - {% endif %} """ return { "name": "ansible", diff --git a/tests/hosts/00-ip.yml b/tests/hosts/00-ip.yml new file mode 100644 index 0000000..619177a --- /dev/null +++ b/tests/hosts/00-ip.yml @@ -0,0 +1,23 @@ +--- +version: "1.1" + +hostnames: + hidden: true + + group1: + hosts: + type: domainname + multi: true + default: + - group1.net + prefix_name: + default: GROUP1_ + + group2: + hosts: + type: domainname + multi: true + default: + - group2.net + prefix_name: + default: GROUP2_ diff --git a/tests/hosts/10-group.yml b/tests/hosts/10-group.yml new file mode 100644 index 0000000..48f75aa --- /dev/null +++ b/tests/hosts/10-group.yml @@ -0,0 +1,11 @@ +--- +version: "1.1" + +hostnames: + + groups: + children: + multi: true + default: + - group1 + - group2 diff --git a/tests/results/test_namespace/00_0empty.json b/tests/results/test_namespace/00_0empty.json new file mode 100644 index 0000000..b7155d1 --- /dev/null +++ b/tests/results/test_namespace/00_0empty.json @@ -0,0 +1,34 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net" + }, + "GROUP2_01": { + "ansible_host": "group2.net" + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_0version_underscore.json b/tests/results/test_namespace/00_0version_underscore.json new file mode 100644 index 0000000..bd80d72 --- /dev/null +++ b/tests/results/test_namespace/00_0version_underscore.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "version": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "version": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_1empty_variable.json b/tests/results/test_namespace/00_1empty_variable.json new file mode 100644 index 0000000..9cef03d --- /dev/null +++ b/tests/results/test_namespace/00_1empty_variable.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "empty": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "empty": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_2default_calculated.json b/tests/results/test_namespace/00_2default_calculated.json new file mode 100644 index 0000000..05ad432 --- /dev/null +++ b/tests/results/test_namespace/00_2default_calculated.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_2default_calculated_multi.json b/tests/results/test_namespace/00_2default_calculated_multi.json new file mode 100644 index 0000000..21ea2fd --- /dev/null +++ b/tests/results/test_namespace/00_2default_calculated_multi.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ], + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ], + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_2default_calculated_variable_transitive.json b/tests/results/test_namespace/00_2default_calculated_variable_transitive.json new file mode 100644 index 0000000..007f98f --- /dev/null +++ b/tests/results/test_namespace/00_2default_calculated_variable_transitive.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_4load_subfolder.json b/tests/results/test_namespace/00_4load_subfolder.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace/00_4load_subfolder.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_5load_notype.json b/tests/results/test_namespace/00_5load_notype.json new file mode 100644 index 0000000..f19922d --- /dev/null +++ b/tests/results/test_namespace/00_5load_notype.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "without_type": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "without_type": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_6boolean.json b/tests/results/test_namespace/00_6boolean.json new file mode 100644 index 0000000..21844b6 --- /dev/null +++ b/tests/results/test_namespace/00_6boolean.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": true, + "var2": true, + "var3": true, + "var4": true, + "var5": true, + "var6": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": true, + "var2": true, + "var3": true, + "var4": true, + "var5": true, + "var6": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_6boolean_no_mandatory.json b/tests/results/test_namespace/00_6boolean_no_mandatory.json new file mode 100644 index 0000000..ed87618 --- /dev/null +++ b/tests/results/test_namespace/00_6boolean_no_mandatory.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_6choice.json b/tests/results/test_namespace/00_6choice.json new file mode 100644 index 0000000..c4ded58 --- /dev/null +++ b/tests/results/test_namespace/00_6choice.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "a", + "var2": "a", + "var3": "a", + "var4": null, + "var5": "a", + "var6": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "a", + "var2": "a", + "var3": "a", + "var4": null, + "var5": "a", + "var6": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_6choice_calculation.json b/tests/results/test_namespace/00_6choice_calculation.json new file mode 100644 index 0000000..0141810 --- /dev/null +++ b/tests/results/test_namespace/00_6choice_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": 0 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": 0 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_6choice_variable.json b/tests/results/test_namespace/00_6choice_variable.json new file mode 100644 index 0000000..ee70e8e --- /dev/null +++ b/tests/results/test_namespace/00_6choice_variable.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ], + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ], + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_6custom.json b/tests/results/test_namespace/00_6custom.json new file mode 100644 index 0000000..a820538 --- /dev/null +++ b/tests/results/test_namespace/00_6custom.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "custom1": "string1", + "custom2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "custom1": "string1", + "custom2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_6domainname.json b/tests/results/test_namespace/00_6domainname.json new file mode 100644 index 0000000..7e46a53 --- /dev/null +++ b/tests/results/test_namespace/00_6domainname.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "domain1.lan" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "domain1.lan" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_6domainname_params.json b/tests/results/test_namespace/00_6domainname_params.json new file mode 100644 index 0000000..7e46a53 --- /dev/null +++ b/tests/results/test_namespace/00_6domainname_params.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "domain1.lan" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "domain1.lan" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_6float.json b/tests/results/test_namespace/00_6float.json new file mode 100644 index 0000000..559aa73 --- /dev/null +++ b/tests/results/test_namespace/00_6float.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": 1.1, + "var2": 1.1, + "var3": 1.1, + "var4": 1.1, + "var5": 1.1, + "var6": 1.1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": 1.1, + "var2": 1.1, + "var3": 1.1, + "var4": 1.1, + "var5": 1.1, + "var6": 1.1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_6number.json b/tests/results/test_namespace/00_6number.json new file mode 100644 index 0000000..231589d --- /dev/null +++ b/tests/results/test_namespace/00_6number.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": 1, + "var2": 1, + "var3": 1, + "var4": 1, + "var5": 1, + "var6": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": 1, + "var2": 1, + "var3": 1, + "var4": 1, + "var5": 1, + "var6": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_6port.json b/tests/results/test_namespace/00_6port.json new file mode 100644 index 0000000..9c774ee --- /dev/null +++ b/tests/results/test_namespace/00_6port.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable1": "80", + "variable2": "80", + "variable3": "80" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable1": "80", + "variable2": "80", + "variable3": "80" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_6regexp.json b/tests/results/test_namespace/00_6regexp.json new file mode 100644 index 0000000..76a5579 --- /dev/null +++ b/tests/results/test_namespace/00_6regexp.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "#b1b1b1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "#b1b1b1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_6string.json b/tests/results/test_namespace/00_6string.json new file mode 100644 index 0000000..19b7111 --- /dev/null +++ b/tests/results/test_namespace/00_6string.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1", + "var5": "string1", + "var6": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1", + "var5": "string1", + "var6": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_7choice_quote.json b/tests/results/test_namespace/00_7choice_quote.json new file mode 100644 index 0000000..05d9eb3 --- /dev/null +++ b/tests/results/test_namespace/00_7choice_quote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "quote'" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "quote'" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_7help_quote.json b/tests/results/test_namespace/00_7help_quote.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace/00_7help_quote.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_7value_doublequote.json b/tests/results/test_namespace/00_7value_doublequote.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace/00_7value_doublequote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_7value_doublequote2.json b/tests/results/test_namespace/00_7value_doublequote2.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace/00_7value_doublequote2.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_7value_doublequote3.json b/tests/results/test_namespace/00_7value_doublequote3.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace/00_7value_doublequote3.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_7value_quote.json b/tests/results/test_namespace/00_7value_quote.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace/00_7value_quote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_8calculation_information.json b/tests/results/test_namespace/00_8calculation_information.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace/00_8calculation_information.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_8test.json b/tests/results/test_namespace/00_8test.json new file mode 100644 index 0000000..6e415de --- /dev/null +++ b/tests/results/test_namespace/00_8test.json @@ -0,0 +1,56 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "test", + "var2": "test", + "var3": "test1", + "var4": null, + "var5": false, + "var6": [ + "test1", + "test2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "test", + "var2": "test", + "var3": "test1", + "var4": null, + "var5": false, + "var6": [ + "test1", + "test2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9choice_variable_multi.json b/tests/results/test_namespace/00_9choice_variable_multi.json new file mode 100644 index 0000000..bda86f3 --- /dev/null +++ b/tests/results/test_namespace/00_9choice_variable_multi.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable1": [ + "val1", + "val2" + ], + "variable2": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable1": [ + "val1", + "val2" + ], + "variable2": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9choice_variables.json b/tests/results/test_namespace/00_9choice_variables.json new file mode 100644 index 0000000..bf89a3e --- /dev/null +++ b/tests/results/test_namespace/00_9choice_variables.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "source_variable_1": "string1", + "source_variable_2": "string1", + "my_variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "source_variable_1": "string1", + "source_variable_2": "string1", + "my_variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9default_calculation.json b/tests/results/test_namespace/00_9default_calculation.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9default_calculation_information.json b/tests/results/test_namespace/00_9default_calculation_information.json new file mode 100644 index 0000000..d92dffa --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_information.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9default_calculation_information_other_variable.json b/tests/results/test_namespace/00_9default_calculation_information_other_variable.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_information_other_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9default_calculation_multi_optional.json b/tests/results/test_namespace/00_9default_calculation_multi_optional.json new file mode 100644 index 0000000..727da65 --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_multi_optional.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9default_calculation_multi_optional2.json b/tests/results/test_namespace/00_9default_calculation_multi_optional2.json new file mode 100644 index 0000000..727da65 --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_multi_optional2.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9default_calculation_optional.json b/tests/results/test_namespace/00_9default_calculation_optional.json new file mode 100644 index 0000000..c5fcd48 --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_optional.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9default_calculation_optional_exists.json b/tests/results/test_namespace/00_9default_calculation_optional_exists.json new file mode 100644 index 0000000..78f1cd8 --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_optional_exists.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": [ + "string1", + "string2", + "string3" + ], + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": [ + "string1", + "string2", + "string3" + ], + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9default_calculation_param_optional.json b/tests/results/test_namespace/00_9default_calculation_param_optional.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_param_optional.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9default_information_other_variable.json b/tests/results/test_namespace/00_9default_information_other_variable.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace/00_9default_information_other_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9default_integer.json b/tests/results/test_namespace/00_9default_integer.json new file mode 100644 index 0000000..0141810 --- /dev/null +++ b/tests/results/test_namespace/00_9default_integer.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": 0 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": 0 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9extra.json b/tests/results/test_namespace/00_9extra.json new file mode 100644 index 0000000..a9492d3 --- /dev/null +++ b/tests/results/test_namespace/00_9extra.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + }, + "extra": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + }, + "extra": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/00_9extra_calculation.json b/tests/results/test_namespace/00_9extra_calculation.json new file mode 100644 index 0000000..8445e79 --- /dev/null +++ b/tests/results/test_namespace/00_9extra_calculation.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + }, + "extra": { + "variable1": "string1", + "variable2": "string1", + "variable3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + }, + "extra": { + "variable1": "string1", + "variable2": "string1", + "variable3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/01_6boolean_multi.json b/tests/results/test_namespace/01_6boolean_multi.json new file mode 100644 index 0000000..694ceab --- /dev/null +++ b/tests/results/test_namespace/01_6boolean_multi.json @@ -0,0 +1,86 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + true + ], + "var2": [ + true + ], + "var3": [ + true + ], + "var4": [ + true + ], + "var5": [ + true + ], + "var6": [ + true + ], + "var7": [ + true + ], + "var8": [ + true + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + true + ], + "var2": [ + true + ], + "var3": [ + true + ], + "var4": [ + true + ], + "var5": [ + true + ], + "var6": [ + true + ], + "var7": [ + true + ], + "var8": [ + true + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/01_6custom_multi.json b/tests/results/test_namespace/01_6custom_multi.json new file mode 100644 index 0000000..6b27a50 --- /dev/null +++ b/tests/results/test_namespace/01_6custom_multi.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "custom1": [ + "string1", + "string2", + "string3" + ], + "custom2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "custom1": [ + "string1", + "string2", + "string3" + ], + "custom2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/01_6float_multi.json b/tests/results/test_namespace/01_6float_multi.json new file mode 100644 index 0000000..6897264 --- /dev/null +++ b/tests/results/test_namespace/01_6float_multi.json @@ -0,0 +1,118 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "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 + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "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 + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/01_6number_multi.json b/tests/results/test_namespace/01_6number_multi.json new file mode 100644 index 0000000..5c58eb9 --- /dev/null +++ b/tests/results/test_namespace/01_6number_multi.json @@ -0,0 +1,118 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "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 + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "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 + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/01_6string_empty.json b/tests/results/test_namespace/01_6string_empty.json new file mode 100644 index 0000000..dc93c21 --- /dev/null +++ b/tests/results/test_namespace/01_6string_empty.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/01_6string_multi.json b/tests/results/test_namespace/01_6string_multi.json new file mode 100644 index 0000000..9a35202 --- /dev/null +++ b/tests/results/test_namespace/01_6string_multi.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "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" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "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" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/01_7value_multi_doublequote.json b/tests/results/test_namespace/01_7value_multi_doublequote.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace/01_7value_multi_doublequote.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/01_7value_multi_doublequote2.json b/tests/results/test_namespace/01_7value_multi_doublequote2.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace/01_7value_multi_doublequote2.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/01_7value_multi_quote.json b/tests/results/test_namespace/01_7value_multi_quote.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace/01_7value_multi_quote.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/01_8calculation_information_multi.json b/tests/results/test_namespace/01_8calculation_information_multi.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace/01_8calculation_information_multi.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/01_9choice_variable_multi.json b/tests/results/test_namespace/01_9choice_variable_multi.json new file mode 100644 index 0000000..d38bdf2 --- /dev/null +++ b/tests/results/test_namespace/01_9choice_variable_multi.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable1": [ + "string1", + "string2", + "string3" + ], + "variable2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable1": [ + "string1", + "string2", + "string3" + ], + "variable2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_0type_param.json b/tests/results/test_namespace/04_0type_param.json new file mode 100644 index 0000000..602d586 --- /dev/null +++ b/tests/results/test_namespace/04_0type_param.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "int": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "int": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_1auto_save.json b/tests/results/test_namespace/04_1auto_save.json new file mode 100644 index 0000000..7b77c76 --- /dev/null +++ b/tests/results/test_namespace/04_1auto_save.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_1auto_save_and_calculated.json b/tests/results/test_namespace/04_1auto_save_and_calculated.json new file mode 100644 index 0000000..ecf0b6c --- /dev/null +++ b/tests/results/test_namespace/04_1auto_save_and_calculated.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_1auto_save_and_calculated_hidden.json b/tests/results/test_namespace/04_1auto_save_and_calculated_hidden.json new file mode 100644 index 0000000..84dc858 --- /dev/null +++ b/tests/results/test_namespace/04_1auto_save_and_calculated_hidden.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_1auto_save_and_hidden.json b/tests/results/test_namespace/04_1auto_save_and_hidden.json new file mode 100644 index 0000000..4ff4f9c --- /dev/null +++ b/tests/results/test_namespace/04_1auto_save_and_hidden.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_1default_calculation_hidden.json b/tests/results/test_namespace/04_1default_calculation_hidden.json new file mode 100644 index 0000000..856d334 --- /dev/null +++ b/tests/results/test_namespace/04_1default_calculation_hidden.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_1default_calculation_hidden_2.json b/tests/results/test_namespace/04_1default_calculation_hidden_2.json new file mode 100644 index 0000000..856d334 --- /dev/null +++ b/tests/results/test_namespace/04_1default_calculation_hidden_2.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5disabled_calculation.json b/tests/results/test_namespace/04_5disabled_calculation.json new file mode 100644 index 0000000..829a57b --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "variable1": "string1", + "variable2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "variable1": "string1", + "variable2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_default.json b/tests/results/test_namespace/04_5disabled_calculation_default.json new file mode 100644 index 0000000..464e314 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_default.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_optional.json b/tests/results/test_namespace/04_5disabled_calculation_optional.json new file mode 100644 index 0000000..1fbd301 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_optional.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var1": null, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var1": null, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable.json b/tests/results/test_namespace/04_5disabled_calculation_variable.json new file mode 100644 index 0000000..7f98eb8 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable2.json b/tests/results/test_namespace/04_5disabled_calculation_variable2.json new file mode 100644 index 0000000..7f98eb8 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable2.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable3.json b/tests/results/test_namespace/04_5disabled_calculation_variable3.json new file mode 100644 index 0000000..ec044a9 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable3.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable4.json b/tests/results/test_namespace/04_5disabled_calculation_variable4.json new file mode 100644 index 0000000..6ee0182 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable4.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5hidden_calculation.json b/tests/results/test_namespace/04_5hidden_calculation.json new file mode 100644 index 0000000..464e314 --- /dev/null +++ b/tests/results/test_namespace/04_5hidden_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5hidden_calculation2.json b/tests/results/test_namespace/04_5hidden_calculation2.json new file mode 100644 index 0000000..464e314 --- /dev/null +++ b/tests/results/test_namespace/04_5hidden_calculation2.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5hidden_calculation_default_calculation.json b/tests/results/test_namespace/04_5hidden_calculation_default_calculation.json new file mode 100644 index 0000000..464e314 --- /dev/null +++ b/tests/results/test_namespace/04_5hidden_calculation_default_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5validators.json b/tests/results/test_namespace/04_5validators.json new file mode 100644 index 0000000..602d586 --- /dev/null +++ b/tests/results/test_namespace/04_5validators.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "int": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "int": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5validators_differ.json b/tests/results/test_namespace/04_5validators_differ.json new file mode 100644 index 0000000..e977a01 --- /dev/null +++ b/tests/results/test_namespace/04_5validators_differ.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "another_value", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "another_value", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5validators_multi.json b/tests/results/test_namespace/04_5validators_multi.json new file mode 100644 index 0000000..dc93c21 --- /dev/null +++ b/tests/results/test_namespace/04_5validators_multi.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/04_5validators_multi2.json b/tests/results/test_namespace/04_5validators_multi2.json new file mode 100644 index 0000000..c888eb5 --- /dev/null +++ b/tests/results/test_namespace/04_5validators_multi2.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/05_0multi_not_uniq.json b/tests/results/test_namespace/05_0multi_not_uniq.json new file mode 100644 index 0000000..dc93c21 --- /dev/null +++ b/tests/results/test_namespace/05_0multi_not_uniq.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/05_0multi_uniq.json b/tests/results/test_namespace/05_0multi_uniq.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace/05_0multi_uniq.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/12_1auto_save_expert.json b/tests/results/test_namespace/12_1auto_save_expert.json new file mode 100644 index 0000000..ac68847 --- /dev/null +++ b/tests/results/test_namespace/12_1auto_save_expert.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_0redefine_description.json b/tests/results/test_namespace/16_0redefine_description.json new file mode 100644 index 0000000..d92dffa --- /dev/null +++ b/tests/results/test_namespace/16_0redefine_description.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_2family_redefine_calculation.json b/tests/results/test_namespace/16_2family_redefine_calculation.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace/16_2family_redefine_calculation.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_2family_redefine_disabled.json b/tests/results/test_namespace/16_2family_redefine_disabled.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace/16_2family_redefine_disabled.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_5exists_nonexists.json b/tests/results/test_namespace/16_5exists_nonexists.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace/16_5exists_nonexists.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_5exists_redefine.json b/tests/results/test_namespace/16_5exists_redefine.json new file mode 100644 index 0000000..8e0597d --- /dev/null +++ b/tests/results/test_namespace/16_5exists_redefine.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_5redefine_calculation.json b/tests/results/test_namespace/16_5redefine_calculation.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace/16_5redefine_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_5redefine_choice.json b/tests/results/test_namespace/16_5redefine_choice.json new file mode 100644 index 0000000..fd55b95 --- /dev/null +++ b/tests/results/test_namespace/16_5redefine_choice.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "a" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "a" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_5redefine_default.json b/tests/results/test_namespace/16_5redefine_default.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace/16_5redefine_default.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_5redefine_default_calculation.json b/tests/results/test_namespace/16_5redefine_default_calculation.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace/16_5redefine_default_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_5redefine_family.json b/tests/results/test_namespace/16_5redefine_family.json new file mode 100644 index 0000000..c1b34dc --- /dev/null +++ b/tests/results/test_namespace/16_5redefine_family.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "variable": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "variable": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_5redefine_help.json b/tests/results/test_namespace/16_5redefine_help.json new file mode 100644 index 0000000..c1b34dc --- /dev/null +++ b/tests/results/test_namespace/16_5redefine_help.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "variable": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "variable": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_5redefine_hidden.json b/tests/results/test_namespace/16_5redefine_hidden.json new file mode 100644 index 0000000..7b77c76 --- /dev/null +++ b/tests/results/test_namespace/16_5redefine_hidden.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_5redefine_multi.json b/tests/results/test_namespace/16_5redefine_multi.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace/16_5redefine_multi.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_5redefine_remove_disable_calculation.json b/tests/results/test_namespace/16_5redefine_remove_disable_calculation.json new file mode 100644 index 0000000..ec044a9 --- /dev/null +++ b/tests/results/test_namespace/16_5redefine_remove_disable_calculation.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_5test_redefine.json b/tests/results/test_namespace/16_5test_redefine.json new file mode 100644 index 0000000..e53d158 --- /dev/null +++ b/tests/results/test_namespace/16_5test_redefine.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "test1", + "var2": "test1", + "var3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "test1", + "var2": "test1", + "var3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_6choice_redefine.json b/tests/results/test_namespace/16_6choice_redefine.json new file mode 100644 index 0000000..945e912 --- /dev/null +++ b/tests/results/test_namespace/16_6choice_redefine.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "a" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "a" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16_6exists_redefine_family.json b/tests/results/test_namespace/16_6exists_redefine_family.json new file mode 100644 index 0000000..fe5d1df --- /dev/null +++ b/tests/results/test_namespace/16_6exists_redefine_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family1": { + "variable1": "string1" + }, + "family2": { + "variable2": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family1": { + "variable1": "string1" + }, + "family2": { + "variable2": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/16exists_exists.json b/tests/results/test_namespace/16exists_exists.json new file mode 100644 index 0000000..d92dffa --- /dev/null +++ b/tests/results/test_namespace/16exists_exists.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/17_5redefine_leadership.json b/tests/results/test_namespace/17_5redefine_leadership.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace/17_5redefine_leadership.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/20_0empty_family.json b/tests/results/test_namespace/20_0empty_family.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace/20_0empty_family.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/20_0family_append.json b/tests/results/test_namespace/20_0family_append.json new file mode 100644 index 0000000..c019d66 --- /dev/null +++ b/tests/results/test_namespace/20_0family_append.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var1": "string1", + "var2": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var1": "string1", + "var2": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/20_0family_underscore.json b/tests/results/test_namespace/20_0family_underscore.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace/20_0family_underscore.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/20_0multi_family.json b/tests/results/test_namespace/20_0multi_family.json new file mode 100644 index 0000000..89435ce --- /dev/null +++ b/tests/results/test_namespace/20_0multi_family.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/20_0multi_family_basic.json b/tests/results/test_namespace/20_0multi_family_basic.json new file mode 100644 index 0000000..89435ce --- /dev/null +++ b/tests/results/test_namespace/20_0multi_family_basic.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/20_0multi_family_expert.json b/tests/results/test_namespace/20_0multi_family_expert.json new file mode 100644 index 0000000..89435ce --- /dev/null +++ b/tests/results/test_namespace/20_0multi_family_expert.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/20_0multi_family_order.json b/tests/results/test_namespace/20_0multi_family_order.json new file mode 100644 index 0000000..acda464 --- /dev/null +++ b/tests/results/test_namespace/20_0multi_family_order.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1", + "family": { + "variable1": "string1", + "subfamily": { + "variable": "string1" + }, + "variable2": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1", + "family": { + "variable1": "string1", + "subfamily": { + "variable": "string1" + }, + "variable2": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/20_0validators_differ_redefine.json b/tests/results/test_namespace/20_0validators_differ_redefine.json new file mode 100644 index 0000000..f5ae3a5 --- /dev/null +++ b/tests/results/test_namespace/20_0validators_differ_redefine.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/20_1empty_subfamily.json b/tests/results/test_namespace/20_1empty_subfamily.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace/20_1empty_subfamily.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/20_9default_information_parent.json b/tests/results/test_namespace/20_9default_information_parent.json new file mode 100644 index 0000000..c019d66 --- /dev/null +++ b/tests/results/test_namespace/20_9default_information_parent.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var1": "string1", + "var2": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var1": "string1", + "var2": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/24_0family_hidden_condition.json b/tests/results/test_namespace/24_0family_hidden_condition.json new file mode 100644 index 0000000..7e8be11 --- /dev/null +++ b/tests/results/test_namespace/24_0family_hidden_condition.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "family": { + "var1": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "family": { + "var1": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/24_0family_hidden_condition_boolean.json b/tests/results/test_namespace/24_0family_hidden_condition_boolean.json new file mode 100644 index 0000000..b16784a --- /dev/null +++ b/tests/results/test_namespace/24_0family_hidden_condition_boolean.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true, + "family": { + "variable": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true, + "family": { + "variable": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/24_0family_hidden_condition_sub_family.json b/tests/results/test_namespace/24_0family_hidden_condition_sub_family.json new file mode 100644 index 0000000..851a2c9 --- /dev/null +++ b/tests/results/test_namespace/24_0family_hidden_condition_sub_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "family": { + "subfamily": { + "var1": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "family": { + "subfamily": { + "var1": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/24_0family_hidden_condition_variable_sub_family.json b/tests/results/test_namespace/24_0family_hidden_condition_variable_sub_family.json new file mode 100644 index 0000000..5d2e177 --- /dev/null +++ b/tests/results/test_namespace/24_0family_hidden_condition_variable_sub_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true, + "family": { + "subfamily": { + "var1": null + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true, + "family": { + "subfamily": { + "var1": null + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/24_0family_hidden_condition_with_variable.json b/tests/results/test_namespace/24_0family_hidden_condition_with_variable.json new file mode 100644 index 0000000..92c94c3 --- /dev/null +++ b/tests/results/test_namespace/24_0family_hidden_condition_with_variable.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition1": true, + "condition2": true, + "family": { + "variable": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition1": true, + "condition2": true, + "family": { + "variable": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/24_0family_hidden_param_condition_sub_family.json b/tests/results/test_namespace/24_0family_hidden_param_condition_sub_family.json new file mode 100644 index 0000000..250b4c0 --- /dev/null +++ b/tests/results/test_namespace/24_0family_hidden_param_condition_sub_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "family": { + "sub_family": { + "var1": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "family": { + "sub_family": { + "var1": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/24_0family_mandatory_condition.json b/tests/results/test_namespace/24_0family_mandatory_condition.json new file mode 100644 index 0000000..55fadb3 --- /dev/null +++ b/tests/results/test_namespace/24_0family_mandatory_condition.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/24_0family_mandatory_condition_variable.json b/tests/results/test_namespace/24_0family_mandatory_condition_variable.json new file mode 100644 index 0000000..a1e1db3 --- /dev/null +++ b/tests/results/test_namespace/24_0family_mandatory_condition_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true, + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true, + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/24_7validators_variable_optional.json b/tests/results/test_namespace/24_7validators_variable_optional.json new file mode 100644 index 0000000..984f918 --- /dev/null +++ b/tests/results/test_namespace/24_7validators_variable_optional.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "general": { + "int": 5, + "int2": 1 + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "general": { + "int": 5, + "int2": 1 + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/24_family_disabled_var_hidden.json b/tests/results/test_namespace/24_family_disabled_var_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace/24_family_disabled_var_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_0leadership.json b/tests/results/test_namespace/40_0leadership.json new file mode 100644 index 0000000..6939274 --- /dev/null +++ b/tests/results/test_namespace/40_0leadership.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_0leadership_diff_name.json b/tests/results/test_namespace/40_0leadership_diff_name.json new file mode 100644 index 0000000..33547e8 --- /dev/null +++ b/tests/results/test_namespace/40_0leadership_diff_name.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_0leadership_empty.json b/tests/results/test_namespace/40_0leadership_empty.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace/40_0leadership_empty.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_0leadership_follower_default_calculation.json b/tests/results/test_namespace/40_0leadership_follower_default_calculation.json new file mode 100644 index 0000000..6939274 --- /dev/null +++ b/tests/results/test_namespace/40_0leadership_follower_default_calculation.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_0leadership_follower_default_submulti.json b/tests/results/test_namespace/40_0leadership_follower_default_submulti.json new file mode 100644 index 0000000..cb932ee --- /dev/null +++ b/tests/results/test_namespace/40_0leadership_follower_default_submulti.json @@ -0,0 +1,120 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_0leadership_follower_default_submulti_calculation.json b/tests/results/test_namespace/40_0leadership_follower_default_submulti_calculation.json new file mode 100644 index 0000000..cb932ee --- /dev/null +++ b/tests/results/test_namespace/40_0leadership_follower_default_submulti_calculation.json @@ -0,0 +1,120 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_0leadership_follower_default_value.json b/tests/results/test_namespace/40_0leadership_follower_default_value.json new file mode 100644 index 0000000..23b8c7e --- /dev/null +++ b/tests/results/test_namespace/40_0leadership_follower_default_value.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1" + }, + { + "leader": "string2", + "follower1": "string2" + }, + { + "leader": "string3", + "follower1": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1" + }, + { + "leader": "string2", + "follower1": "string2" + }, + { + "leader": "string3", + "follower1": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_0leadership_leader_not_multi.json b/tests/results/test_namespace/40_0leadership_leader_not_multi.json new file mode 100644 index 0000000..6b2b15a --- /dev/null +++ b/tests/results/test_namespace/40_0leadership_leader_not_multi.json @@ -0,0 +1,82 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "general": { + "mode_conteneur_actif": "string1" + }, + "general1": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "general": { + "mode_conteneur_actif": "string1" + }, + "general1": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_1leadership_append_follower.json b/tests/results/test_namespace/40_1leadership_append_follower.json new file mode 100644 index 0000000..4e106d2 --- /dev/null +++ b/tests/results/test_namespace/40_1leadership_append_follower.json @@ -0,0 +1,78 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1", + "follower3": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2", + "follower3": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3", + "follower3": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1", + "follower3": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2", + "follower3": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3", + "follower3": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_2leadership_calculation_index.json b/tests/results/test_namespace/40_2leadership_calculation_index.json new file mode 100644 index 0000000..f27a73a --- /dev/null +++ b/tests/results/test_namespace/40_2leadership_calculation_index.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_2leadership_calculation_param_index.json b/tests/results/test_namespace/40_2leadership_calculation_param_index.json new file mode 100644 index 0000000..f27a73a --- /dev/null +++ b/tests/results/test_namespace/40_2leadership_calculation_param_index.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_2leadership_leader_calculation.json b/tests/results/test_namespace/40_2leadership_leader_calculation.json new file mode 100644 index 0000000..6939274 --- /dev/null +++ b/tests/results/test_namespace/40_2leadership_leader_calculation.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_6leadership_follower_multi.json b/tests/results/test_namespace/40_6leadership_follower_multi.json new file mode 100644 index 0000000..53076f3 --- /dev/null +++ b/tests/results/test_namespace/40_6leadership_follower_multi.json @@ -0,0 +1,120 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leadership": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leadership": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_8calculation_boolean.json b/tests/results/test_namespace/40_8calculation_boolean.json new file mode 100644 index 0000000..0a9dbee --- /dev/null +++ b/tests/results/test_namespace/40_8calculation_boolean.json @@ -0,0 +1,52 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "bool": true, + "multi1": [ + true + ], + "multi2": [ + true + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "bool": true, + "multi1": [ + true + ], + "multi2": [ + true + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_8calculation_boolean_return_none.json b/tests/results/test_namespace/40_8calculation_boolean_return_none.json new file mode 100644 index 0000000..979dc16 --- /dev/null +++ b/tests/results/test_namespace/40_8calculation_boolean_return_none.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_8calculation_integer.json b/tests/results/test_namespace/40_8calculation_integer.json new file mode 100644 index 0000000..8e9de8d --- /dev/null +++ b/tests/results/test_namespace/40_8calculation_integer.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "bool": true, + "int1": 1, + "int2": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "bool": true, + "int1": 1, + "int2": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_8calculation_multi_variable.json b/tests/results/test_namespace/40_8calculation_multi_variable.json new file mode 100644 index 0000000..21c4547 --- /dev/null +++ b/tests/results/test_namespace/40_8calculation_multi_variable.json @@ -0,0 +1,52 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "var2": "string1", + "var3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "var2": "string1", + "var3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_8calculation_multi_variable_parent.json b/tests/results/test_namespace/40_8calculation_multi_variable_parent.json new file mode 100644 index 0000000..92e9b9f --- /dev/null +++ b/tests/results/test_namespace/40_8calculation_multi_variable_parent.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1", + "fam1": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1", + "fam1": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/40_8calculation_multi_variable_parent2.json b/tests/results/test_namespace/40_8calculation_multi_variable_parent2.json new file mode 100644 index 0000000..3a57b0f --- /dev/null +++ b/tests/results/test_namespace/40_8calculation_multi_variable_parent2.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "fam1": { + "var": "string1" + }, + "fam2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "fam1": { + "var": "string1" + }, + "fam2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/41_0choice_leader.json b/tests/results/test_namespace/41_0choice_leader.json new file mode 100644 index 0000000..9fe0731 --- /dev/null +++ b/tests/results/test_namespace/41_0choice_leader.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "a" + }, + { + "leader": "string2", + "follower1": "b" + }, + { + "leader": "string3", + "follower1": "c" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "a" + }, + { + "leader": "string2", + "follower1": "b" + }, + { + "leader": "string3", + "follower1": "c" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/44_0leadership_hidden.json b/tests/results/test_namespace/44_0leadership_hidden.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace/44_0leadership_hidden.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/44_0leadership_leader_hidden.json b/tests/results/test_namespace/44_0leadership_leader_hidden.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace/44_0leadership_leader_hidden.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/44_1leadership_append_hidden_follower.json b/tests/results/test_namespace/44_1leadership_append_hidden_follower.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace/44_1leadership_append_hidden_follower.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/44_4disabled_calcultion_follower.json b/tests/results/test_namespace/44_4disabled_calcultion_follower.json new file mode 100644 index 0000000..96823e0 --- /dev/null +++ b/tests/results/test_namespace/44_4disabled_calcultion_follower.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true, + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true, + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/44_4leadership_mandatory.json b/tests/results/test_namespace/44_4leadership_mandatory.json new file mode 100644 index 0000000..23b8c7e --- /dev/null +++ b/tests/results/test_namespace/44_4leadership_mandatory.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1" + }, + { + "leader": "string2", + "follower1": "string2" + }, + { + "leader": "string3", + "follower1": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1" + }, + { + "leader": "string2", + "follower1": "string2" + }, + { + "leader": "string3", + "follower1": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/44_4leadership_mandatory_follower.json b/tests/results/test_namespace/44_4leadership_mandatory_follower.json new file mode 100644 index 0000000..9e2e38b --- /dev/null +++ b/tests/results/test_namespace/44_4leadership_mandatory_follower.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/44_5leadership_leader_hidden_calculation.json b/tests/results/test_namespace/44_5leadership_leader_hidden_calculation.json new file mode 100644 index 0000000..b686f83 --- /dev/null +++ b/tests/results/test_namespace/44_5leadership_leader_hidden_calculation.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/44_6leadership_follower_disabled_calculation.json b/tests/results/test_namespace/44_6leadership_follower_disabled_calculation.json new file mode 100644 index 0000000..b686f83 --- /dev/null +++ b/tests/results/test_namespace/44_6leadership_follower_disabled_calculation.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/44_9calculated_default_leadership_leader.json b/tests/results/test_namespace/44_9calculated_default_leadership_leader.json new file mode 100644 index 0000000..9e2e38b --- /dev/null +++ b/tests/results/test_namespace/44_9calculated_default_leadership_leader.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic.json b/tests/results/test_namespace/60_0family_dynamic.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_1_0.json b/tests/results/test_namespace/60_0family_dynamic_1_0.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_1_0.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_1_0_empty.json b/tests/results/test_namespace/60_0family_dynamic_1_0_empty.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_1_0_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_1_0_type.json b/tests/results/test_namespace/60_0family_dynamic_1_0_type.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_1_0_type.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_1_0_type_empty.json b/tests/results/test_namespace/60_0family_dynamic_1_0_type_empty.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_1_0_type_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_1_1.json b/tests/results/test_namespace/60_0family_dynamic_1_1.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_1_1.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_1_1_empty.json b/tests/results/test_namespace/60_0family_dynamic_1_1_empty.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_1_1_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_empty.json b/tests/results/test_namespace/60_0family_dynamic_empty.json new file mode 100644 index 0000000..390c5da --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_empty.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dynstring1": { + "var": "string1" + }, + "dynstring2": { + "var": "string1" + }, + "dynstring3": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dynstring1": { + "var": "string1" + }, + "dynstring2": { + "var": "string1" + }, + "dynstring3": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_jinja_number.json b/tests/results/test_namespace/60_0family_dynamic_jinja_number.json new file mode 100644 index 0000000..b8b3df0 --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_jinja_number.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_jinja_number_empty.json b/tests/results/test_namespace/60_0family_dynamic_jinja_number_empty.json new file mode 100644 index 0000000..b8b3df0 --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_jinja_number_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_no_description.json b/tests/results/test_namespace/60_0family_dynamic_no_description.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_no_description.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_no_description_empty.json b/tests/results/test_namespace/60_0family_dynamic_no_description_empty.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_no_description_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_static.json b/tests/results/test_namespace/60_0family_dynamic_static.json new file mode 100644 index 0000000..e7424e3 --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_static.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_test.json b/tests/results/test_namespace/60_0family_dynamic_test.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_test.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_variable_empty.json b/tests/results/test_namespace/60_0family_dynamic_variable_empty.json new file mode 100644 index 0000000..390c5da --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_variable_empty.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dynstring1": { + "var": "string1" + }, + "dynstring2": { + "var": "string1" + }, + "dynstring3": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dynstring1": { + "var": "string1" + }, + "dynstring2": { + "var": "string1" + }, + "dynstring3": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_variable_suffix.json b/tests/results/test_namespace/60_0family_dynamic_variable_suffix.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_variable_suffix.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_dynamic_variable_suffix_empty.json b/tests/results/test_namespace/60_0family_dynamic_variable_suffix_empty.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_variable_suffix_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_empty.json b/tests/results/test_namespace/60_0family_empty.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace/60_0family_empty.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_hidden.json b/tests/results/test_namespace/60_0family_hidden.json new file mode 100644 index 0000000..d4b9a08 --- /dev/null +++ b/tests/results/test_namespace/60_0family_hidden.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_0family_mode.json b/tests/results/test_namespace/60_0family_mode.json new file mode 100644 index 0000000..455a057 --- /dev/null +++ b/tests/results/test_namespace/60_0family_mode.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_1family_dynamic_jinja.json b/tests/results/test_namespace/60_1family_dynamic_jinja.json new file mode 100644 index 0000000..3a5e7bc --- /dev/null +++ b/tests/results/test_namespace/60_1family_dynamic_jinja.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "dyn3": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "dyn3": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group.json b/tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group.json new file mode 100644 index 0000000..3d10601 --- /dev/null +++ b/tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group_2.json b/tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group_2.json new file mode 100644 index 0000000..5b97c2c --- /dev/null +++ b/tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group_2.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group_2_empty.json b/tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group_2_empty.json new file mode 100644 index 0000000..5b97c2c --- /dev/null +++ b/tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group_2_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group_empty.json b/tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group_empty.json new file mode 100644 index 0000000..3d10601 --- /dev/null +++ b/tests/results/test_namespace/60_2family_dynamic_jinja_fill_sub_group_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_2family_dynamic_outside_calc.json b/tests/results/test_namespace/60_2family_dynamic_outside_calc.json new file mode 100644 index 0000000..438fbd5 --- /dev/null +++ b/tests/results/test_namespace/60_2family_dynamic_outside_calc.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "newvar": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "newvar": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_2family_dynamic_outside_calc_empty.json b/tests/results/test_namespace/60_2family_dynamic_outside_calc_empty.json new file mode 100644 index 0000000..438fbd5 --- /dev/null +++ b/tests/results/test_namespace/60_2family_dynamic_outside_calc_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "newvar": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "newvar": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_calc2.json b/tests/results/test_namespace/60_5family_dynamic_calc2.json new file mode 100644 index 0000000..31e2471 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc2.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_calc2_empty.json b/tests/results/test_namespace/60_5family_dynamic_calc2_empty.json new file mode 100644 index 0000000..31e2471 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc2_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix.json new file mode 100644 index 0000000..c1df137 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix2.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix2.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix2.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix2_empty.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix2_empty.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix2_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled.json new file mode 100644 index 0000000..76fece5 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "dynval1": {}, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "dynval1": {}, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.json new file mode 100644 index 0000000..c1df137 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_param.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_param.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_param.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_param_empty.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_param_empty.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_param_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_variable.json b/tests/results/test_namespace/60_5family_dynamic_calc_variable.json new file mode 100644 index 0000000..c1df137 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_variable.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.json b/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.json new file mode 100644 index 0000000..c1df137 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_hidden_suffix.json b/tests/results/test_namespace/60_5family_dynamic_hidden_suffix.json new file mode 100644 index 0000000..adf16ba --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_hidden_suffix.json @@ -0,0 +1,62 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "dynval1": { + "var": "string1", + "family": { + "var": "string1" + } + }, + "dynval2": { + "var": null, + "family": { + "var": null + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "dynval1": { + "var": "string1", + "family": { + "var": "string1" + } + }, + "dynval2": { + "var": null, + "family": { + "var": null + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_unknown_suffix.json b/tests/results/test_namespace/60_5family_dynamic_unknown_suffix.json new file mode 100644 index 0000000..8626c9b --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_unknown_suffix.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.json b/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.json new file mode 100644 index 0000000..196faf5 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.json @@ -0,0 +1,98 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2", + "val3", + "val4" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val3_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val4_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2", + "val3", + "val4" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val3_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val4_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside.json new file mode 100644 index 0000000..8d4e07f --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside2.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside2.json new file mode 100644 index 0000000..38d317c --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside2.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var2": [ + "string1", + "string2", + "string3" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var2": [ + "string1", + "string2", + "string3" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.json new file mode 100644 index 0000000..38d317c --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var2": [ + "string1", + "string2", + "string3" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var2": [ + "string1", + "string2", + "string3" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.json new file mode 100644 index 0000000..8d4e07f --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_jinja.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside_jinja.json new file mode 100644 index 0000000..8d4e07f --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_jinja.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_jinja_empty.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside_jinja_empty.json new file mode 100644 index 0000000..8d4e07f --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_jinja_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix.json new file mode 100644 index 0000000..b5c6827 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix.json @@ -0,0 +1,88 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.json new file mode 100644 index 0000000..b5c6827 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.json @@ -0,0 +1,88 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix.json new file mode 100644 index 0000000..a5c7559 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "string1" + }, + "dyn_val2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "string1" + }, + "dyn_val2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.json new file mode 100644 index 0000000..a5c7559 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "string1" + }, + "dyn_val2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "string1" + }, + "dyn_val2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_6family_dynamic_inside.json b/tests/results/test_namespace/60_6family_dynamic_inside.json new file mode 100644 index 0000000..c8f4206 --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_inside.json @@ -0,0 +1,70 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_6family_dynamic_inside_empty.json b/tests/results/test_namespace/60_6family_dynamic_inside_empty.json new file mode 100644 index 0000000..c8f4206 --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_inside_empty.json @@ -0,0 +1,70 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_6family_dynamic_leadership.json b/tests/results/test_namespace/60_6family_dynamic_leadership.json new file mode 100644 index 0000000..4cd9d3a --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_leadership.json @@ -0,0 +1,122 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + }, + "dynval2": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + }, + "dynval2": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_6family_dynamic_leadership_empty.json b/tests/results/test_namespace/60_6family_dynamic_leadership_empty.json new file mode 100644 index 0000000..4cd9d3a --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_leadership_empty.json @@ -0,0 +1,122 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + }, + "dynval2": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + }, + "dynval2": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.json b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.json new file mode 100644 index 0000000..f4d9e7c --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.json b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.json new file mode 100644 index 0000000..f4d9e7c --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.json b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.json new file mode 100644 index 0000000..f4d9e7c --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_9extra_dynamic.json b/tests/results/test_namespace/60_9extra_dynamic.json new file mode 100644 index 0000000..54c4177 --- /dev/null +++ b/tests/results/test_namespace/60_9extra_dynamic.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "a" + ] + }, + "extra": { + "dyn_a": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "a" + ] + }, + "extra": { + "dyn_a": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_9extra_dynamic_extra.json b/tests/results/test_namespace/60_9extra_dynamic_extra.json new file mode 100644 index 0000000..35f92c7 --- /dev/null +++ b/tests/results/test_namespace/60_9extra_dynamic_extra.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "general": { + "varname": [ + "string1", + "string2", + "string3" + ] + } + }, + "extra": { + "var": [ + "a" + ], + "dyn_a": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "general": { + "varname": [ + "string1", + "string2", + "string3" + ] + } + }, + "extra": { + "var": [ + "a" + ], + "dyn_a": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/60_9family_dynamic_calc_both.json b/tests/results/test_namespace/60_9family_dynamic_calc_both.json new file mode 100644 index 0000000..e77bbae --- /dev/null +++ b/tests/results/test_namespace/60_9family_dynamic_calc_both.json @@ -0,0 +1,52 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynstring1": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynstring1": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace/68_0family_leadership_mode.json b/tests/results/test_namespace/68_0family_leadership_mode.json new file mode 100644 index 0000000..6939274 --- /dev/null +++ b/tests/results/test_namespace/68_0family_leadership_mode.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_0empty.json b/tests/results/test_namespace_mandatory/00_0empty.json new file mode 100644 index 0000000..b7155d1 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_0empty.json @@ -0,0 +1,34 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net" + }, + "GROUP2_01": { + "ansible_host": "group2.net" + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_0version_underscore.json b/tests/results/test_namespace_mandatory/00_0version_underscore.json new file mode 100644 index 0000000..bd80d72 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_0version_underscore.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "version": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "version": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_1empty_variable.json b/tests/results/test_namespace_mandatory/00_1empty_variable.json new file mode 100644 index 0000000..9cef03d --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_1empty_variable.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "empty": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "empty": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_2default_calculated.json b/tests/results/test_namespace_mandatory/00_2default_calculated.json new file mode 100644 index 0000000..05ad432 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_2default_calculated.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_2default_calculated_multi.json b/tests/results/test_namespace_mandatory/00_2default_calculated_multi.json new file mode 100644 index 0000000..21ea2fd --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_2default_calculated_multi.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ], + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ], + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_2default_calculated_variable_transitive.json b/tests/results/test_namespace_mandatory/00_2default_calculated_variable_transitive.json new file mode 100644 index 0000000..007f98f --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_2default_calculated_variable_transitive.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_4load_subfolder.json b/tests/results/test_namespace_mandatory/00_4load_subfolder.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_4load_subfolder.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_5load_notype.json b/tests/results/test_namespace_mandatory/00_5load_notype.json new file mode 100644 index 0000000..f19922d --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_5load_notype.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "without_type": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "without_type": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_6boolean.json b/tests/results/test_namespace_mandatory/00_6boolean.json new file mode 100644 index 0000000..21844b6 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6boolean.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": true, + "var2": true, + "var3": true, + "var4": true, + "var5": true, + "var6": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": true, + "var2": true, + "var3": true, + "var4": true, + "var5": true, + "var6": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_6boolean_no_mandatory.json b/tests/results/test_namespace_mandatory/00_6boolean_no_mandatory.json new file mode 100644 index 0000000..ed87618 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6boolean_no_mandatory.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_6choice.json b/tests/results/test_namespace_mandatory/00_6choice.json new file mode 100644 index 0000000..c4ded58 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6choice.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "a", + "var2": "a", + "var3": "a", + "var4": null, + "var5": "a", + "var6": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "a", + "var2": "a", + "var3": "a", + "var4": null, + "var5": "a", + "var6": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_6choice_calculation.json b/tests/results/test_namespace_mandatory/00_6choice_calculation.json new file mode 100644 index 0000000..0141810 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6choice_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": 0 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": 0 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_6choice_variable.json b/tests/results/test_namespace_mandatory/00_6choice_variable.json new file mode 100644 index 0000000..ee70e8e --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6choice_variable.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ], + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ], + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_6custom.json b/tests/results/test_namespace_mandatory/00_6custom.json new file mode 100644 index 0000000..a820538 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6custom.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "custom1": "string1", + "custom2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "custom1": "string1", + "custom2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_6domainname.json b/tests/results/test_namespace_mandatory/00_6domainname.json new file mode 100644 index 0000000..7e46a53 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6domainname.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "domain1.lan" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "domain1.lan" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_6domainname_params.json b/tests/results/test_namespace_mandatory/00_6domainname_params.json new file mode 100644 index 0000000..7e46a53 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6domainname_params.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "domain1.lan" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "domain1.lan" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_6float.json b/tests/results/test_namespace_mandatory/00_6float.json new file mode 100644 index 0000000..559aa73 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6float.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": 1.1, + "var2": 1.1, + "var3": 1.1, + "var4": 1.1, + "var5": 1.1, + "var6": 1.1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": 1.1, + "var2": 1.1, + "var3": 1.1, + "var4": 1.1, + "var5": 1.1, + "var6": 1.1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_6number.json b/tests/results/test_namespace_mandatory/00_6number.json new file mode 100644 index 0000000..231589d --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6number.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": 1, + "var2": 1, + "var3": 1, + "var4": 1, + "var5": 1, + "var6": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": 1, + "var2": 1, + "var3": 1, + "var4": 1, + "var5": 1, + "var6": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_6port.json b/tests/results/test_namespace_mandatory/00_6port.json new file mode 100644 index 0000000..9c774ee --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6port.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable1": "80", + "variable2": "80", + "variable3": "80" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable1": "80", + "variable2": "80", + "variable3": "80" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_6regexp.json b/tests/results/test_namespace_mandatory/00_6regexp.json new file mode 100644 index 0000000..76a5579 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6regexp.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "#b1b1b1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "#b1b1b1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_6string.json b/tests/results/test_namespace_mandatory/00_6string.json new file mode 100644 index 0000000..19b7111 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6string.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1", + "var5": "string1", + "var6": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1", + "var5": "string1", + "var6": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_7choice_quote.json b/tests/results/test_namespace_mandatory/00_7choice_quote.json new file mode 100644 index 0000000..05d9eb3 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_7choice_quote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "quote'" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "quote'" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_7help_quote.json b/tests/results/test_namespace_mandatory/00_7help_quote.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_7help_quote.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_7value_doublequote.json b/tests/results/test_namespace_mandatory/00_7value_doublequote.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_7value_doublequote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_7value_doublequote2.json b/tests/results/test_namespace_mandatory/00_7value_doublequote2.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_7value_doublequote2.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_7value_doublequote3.json b/tests/results/test_namespace_mandatory/00_7value_doublequote3.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_7value_doublequote3.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_7value_quote.json b/tests/results/test_namespace_mandatory/00_7value_quote.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_7value_quote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_8calculation_information.json b/tests/results/test_namespace_mandatory/00_8calculation_information.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_8calculation_information.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_8test.json b/tests/results/test_namespace_mandatory/00_8test.json new file mode 100644 index 0000000..6e415de --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_8test.json @@ -0,0 +1,56 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "test", + "var2": "test", + "var3": "test1", + "var4": null, + "var5": false, + "var6": [ + "test1", + "test2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "test", + "var2": "test", + "var3": "test1", + "var4": null, + "var5": false, + "var6": [ + "test1", + "test2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9choice_variable_multi.json b/tests/results/test_namespace_mandatory/00_9choice_variable_multi.json new file mode 100644 index 0000000..bda86f3 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9choice_variable_multi.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable1": [ + "val1", + "val2" + ], + "variable2": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable1": [ + "val1", + "val2" + ], + "variable2": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9choice_variables.json b/tests/results/test_namespace_mandatory/00_9choice_variables.json new file mode 100644 index 0000000..bf89a3e --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9choice_variables.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "source_variable_1": "string1", + "source_variable_2": "string1", + "my_variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "source_variable_1": "string1", + "source_variable_2": "string1", + "my_variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9default_calculation.json b/tests/results/test_namespace_mandatory/00_9default_calculation.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9default_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9default_calculation_information.json b/tests/results/test_namespace_mandatory/00_9default_calculation_information.json new file mode 100644 index 0000000..d92dffa --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9default_calculation_information.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9default_calculation_information_other_variable.json b/tests/results/test_namespace_mandatory/00_9default_calculation_information_other_variable.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9default_calculation_information_other_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9default_calculation_multi_optional.json b/tests/results/test_namespace_mandatory/00_9default_calculation_multi_optional.json new file mode 100644 index 0000000..727da65 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9default_calculation_multi_optional.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9default_calculation_multi_optional2.json b/tests/results/test_namespace_mandatory/00_9default_calculation_multi_optional2.json new file mode 100644 index 0000000..727da65 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9default_calculation_multi_optional2.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9default_calculation_optional.json b/tests/results/test_namespace_mandatory/00_9default_calculation_optional.json new file mode 100644 index 0000000..c5fcd48 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9default_calculation_optional.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9default_calculation_optional_exists.json b/tests/results/test_namespace_mandatory/00_9default_calculation_optional_exists.json new file mode 100644 index 0000000..78f1cd8 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9default_calculation_optional_exists.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": [ + "string1", + "string2", + "string3" + ], + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": [ + "string1", + "string2", + "string3" + ], + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9default_calculation_param_optional.json b/tests/results/test_namespace_mandatory/00_9default_calculation_param_optional.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9default_calculation_param_optional.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9default_information_other_variable.json b/tests/results/test_namespace_mandatory/00_9default_information_other_variable.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9default_information_other_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9default_integer.json b/tests/results/test_namespace_mandatory/00_9default_integer.json new file mode 100644 index 0000000..0141810 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9default_integer.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": 0 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": 0 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9extra.json b/tests/results/test_namespace_mandatory/00_9extra.json new file mode 100644 index 0000000..a9492d3 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9extra.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + }, + "extra": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + }, + "extra": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/00_9extra_calculation.json b/tests/results/test_namespace_mandatory/00_9extra_calculation.json new file mode 100644 index 0000000..8445e79 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9extra_calculation.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + }, + "extra": { + "variable1": "string1", + "variable2": "string1", + "variable3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + }, + "extra": { + "variable1": "string1", + "variable2": "string1", + "variable3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/01_6boolean_multi.json b/tests/results/test_namespace_mandatory/01_6boolean_multi.json new file mode 100644 index 0000000..694ceab --- /dev/null +++ b/tests/results/test_namespace_mandatory/01_6boolean_multi.json @@ -0,0 +1,86 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + true + ], + "var2": [ + true + ], + "var3": [ + true + ], + "var4": [ + true + ], + "var5": [ + true + ], + "var6": [ + true + ], + "var7": [ + true + ], + "var8": [ + true + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + true + ], + "var2": [ + true + ], + "var3": [ + true + ], + "var4": [ + true + ], + "var5": [ + true + ], + "var6": [ + true + ], + "var7": [ + true + ], + "var8": [ + true + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/01_6custom_multi.json b/tests/results/test_namespace_mandatory/01_6custom_multi.json new file mode 100644 index 0000000..6b27a50 --- /dev/null +++ b/tests/results/test_namespace_mandatory/01_6custom_multi.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "custom1": [ + "string1", + "string2", + "string3" + ], + "custom2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "custom1": [ + "string1", + "string2", + "string3" + ], + "custom2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/01_6float_multi.json b/tests/results/test_namespace_mandatory/01_6float_multi.json new file mode 100644 index 0000000..6897264 --- /dev/null +++ b/tests/results/test_namespace_mandatory/01_6float_multi.json @@ -0,0 +1,118 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "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 + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "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 + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/01_6number_multi.json b/tests/results/test_namespace_mandatory/01_6number_multi.json new file mode 100644 index 0000000..5c58eb9 --- /dev/null +++ b/tests/results/test_namespace_mandatory/01_6number_multi.json @@ -0,0 +1,118 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "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 + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "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 + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/01_6string_empty.json b/tests/results/test_namespace_mandatory/01_6string_empty.json new file mode 100644 index 0000000..dc93c21 --- /dev/null +++ b/tests/results/test_namespace_mandatory/01_6string_empty.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/01_6string_multi.json b/tests/results/test_namespace_mandatory/01_6string_multi.json new file mode 100644 index 0000000..9a35202 --- /dev/null +++ b/tests/results/test_namespace_mandatory/01_6string_multi.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "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" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "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" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/01_7value_multi_doublequote.json b/tests/results/test_namespace_mandatory/01_7value_multi_doublequote.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace_mandatory/01_7value_multi_doublequote.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/01_7value_multi_doublequote2.json b/tests/results/test_namespace_mandatory/01_7value_multi_doublequote2.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace_mandatory/01_7value_multi_doublequote2.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/01_7value_multi_quote.json b/tests/results/test_namespace_mandatory/01_7value_multi_quote.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace_mandatory/01_7value_multi_quote.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/01_8calculation_information_multi.json b/tests/results/test_namespace_mandatory/01_8calculation_information_multi.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace_mandatory/01_8calculation_information_multi.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/01_9choice_variable_multi.json b/tests/results/test_namespace_mandatory/01_9choice_variable_multi.json new file mode 100644 index 0000000..d38bdf2 --- /dev/null +++ b/tests/results/test_namespace_mandatory/01_9choice_variable_multi.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable1": [ + "string1", + "string2", + "string3" + ], + "variable2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable1": [ + "string1", + "string2", + "string3" + ], + "variable2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_0type_param.json b/tests/results/test_namespace_mandatory/04_0type_param.json new file mode 100644 index 0000000..602d586 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_0type_param.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "int": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "int": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_1auto_save.json b/tests/results/test_namespace_mandatory/04_1auto_save.json new file mode 100644 index 0000000..7b77c76 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_1auto_save.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_1auto_save_and_calculated.json b/tests/results/test_namespace_mandatory/04_1auto_save_and_calculated.json new file mode 100644 index 0000000..ecf0b6c --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_1auto_save_and_calculated.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_1auto_save_and_calculated_hidden.json b/tests/results/test_namespace_mandatory/04_1auto_save_and_calculated_hidden.json new file mode 100644 index 0000000..84dc858 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_1auto_save_and_calculated_hidden.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_1auto_save_and_hidden.json b/tests/results/test_namespace_mandatory/04_1auto_save_and_hidden.json new file mode 100644 index 0000000..4ff4f9c --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_1auto_save_and_hidden.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_1default_calculation_hidden.json b/tests/results/test_namespace_mandatory/04_1default_calculation_hidden.json new file mode 100644 index 0000000..856d334 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_1default_calculation_hidden.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_1default_calculation_hidden_2.json b/tests/results/test_namespace_mandatory/04_1default_calculation_hidden_2.json new file mode 100644 index 0000000..856d334 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_1default_calculation_hidden_2.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation.json b/tests/results/test_namespace_mandatory/04_5disabled_calculation.json new file mode 100644 index 0000000..829a57b --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5disabled_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "variable1": "string1", + "variable2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "variable1": "string1", + "variable2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation_default.json b/tests/results/test_namespace_mandatory/04_5disabled_calculation_default.json new file mode 100644 index 0000000..464e314 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5disabled_calculation_default.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation_optional.json b/tests/results/test_namespace_mandatory/04_5disabled_calculation_optional.json new file mode 100644 index 0000000..1fbd301 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5disabled_calculation_optional.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var1": null, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var1": null, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable.json b/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable.json new file mode 100644 index 0000000..7f98eb8 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable2.json b/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable2.json new file mode 100644 index 0000000..7f98eb8 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable2.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable3.json b/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable3.json new file mode 100644 index 0000000..ec044a9 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable3.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable4.json b/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable4.json new file mode 100644 index 0000000..6ee0182 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable4.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5hidden_calculation.json b/tests/results/test_namespace_mandatory/04_5hidden_calculation.json new file mode 100644 index 0000000..464e314 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5hidden_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5hidden_calculation2.json b/tests/results/test_namespace_mandatory/04_5hidden_calculation2.json new file mode 100644 index 0000000..464e314 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5hidden_calculation2.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5hidden_calculation_default_calculation.json b/tests/results/test_namespace_mandatory/04_5hidden_calculation_default_calculation.json new file mode 100644 index 0000000..464e314 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5hidden_calculation_default_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5validators.json b/tests/results/test_namespace_mandatory/04_5validators.json new file mode 100644 index 0000000..602d586 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5validators.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "int": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "int": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5validators_differ.json b/tests/results/test_namespace_mandatory/04_5validators_differ.json new file mode 100644 index 0000000..e977a01 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5validators_differ.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "another_value", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "another_value", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5validators_multi.json b/tests/results/test_namespace_mandatory/04_5validators_multi.json new file mode 100644 index 0000000..dc93c21 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5validators_multi.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/04_5validators_multi2.json b/tests/results/test_namespace_mandatory/04_5validators_multi2.json new file mode 100644 index 0000000..c888eb5 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5validators_multi2.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/05_0multi_not_uniq.json b/tests/results/test_namespace_mandatory/05_0multi_not_uniq.json new file mode 100644 index 0000000..dc93c21 --- /dev/null +++ b/tests/results/test_namespace_mandatory/05_0multi_not_uniq.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/05_0multi_uniq.json b/tests/results/test_namespace_mandatory/05_0multi_uniq.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace_mandatory/05_0multi_uniq.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/12_1auto_save_expert.json b/tests/results/test_namespace_mandatory/12_1auto_save_expert.json new file mode 100644 index 0000000..ac68847 --- /dev/null +++ b/tests/results/test_namespace_mandatory/12_1auto_save_expert.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_0redefine_description.json b/tests/results/test_namespace_mandatory/16_0redefine_description.json new file mode 100644 index 0000000..d92dffa --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_0redefine_description.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_2family_redefine_calculation.json b/tests/results/test_namespace_mandatory/16_2family_redefine_calculation.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_2family_redefine_calculation.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_2family_redefine_disabled.json b/tests/results/test_namespace_mandatory/16_2family_redefine_disabled.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_2family_redefine_disabled.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_5exists_nonexists.json b/tests/results/test_namespace_mandatory/16_5exists_nonexists.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_5exists_nonexists.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_5exists_redefine.json b/tests/results/test_namespace_mandatory/16_5exists_redefine.json new file mode 100644 index 0000000..8e0597d --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_5exists_redefine.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_5redefine_calculation.json b/tests/results/test_namespace_mandatory/16_5redefine_calculation.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_5redefine_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_5redefine_choice.json b/tests/results/test_namespace_mandatory/16_5redefine_choice.json new file mode 100644 index 0000000..fd55b95 --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_5redefine_choice.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "a" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "a" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_5redefine_default.json b/tests/results/test_namespace_mandatory/16_5redefine_default.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_5redefine_default.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_5redefine_default_calculation.json b/tests/results/test_namespace_mandatory/16_5redefine_default_calculation.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_5redefine_default_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_5redefine_family.json b/tests/results/test_namespace_mandatory/16_5redefine_family.json new file mode 100644 index 0000000..c1b34dc --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_5redefine_family.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "variable": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "variable": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_5redefine_help.json b/tests/results/test_namespace_mandatory/16_5redefine_help.json new file mode 100644 index 0000000..c1b34dc --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_5redefine_help.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "variable": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "variable": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_5redefine_hidden.json b/tests/results/test_namespace_mandatory/16_5redefine_hidden.json new file mode 100644 index 0000000..7b77c76 --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_5redefine_hidden.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_5redefine_multi.json b/tests/results/test_namespace_mandatory/16_5redefine_multi.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_5redefine_multi.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_5redefine_remove_disable_calculation.json b/tests/results/test_namespace_mandatory/16_5redefine_remove_disable_calculation.json new file mode 100644 index 0000000..ec044a9 --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_5redefine_remove_disable_calculation.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_5test_redefine.json b/tests/results/test_namespace_mandatory/16_5test_redefine.json new file mode 100644 index 0000000..e53d158 --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_5test_redefine.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "test1", + "var2": "test1", + "var3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "test1", + "var2": "test1", + "var3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_6choice_redefine.json b/tests/results/test_namespace_mandatory/16_6choice_redefine.json new file mode 100644 index 0000000..945e912 --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_6choice_redefine.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "a" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "a" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16_6exists_redefine_family.json b/tests/results/test_namespace_mandatory/16_6exists_redefine_family.json new file mode 100644 index 0000000..fe5d1df --- /dev/null +++ b/tests/results/test_namespace_mandatory/16_6exists_redefine_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family1": { + "variable1": "string1" + }, + "family2": { + "variable2": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family1": { + "variable1": "string1" + }, + "family2": { + "variable2": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/16exists_exists.json b/tests/results/test_namespace_mandatory/16exists_exists.json new file mode 100644 index 0000000..d92dffa --- /dev/null +++ b/tests/results/test_namespace_mandatory/16exists_exists.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/17_5redefine_leadership.json b/tests/results/test_namespace_mandatory/17_5redefine_leadership.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_mandatory/17_5redefine_leadership.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/20_0empty_family.json b/tests/results/test_namespace_mandatory/20_0empty_family.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_mandatory/20_0empty_family.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/20_0family_append.json b/tests/results/test_namespace_mandatory/20_0family_append.json new file mode 100644 index 0000000..c019d66 --- /dev/null +++ b/tests/results/test_namespace_mandatory/20_0family_append.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var1": "string1", + "var2": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var1": "string1", + "var2": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/20_0family_underscore.json b/tests/results/test_namespace_mandatory/20_0family_underscore.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_mandatory/20_0family_underscore.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/20_0multi_family.json b/tests/results/test_namespace_mandatory/20_0multi_family.json new file mode 100644 index 0000000..89435ce --- /dev/null +++ b/tests/results/test_namespace_mandatory/20_0multi_family.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/20_0multi_family_basic.json b/tests/results/test_namespace_mandatory/20_0multi_family_basic.json new file mode 100644 index 0000000..89435ce --- /dev/null +++ b/tests/results/test_namespace_mandatory/20_0multi_family_basic.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/20_0multi_family_expert.json b/tests/results/test_namespace_mandatory/20_0multi_family_expert.json new file mode 100644 index 0000000..89435ce --- /dev/null +++ b/tests/results/test_namespace_mandatory/20_0multi_family_expert.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/20_0multi_family_order.json b/tests/results/test_namespace_mandatory/20_0multi_family_order.json new file mode 100644 index 0000000..acda464 --- /dev/null +++ b/tests/results/test_namespace_mandatory/20_0multi_family_order.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1", + "family": { + "variable1": "string1", + "subfamily": { + "variable": "string1" + }, + "variable2": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1", + "family": { + "variable1": "string1", + "subfamily": { + "variable": "string1" + }, + "variable2": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/20_0validators_differ_redefine.json b/tests/results/test_namespace_mandatory/20_0validators_differ_redefine.json new file mode 100644 index 0000000..f5ae3a5 --- /dev/null +++ b/tests/results/test_namespace_mandatory/20_0validators_differ_redefine.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/20_1empty_subfamily.json b/tests/results/test_namespace_mandatory/20_1empty_subfamily.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_mandatory/20_1empty_subfamily.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/20_9default_information_parent.json b/tests/results/test_namespace_mandatory/20_9default_information_parent.json new file mode 100644 index 0000000..c019d66 --- /dev/null +++ b/tests/results/test_namespace_mandatory/20_9default_information_parent.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var1": "string1", + "var2": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var1": "string1", + "var2": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/24_0family_hidden_condition.json b/tests/results/test_namespace_mandatory/24_0family_hidden_condition.json new file mode 100644 index 0000000..7e8be11 --- /dev/null +++ b/tests/results/test_namespace_mandatory/24_0family_hidden_condition.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "family": { + "var1": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "family": { + "var1": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/24_0family_hidden_condition_boolean.json b/tests/results/test_namespace_mandatory/24_0family_hidden_condition_boolean.json new file mode 100644 index 0000000..b16784a --- /dev/null +++ b/tests/results/test_namespace_mandatory/24_0family_hidden_condition_boolean.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true, + "family": { + "variable": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true, + "family": { + "variable": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/24_0family_hidden_condition_sub_family.json b/tests/results/test_namespace_mandatory/24_0family_hidden_condition_sub_family.json new file mode 100644 index 0000000..851a2c9 --- /dev/null +++ b/tests/results/test_namespace_mandatory/24_0family_hidden_condition_sub_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "family": { + "subfamily": { + "var1": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "family": { + "subfamily": { + "var1": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/24_0family_hidden_condition_variable_sub_family.json b/tests/results/test_namespace_mandatory/24_0family_hidden_condition_variable_sub_family.json new file mode 100644 index 0000000..5d2e177 --- /dev/null +++ b/tests/results/test_namespace_mandatory/24_0family_hidden_condition_variable_sub_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true, + "family": { + "subfamily": { + "var1": null + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true, + "family": { + "subfamily": { + "var1": null + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/24_0family_hidden_condition_with_variable.json b/tests/results/test_namespace_mandatory/24_0family_hidden_condition_with_variable.json new file mode 100644 index 0000000..92c94c3 --- /dev/null +++ b/tests/results/test_namespace_mandatory/24_0family_hidden_condition_with_variable.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition1": true, + "condition2": true, + "family": { + "variable": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition1": true, + "condition2": true, + "family": { + "variable": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/24_0family_hidden_param_condition_sub_family.json b/tests/results/test_namespace_mandatory/24_0family_hidden_param_condition_sub_family.json new file mode 100644 index 0000000..250b4c0 --- /dev/null +++ b/tests/results/test_namespace_mandatory/24_0family_hidden_param_condition_sub_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "family": { + "sub_family": { + "var1": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "family": { + "sub_family": { + "var1": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/24_0family_mandatory_condition.json b/tests/results/test_namespace_mandatory/24_0family_mandatory_condition.json new file mode 100644 index 0000000..55fadb3 --- /dev/null +++ b/tests/results/test_namespace_mandatory/24_0family_mandatory_condition.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/24_0family_mandatory_condition_variable.json b/tests/results/test_namespace_mandatory/24_0family_mandatory_condition_variable.json new file mode 100644 index 0000000..a1e1db3 --- /dev/null +++ b/tests/results/test_namespace_mandatory/24_0family_mandatory_condition_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true, + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true, + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/24_7validators_variable_optional.json b/tests/results/test_namespace_mandatory/24_7validators_variable_optional.json new file mode 100644 index 0000000..984f918 --- /dev/null +++ b/tests/results/test_namespace_mandatory/24_7validators_variable_optional.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "general": { + "int": 5, + "int2": 1 + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "general": { + "int": 5, + "int2": 1 + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/24_family_disabled_var_hidden.json b/tests/results/test_namespace_mandatory/24_family_disabled_var_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_mandatory/24_family_disabled_var_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_0leadership.json b/tests/results/test_namespace_mandatory/40_0leadership.json new file mode 100644 index 0000000..6939274 --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_0leadership.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_0leadership_diff_name.json b/tests/results/test_namespace_mandatory/40_0leadership_diff_name.json new file mode 100644 index 0000000..33547e8 --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_0leadership_diff_name.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_0leadership_empty.json b/tests/results/test_namespace_mandatory/40_0leadership_empty.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_0leadership_empty.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_0leadership_follower_default_calculation.json b/tests/results/test_namespace_mandatory/40_0leadership_follower_default_calculation.json new file mode 100644 index 0000000..6939274 --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_0leadership_follower_default_calculation.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_0leadership_follower_default_submulti.json b/tests/results/test_namespace_mandatory/40_0leadership_follower_default_submulti.json new file mode 100644 index 0000000..cb932ee --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_0leadership_follower_default_submulti.json @@ -0,0 +1,120 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_0leadership_follower_default_submulti_calculation.json b/tests/results/test_namespace_mandatory/40_0leadership_follower_default_submulti_calculation.json new file mode 100644 index 0000000..cb932ee --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_0leadership_follower_default_submulti_calculation.json @@ -0,0 +1,120 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_0leadership_follower_default_value.json b/tests/results/test_namespace_mandatory/40_0leadership_follower_default_value.json new file mode 100644 index 0000000..23b8c7e --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_0leadership_follower_default_value.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1" + }, + { + "leader": "string2", + "follower1": "string2" + }, + { + "leader": "string3", + "follower1": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1" + }, + { + "leader": "string2", + "follower1": "string2" + }, + { + "leader": "string3", + "follower1": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_0leadership_leader_not_multi.json b/tests/results/test_namespace_mandatory/40_0leadership_leader_not_multi.json new file mode 100644 index 0000000..6b2b15a --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_0leadership_leader_not_multi.json @@ -0,0 +1,82 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "general": { + "mode_conteneur_actif": "string1" + }, + "general1": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "general": { + "mode_conteneur_actif": "string1" + }, + "general1": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_1leadership_append_follower.json b/tests/results/test_namespace_mandatory/40_1leadership_append_follower.json new file mode 100644 index 0000000..4e106d2 --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_1leadership_append_follower.json @@ -0,0 +1,78 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1", + "follower3": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2", + "follower3": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3", + "follower3": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1", + "follower3": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2", + "follower3": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3", + "follower3": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_2leadership_calculation_index.json b/tests/results/test_namespace_mandatory/40_2leadership_calculation_index.json new file mode 100644 index 0000000..f27a73a --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_2leadership_calculation_index.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_2leadership_calculation_param_index.json b/tests/results/test_namespace_mandatory/40_2leadership_calculation_param_index.json new file mode 100644 index 0000000..f27a73a --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_2leadership_calculation_param_index.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_2leadership_leader_calculation.json b/tests/results/test_namespace_mandatory/40_2leadership_leader_calculation.json new file mode 100644 index 0000000..6939274 --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_2leadership_leader_calculation.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_6leadership_follower_multi.json b/tests/results/test_namespace_mandatory/40_6leadership_follower_multi.json new file mode 100644 index 0000000..53076f3 --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_6leadership_follower_multi.json @@ -0,0 +1,120 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leadership": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leadership": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_8calculation_boolean.json b/tests/results/test_namespace_mandatory/40_8calculation_boolean.json new file mode 100644 index 0000000..0a9dbee --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_8calculation_boolean.json @@ -0,0 +1,52 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "bool": true, + "multi1": [ + true + ], + "multi2": [ + true + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "bool": true, + "multi1": [ + true + ], + "multi2": [ + true + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_8calculation_boolean_return_none.json b/tests/results/test_namespace_mandatory/40_8calculation_boolean_return_none.json new file mode 100644 index 0000000..979dc16 --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_8calculation_boolean_return_none.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_8calculation_integer.json b/tests/results/test_namespace_mandatory/40_8calculation_integer.json new file mode 100644 index 0000000..8e9de8d --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_8calculation_integer.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "bool": true, + "int1": 1, + "int2": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "bool": true, + "int1": 1, + "int2": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_8calculation_multi_variable.json b/tests/results/test_namespace_mandatory/40_8calculation_multi_variable.json new file mode 100644 index 0000000..21c4547 --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_8calculation_multi_variable.json @@ -0,0 +1,52 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "var2": "string1", + "var3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "var2": "string1", + "var3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_8calculation_multi_variable_parent.json b/tests/results/test_namespace_mandatory/40_8calculation_multi_variable_parent.json new file mode 100644 index 0000000..92e9b9f --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_8calculation_multi_variable_parent.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1", + "fam1": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1", + "fam1": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/40_8calculation_multi_variable_parent2.json b/tests/results/test_namespace_mandatory/40_8calculation_multi_variable_parent2.json new file mode 100644 index 0000000..3a57b0f --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_8calculation_multi_variable_parent2.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "fam1": { + "var": "string1" + }, + "fam2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "fam1": { + "var": "string1" + }, + "fam2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/41_0choice_leader.json b/tests/results/test_namespace_mandatory/41_0choice_leader.json new file mode 100644 index 0000000..9fe0731 --- /dev/null +++ b/tests/results/test_namespace_mandatory/41_0choice_leader.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "a" + }, + { + "leader": "string2", + "follower1": "b" + }, + { + "leader": "string3", + "follower1": "c" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "a" + }, + { + "leader": "string2", + "follower1": "b" + }, + { + "leader": "string3", + "follower1": "c" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/44_0leadership_hidden.json b/tests/results/test_namespace_mandatory/44_0leadership_hidden.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_mandatory/44_0leadership_hidden.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/44_0leadership_leader_hidden.json b/tests/results/test_namespace_mandatory/44_0leadership_leader_hidden.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_mandatory/44_0leadership_leader_hidden.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/44_1leadership_append_hidden_follower.json b/tests/results/test_namespace_mandatory/44_1leadership_append_hidden_follower.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_mandatory/44_1leadership_append_hidden_follower.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/44_4disabled_calcultion_follower.json b/tests/results/test_namespace_mandatory/44_4disabled_calcultion_follower.json new file mode 100644 index 0000000..96823e0 --- /dev/null +++ b/tests/results/test_namespace_mandatory/44_4disabled_calcultion_follower.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true, + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true, + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/44_4leadership_mandatory.json b/tests/results/test_namespace_mandatory/44_4leadership_mandatory.json new file mode 100644 index 0000000..23b8c7e --- /dev/null +++ b/tests/results/test_namespace_mandatory/44_4leadership_mandatory.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1" + }, + { + "leader": "string2", + "follower1": "string2" + }, + { + "leader": "string3", + "follower1": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1" + }, + { + "leader": "string2", + "follower1": "string2" + }, + { + "leader": "string3", + "follower1": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/44_4leadership_mandatory_follower.json b/tests/results/test_namespace_mandatory/44_4leadership_mandatory_follower.json new file mode 100644 index 0000000..9e2e38b --- /dev/null +++ b/tests/results/test_namespace_mandatory/44_4leadership_mandatory_follower.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/44_5leadership_leader_hidden_calculation.json b/tests/results/test_namespace_mandatory/44_5leadership_leader_hidden_calculation.json new file mode 100644 index 0000000..b686f83 --- /dev/null +++ b/tests/results/test_namespace_mandatory/44_5leadership_leader_hidden_calculation.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/44_6leadership_follower_disabled_calculation.json b/tests/results/test_namespace_mandatory/44_6leadership_follower_disabled_calculation.json new file mode 100644 index 0000000..b686f83 --- /dev/null +++ b/tests/results/test_namespace_mandatory/44_6leadership_follower_disabled_calculation.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/44_9calculated_default_leadership_leader.json b/tests/results/test_namespace_mandatory/44_9calculated_default_leadership_leader.json new file mode 100644 index 0000000..9e2e38b --- /dev/null +++ b/tests/results/test_namespace_mandatory/44_9calculated_default_leadership_leader.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic.json b/tests/results/test_namespace_mandatory/60_0family_dynamic.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_1_0.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_1_0.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_1_0.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_1_0_empty.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_1_0_empty.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_1_0_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_1_0_type.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_1_0_type.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_1_0_type.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_1_0_type_empty.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_1_0_type_empty.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_1_0_type_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_1_1.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_1_1.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_1_1.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_1_1_empty.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_1_1_empty.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_1_1_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_empty.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_empty.json new file mode 100644 index 0000000..390c5da --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_empty.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dynstring1": { + "var": "string1" + }, + "dynstring2": { + "var": "string1" + }, + "dynstring3": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dynstring1": { + "var": "string1" + }, + "dynstring2": { + "var": "string1" + }, + "dynstring3": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_jinja_number.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_jinja_number.json new file mode 100644 index 0000000..b8b3df0 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_jinja_number.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_jinja_number_empty.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_jinja_number_empty.json new file mode 100644 index 0000000..b8b3df0 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_jinja_number_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_no_description.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_no_description.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_no_description.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_no_description_empty.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_no_description_empty.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_no_description_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_static.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_static.json new file mode 100644 index 0000000..e7424e3 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_static.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_test.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_test.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_test.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_variable_empty.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_variable_empty.json new file mode 100644 index 0000000..390c5da --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_variable_empty.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dynstring1": { + "var": "string1" + }, + "dynstring2": { + "var": "string1" + }, + "dynstring3": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dynstring1": { + "var": "string1" + }, + "dynstring2": { + "var": "string1" + }, + "dynstring3": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_variable_suffix.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_variable_suffix.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_variable_suffix.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_variable_suffix_empty.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_variable_suffix_empty.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_variable_suffix_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_empty.json b/tests/results/test_namespace_mandatory/60_0family_empty.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_empty.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_hidden.json b/tests/results/test_namespace_mandatory/60_0family_hidden.json new file mode 100644 index 0000000..d4b9a08 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_hidden.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_0family_mode.json b/tests/results/test_namespace_mandatory/60_0family_mode.json new file mode 100644 index 0000000..455a057 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_mode.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_1family_dynamic_jinja.json b/tests/results/test_namespace_mandatory/60_1family_dynamic_jinja.json new file mode 100644 index 0000000..3a5e7bc --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_1family_dynamic_jinja.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "dyn3": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "dyn3": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group.json b/tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group.json new file mode 100644 index 0000000..3d10601 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group_2.json b/tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group_2.json new file mode 100644 index 0000000..5b97c2c --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group_2.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group_2_empty.json b/tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group_2_empty.json new file mode 100644 index 0000000..5b97c2c --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group_2_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group_empty.json b/tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group_empty.json new file mode 100644 index 0000000..3d10601 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_2family_dynamic_jinja_fill_sub_group_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_2family_dynamic_outside_calc.json b/tests/results/test_namespace_mandatory/60_2family_dynamic_outside_calc.json new file mode 100644 index 0000000..438fbd5 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_2family_dynamic_outside_calc.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "newvar": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "newvar": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_2family_dynamic_outside_calc_empty.json b/tests/results/test_namespace_mandatory/60_2family_dynamic_outside_calc_empty.json new file mode 100644 index 0000000..438fbd5 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_2family_dynamic_outside_calc_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "newvar": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "newvar": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_calc2.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc2.json new file mode 100644 index 0000000..31e2471 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc2.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_calc2_empty.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc2_empty.json new file mode 100644 index 0000000..31e2471 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc2_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix.json new file mode 100644 index 0000000..c1df137 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix2.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix2.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix2.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix2_empty.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix2_empty.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix2_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_disabled.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_disabled.json new file mode 100644 index 0000000..76fece5 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_disabled.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "dynval1": {}, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "dynval1": {}, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_empty.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_empty.json new file mode 100644 index 0000000..c1df137 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_param.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_param.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_param.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_param_empty.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_param_empty.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_suffix_param_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_variable.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_variable.json new file mode 100644 index 0000000..c1df137 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_variable.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_variable_empty.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_variable_empty.json new file mode 100644 index 0000000..c1df137 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_calc_variable_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_hidden_suffix.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_hidden_suffix.json new file mode 100644 index 0000000..adf16ba --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_hidden_suffix.json @@ -0,0 +1,62 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "dynval1": { + "var": "string1", + "family": { + "var": "string1" + } + }, + "dynval2": { + "var": null, + "family": { + "var": null + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "dynval1": { + "var": "string1", + "family": { + "var": "string1" + } + }, + "dynval2": { + "var": null, + "family": { + "var": null + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_unknown_suffix.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_unknown_suffix.json new file mode 100644 index 0000000..8626c9b --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_unknown_suffix.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_unknown_suffix_empty.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_unknown_suffix_empty.json new file mode 100644 index 0000000..196faf5 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_unknown_suffix_empty.json @@ -0,0 +1,98 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2", + "val3", + "val4" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val3_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val4_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2", + "val3", + "val4" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val3_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val4_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside.json new file mode 100644 index 0000000..8d4e07f --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside2.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside2.json new file mode 100644 index 0000000..38d317c --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside2.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var2": [ + "string1", + "string2", + "string3" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var2": [ + "string1", + "string2", + "string3" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside2_empty.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside2_empty.json new file mode 100644 index 0000000..38d317c --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside2_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var2": [ + "string1", + "string2", + "string3" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var2": [ + "string1", + "string2", + "string3" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_empty.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_empty.json new file mode 100644 index 0000000..8d4e07f --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_jinja.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_jinja.json new file mode 100644 index 0000000..8d4e07f --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_jinja.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_jinja_empty.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_jinja_empty.json new file mode 100644 index 0000000..8d4e07f --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_jinja_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_sub_suffix.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_sub_suffix.json new file mode 100644 index 0000000..b5c6827 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_sub_suffix.json @@ -0,0 +1,88 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_sub_suffix_empty.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_sub_suffix_empty.json new file mode 100644 index 0000000..b5c6827 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_sub_suffix_empty.json @@ -0,0 +1,88 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_suffix.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_suffix.json new file mode 100644 index 0000000..a5c7559 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_suffix.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "string1" + }, + "dyn_val2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "string1" + }, + "dyn_val2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_suffix_empty.json b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_suffix_empty.json new file mode 100644 index 0000000..a5c7559 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_5family_dynamic_variable_outside_suffix_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "string1" + }, + "dyn_val2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "string1" + }, + "dyn_val2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_6family_dynamic_inside.json b/tests/results/test_namespace_mandatory/60_6family_dynamic_inside.json new file mode 100644 index 0000000..c8f4206 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_6family_dynamic_inside.json @@ -0,0 +1,70 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_6family_dynamic_inside_empty.json b/tests/results/test_namespace_mandatory/60_6family_dynamic_inside_empty.json new file mode 100644 index 0000000..c8f4206 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_6family_dynamic_inside_empty.json @@ -0,0 +1,70 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_6family_dynamic_leadership.json b/tests/results/test_namespace_mandatory/60_6family_dynamic_leadership.json new file mode 100644 index 0000000..4cd9d3a --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_6family_dynamic_leadership.json @@ -0,0 +1,122 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + }, + "dynval2": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + }, + "dynval2": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_6family_dynamic_leadership_empty.json b/tests/results/test_namespace_mandatory/60_6family_dynamic_leadership_empty.json new file mode 100644 index 0000000..4cd9d3a --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_6family_dynamic_leadership_empty.json @@ -0,0 +1,122 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + }, + "dynval2": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + }, + "dynval2": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_6family_dynamic_sub_dynamic.json b/tests/results/test_namespace_mandatory/60_6family_dynamic_sub_dynamic.json new file mode 100644 index 0000000..f4d9e7c --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_6family_dynamic_sub_dynamic.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_6family_dynamic_sub_dynamic_1_0.json b/tests/results/test_namespace_mandatory/60_6family_dynamic_sub_dynamic_1_0.json new file mode 100644 index 0000000..f4d9e7c --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_6family_dynamic_sub_dynamic_1_0.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_6family_dynamic_sub_dynamic_empty.json b/tests/results/test_namespace_mandatory/60_6family_dynamic_sub_dynamic_empty.json new file mode 100644 index 0000000..f4d9e7c --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_6family_dynamic_sub_dynamic_empty.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_9extra_dynamic.json b/tests/results/test_namespace_mandatory/60_9extra_dynamic.json new file mode 100644 index 0000000..54c4177 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_9extra_dynamic.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "a" + ] + }, + "extra": { + "dyn_a": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "a" + ] + }, + "extra": { + "dyn_a": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_9extra_dynamic_extra.json b/tests/results/test_namespace_mandatory/60_9extra_dynamic_extra.json new file mode 100644 index 0000000..35f92c7 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_9extra_dynamic_extra.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "general": { + "varname": [ + "string1", + "string2", + "string3" + ] + } + }, + "extra": { + "var": [ + "a" + ], + "dyn_a": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "general": { + "varname": [ + "string1", + "string2", + "string3" + ] + } + }, + "extra": { + "var": [ + "a" + ], + "dyn_a": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/60_9family_dynamic_calc_both.json b/tests/results/test_namespace_mandatory/60_9family_dynamic_calc_both.json new file mode 100644 index 0000000..e77bbae --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_9family_dynamic_calc_both.json @@ -0,0 +1,52 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynstring1": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynstring1": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_mandatory/68_0family_leadership_mode.json b/tests/results/test_namespace_mandatory/68_0family_leadership_mode.json new file mode 100644 index 0000000..6939274 --- /dev/null +++ b/tests/results/test_namespace_mandatory/68_0family_leadership_mode.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_0empty.json b/tests/results/test_namespace_read_write/00_0empty.json new file mode 100644 index 0000000..b7155d1 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_0empty.json @@ -0,0 +1,34 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net" + }, + "GROUP2_01": { + "ansible_host": "group2.net" + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_0version_underscore.json b/tests/results/test_namespace_read_write/00_0version_underscore.json new file mode 100644 index 0000000..07256ab --- /dev/null +++ b/tests/results/test_namespace_read_write/00_0version_underscore.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "version": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "version": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_1empty_variable.json b/tests/results/test_namespace_read_write/00_1empty_variable.json new file mode 100644 index 0000000..d6b195e --- /dev/null +++ b/tests/results/test_namespace_read_write/00_1empty_variable.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "empty": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "empty": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_2default_calculated.json b/tests/results/test_namespace_read_write/00_2default_calculated.json new file mode 100644 index 0000000..560065f --- /dev/null +++ b/tests/results/test_namespace_read_write/00_2default_calculated.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "no", + "var2": [ + "no" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "no", + "var2": [ + "no" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_2default_calculated_multi.json b/tests/results/test_namespace_read_write/00_2default_calculated_multi.json new file mode 100644 index 0000000..cb90dc6 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_2default_calculated_multi.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "no", + "yes", + "maybe" + ], + "var2": [ + "no", + "yes", + "maybe" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "no", + "yes", + "maybe" + ], + "var2": [ + "no", + "yes", + "maybe" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_2default_calculated_variable_transitive.json b/tests/results/test_namespace_read_write/00_2default_calculated_variable_transitive.json new file mode 100644 index 0000000..6223744 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_2default_calculated_variable_transitive.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [], + "var2": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [], + "var2": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_4load_subfolder.json b/tests/results/test_namespace_read_write/00_4load_subfolder.json new file mode 100644 index 0000000..11cd802 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_4load_subfolder.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": null, + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": null, + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_5load_notype.json b/tests/results/test_namespace_read_write/00_5load_notype.json new file mode 100644 index 0000000..f715352 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_5load_notype.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "without_type": "non" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "without_type": "non" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_6boolean.json b/tests/results/test_namespace_read_write/00_6boolean.json new file mode 100644 index 0000000..8d18c2d --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6boolean.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": true, + "var2": true, + "var3": true, + "var4": false, + "var5": false, + "var6": false + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": true, + "var2": true, + "var3": true, + "var4": false, + "var5": false, + "var6": false + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_6boolean_no_mandatory.json b/tests/results/test_namespace_read_write/00_6boolean_no_mandatory.json new file mode 100644 index 0000000..ed87618 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6boolean_no_mandatory.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_6choice.json b/tests/results/test_namespace_read_write/00_6choice.json new file mode 100644 index 0000000..2999f3d --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6choice.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": null, + "var2": null, + "var3": null, + "var4": null, + "var5": "a", + "var6": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": null, + "var2": null, + "var3": null, + "var4": null, + "var5": "a", + "var6": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_6choice_calculation.json b/tests/results/test_namespace_read_write/00_6choice_calculation.json new file mode 100644 index 0000000..978e0c4 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6choice_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": 9 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": 9 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_6choice_variable.json b/tests/results/test_namespace_read_write/00_6choice_variable.json new file mode 100644 index 0000000..ed6199a --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6choice_variable.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "a", + "b", + "c" + ], + "var2": "a" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "a", + "b", + "c" + ], + "var2": "a" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_6custom.json b/tests/results/test_namespace_read_write/00_6custom.json new file mode 100644 index 0000000..52ff38f --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6custom.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "custom1": null, + "custom2": "value" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "custom1": null, + "custom2": "value" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_6domainname.json b/tests/results/test_namespace_read_write/00_6domainname.json new file mode 100644 index 0000000..a927d2d --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6domainname.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "my.domain.name" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "my.domain.name" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_6domainname_params.json b/tests/results/test_namespace_read_write/00_6domainname_params.json new file mode 100644 index 0000000..a927d2d --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6domainname_params.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "my.domain.name" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "my.domain.name" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_6float.json b/tests/results/test_namespace_read_write/00_6float.json new file mode 100644 index 0000000..1bfdabc --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6float.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": 0.0, + "var2": 0.0, + "var3": 0.0, + "var4": 10.1, + "var5": 10.1, + "var6": 10.1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": 0.0, + "var2": 0.0, + "var3": 0.0, + "var4": 10.1, + "var5": 10.1, + "var6": 10.1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_6number.json b/tests/results/test_namespace_read_write/00_6number.json new file mode 100644 index 0000000..6ee86c2 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6number.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": 0, + "var2": 0, + "var3": 0, + "var4": 10, + "var5": 10, + "var6": 10 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": 0, + "var2": 0, + "var3": 0, + "var4": 10, + "var5": 10, + "var6": 10 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_6port.json b/tests/results/test_namespace_read_write/00_6port.json new file mode 100644 index 0000000..74203cd --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6port.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable1": null, + "variable2": "8080", + "variable3": "8080" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable1": null, + "variable2": "8080", + "variable3": "8080" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_6regexp.json b/tests/results/test_namespace_read_write/00_6regexp.json new file mode 100644 index 0000000..bdcfdaa --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6regexp.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "#a1a1a1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "#a1a1a1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_6string.json b/tests/results/test_namespace_read_write/00_6string.json new file mode 100644 index 0000000..ce7d7fc --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6string.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": null, + "var2": null, + "var3": null, + "var4": "value", + "var5": "value", + "var6": "value" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": null, + "var2": null, + "var3": null, + "var4": "value", + "var5": "value", + "var6": "value" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_7choice_quote.json b/tests/results/test_namespace_read_write/00_7choice_quote.json new file mode 100644 index 0000000..05d9eb3 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_7choice_quote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "quote'" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "quote'" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_7help_quote.json b/tests/results/test_namespace_read_write/00_7help_quote.json new file mode 100644 index 0000000..11cd802 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_7help_quote.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": null, + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": null, + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_7value_doublequote.json b/tests/results/test_namespace_read_write/00_7value_doublequote.json new file mode 100644 index 0000000..ef1f84a --- /dev/null +++ b/tests/results/test_namespace_read_write/00_7value_doublequote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "quote\"" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "quote\"" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_7value_doublequote2.json b/tests/results/test_namespace_read_write/00_7value_doublequote2.json new file mode 100644 index 0000000..10ee5a9 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_7value_doublequote2.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "quote'\"" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "quote'\"" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_7value_doublequote3.json b/tests/results/test_namespace_read_write/00_7value_doublequote3.json new file mode 100644 index 0000000..0efcfd8 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_7value_doublequote3.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "quote\\\"\\'" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "quote\\\"\\'" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_7value_quote.json b/tests/results/test_namespace_read_write/00_7value_quote.json new file mode 100644 index 0000000..f53ec86 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_7value_quote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "quote'" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "quote'" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_8calculation_information.json b/tests/results/test_namespace_read_write/00_8calculation_information.json new file mode 100644 index 0000000..d25a285 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_8calculation_information.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_8test.json b/tests/results/test_namespace_read_write/00_8test.json new file mode 100644 index 0000000..02101da --- /dev/null +++ b/tests/results/test_namespace_read_write/00_8test.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": null, + "var2": "value", + "var3": null, + "var4": null, + "var5": true, + "var6": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": null, + "var2": "value", + "var3": null, + "var4": null, + "var5": true, + "var6": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9choice_variable_multi.json b/tests/results/test_namespace_read_write/00_9choice_variable_multi.json new file mode 100644 index 0000000..ee31e39 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9choice_variable_multi.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable1": [], + "variable2": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable1": [], + "variable2": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9choice_variables.json b/tests/results/test_namespace_read_write/00_9choice_variables.json new file mode 100644 index 0000000..22805e8 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9choice_variables.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "source_variable_1": "val1", + "source_variable_2": "val2", + "my_variable": "val1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "source_variable_1": "val1", + "source_variable_2": "val2", + "my_variable": "val1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9default_calculation.json b/tests/results/test_namespace_read_write/00_9default_calculation.json new file mode 100644 index 0000000..d53126d --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9default_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string_1_True_None" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string_1_True_None" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9default_calculation_information.json b/tests/results/test_namespace_read_write/00_9default_calculation_information.json new file mode 100644 index 0000000..2ab1c8d --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9default_calculation_information.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9default_calculation_information_other_variable.json b/tests/results/test_namespace_read_write/00_9default_calculation_information_other_variable.json new file mode 100644 index 0000000..11cd802 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9default_calculation_information_other_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": null, + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": null, + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9default_calculation_multi_optional.json b/tests/results/test_namespace_read_write/00_9default_calculation_multi_optional.json new file mode 100644 index 0000000..0472b2d --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9default_calculation_multi_optional.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": "val1", + "my_calculated_variable": [ + "val1" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": "val1", + "my_calculated_variable": [ + "val1" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9default_calculation_multi_optional2.json b/tests/results/test_namespace_read_write/00_9default_calculation_multi_optional2.json new file mode 100644 index 0000000..0472b2d --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9default_calculation_multi_optional2.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": "val1", + "my_calculated_variable": [ + "val1" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": "val1", + "my_calculated_variable": [ + "val1" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9default_calculation_optional.json b/tests/results/test_namespace_read_write/00_9default_calculation_optional.json new file mode 100644 index 0000000..4dcd8fe --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9default_calculation_optional.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_calculated_variable": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_calculated_variable": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9default_calculation_optional_exists.json b/tests/results/test_namespace_read_write/00_9default_calculation_optional_exists.json new file mode 100644 index 0000000..5e80732 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9default_calculation_optional_exists.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": [ + "val1", + "val2" + ], + "my_calculated_variable": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": [ + "val1", + "val2" + ], + "my_calculated_variable": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9default_calculation_param_optional.json b/tests/results/test_namespace_read_write/00_9default_calculation_param_optional.json new file mode 100644 index 0000000..b50fd53 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9default_calculation_param_optional.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "no", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "no", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9default_information_other_variable.json b/tests/results/test_namespace_read_write/00_9default_information_other_variable.json new file mode 100644 index 0000000..11cd802 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9default_information_other_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": null, + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": null, + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9default_integer.json b/tests/results/test_namespace_read_write/00_9default_integer.json new file mode 100644 index 0000000..978e0c4 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9default_integer.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": 9 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": 9 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9extra.json b/tests/results/test_namespace_read_write/00_9extra.json new file mode 100644 index 0000000..7406536 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9extra.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "rougail" + }, + "extra": { + "variable": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "rougail" + }, + "extra": { + "variable": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/00_9extra_calculation.json b/tests/results/test_namespace_read_write/00_9extra_calculation.json new file mode 100644 index 0000000..fdc102d --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9extra_calculation.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "value" + }, + "extra": { + "variable1": "value", + "variable2": "value", + "variable3": "value" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "value" + }, + "extra": { + "variable1": "value", + "variable2": "value", + "variable3": "value" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/01_6boolean_multi.json b/tests/results/test_namespace_read_write/01_6boolean_multi.json new file mode 100644 index 0000000..742da6a --- /dev/null +++ b/tests/results/test_namespace_read_write/01_6boolean_multi.json @@ -0,0 +1,86 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + true + ], + "var2": [ + true + ], + "var3": [ + true + ], + "var4": [ + false + ], + "var5": [ + false + ], + "var6": [ + false + ], + "var7": [ + true + ], + "var8": [ + true + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + true + ], + "var2": [ + true + ], + "var3": [ + true + ], + "var4": [ + false + ], + "var5": [ + false + ], + "var6": [ + false + ], + "var7": [ + true + ], + "var8": [ + true + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/01_6custom_multi.json b/tests/results/test_namespace_read_write/01_6custom_multi.json new file mode 100644 index 0000000..b1afe84 --- /dev/null +++ b/tests/results/test_namespace_read_write/01_6custom_multi.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "custom1": [], + "custom2": [ + "value" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "custom1": [], + "custom2": [ + "value" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/01_6float_multi.json b/tests/results/test_namespace_read_write/01_6float_multi.json new file mode 100644 index 0000000..259bbe1 --- /dev/null +++ b/tests/results/test_namespace_read_write/01_6float_multi.json @@ -0,0 +1,86 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + 0.0 + ], + "var2": [ + 0.0 + ], + "var3": [ + 0.0 + ], + "var4": [ + 10.1 + ], + "var5": [ + 10.1 + ], + "var6": [ + 10.1 + ], + "var7": [ + 0.0 + ], + "var8": [ + 0.0 + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + 0.0 + ], + "var2": [ + 0.0 + ], + "var3": [ + 0.0 + ], + "var4": [ + 10.1 + ], + "var5": [ + 10.1 + ], + "var6": [ + 10.1 + ], + "var7": [ + 0.0 + ], + "var8": [ + 0.0 + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/01_6number_multi.json b/tests/results/test_namespace_read_write/01_6number_multi.json new file mode 100644 index 0000000..c5df092 --- /dev/null +++ b/tests/results/test_namespace_read_write/01_6number_multi.json @@ -0,0 +1,86 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + 0 + ], + "var2": [ + 0 + ], + "var3": [ + 0 + ], + "var4": [ + 10 + ], + "var5": [ + 10 + ], + "var6": [ + 10 + ], + "var7": [ + 0 + ], + "var8": [ + 0 + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + 0 + ], + "var2": [ + 0 + ], + "var3": [ + 0 + ], + "var4": [ + 10 + ], + "var5": [ + 10 + ], + "var6": [ + 10 + ], + "var7": [ + 0 + ], + "var8": [ + 0 + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/01_6string_empty.json b/tests/results/test_namespace_read_write/01_6string_empty.json new file mode 100644 index 0000000..13fd6ad --- /dev/null +++ b/tests/results/test_namespace_read_write/01_6string_empty.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "value", + null + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "value", + null + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/01_6string_multi.json b/tests/results/test_namespace_read_write/01_6string_multi.json new file mode 100644 index 0000000..b87208d --- /dev/null +++ b/tests/results/test_namespace_read_write/01_6string_multi.json @@ -0,0 +1,74 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [], + "var2": [], + "var3": null, + "var4": [ + "value" + ], + "var5": [ + "value" + ], + "var6": [ + "value" + ], + "var7": [ + "value" + ], + "var8": [ + "value" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [], + "var2": [], + "var3": null, + "var4": [ + "value" + ], + "var5": [ + "value" + ], + "var6": [ + "value" + ], + "var7": [ + "value" + ], + "var8": [ + "value" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/01_7value_multi_doublequote.json b/tests/results/test_namespace_read_write/01_7value_multi_doublequote.json new file mode 100644 index 0000000..f57f500 --- /dev/null +++ b/tests/results/test_namespace_read_write/01_7value_multi_doublequote.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "quote\"" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "quote\"" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/01_7value_multi_doublequote2.json b/tests/results/test_namespace_read_write/01_7value_multi_doublequote2.json new file mode 100644 index 0000000..e73a810 --- /dev/null +++ b/tests/results/test_namespace_read_write/01_7value_multi_doublequote2.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "quote'\"" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "quote'\"" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/01_7value_multi_quote.json b/tests/results/test_namespace_read_write/01_7value_multi_quote.json new file mode 100644 index 0000000..78273fd --- /dev/null +++ b/tests/results/test_namespace_read_write/01_7value_multi_quote.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "quote'" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "quote'" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/01_8calculation_information_multi.json b/tests/results/test_namespace_read_write/01_8calculation_information_multi.json new file mode 100644 index 0000000..d365630 --- /dev/null +++ b/tests/results/test_namespace_read_write/01_8calculation_information_multi.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/01_9choice_variable_multi.json b/tests/results/test_namespace_read_write/01_9choice_variable_multi.json new file mode 100644 index 0000000..b942bd1 --- /dev/null +++ b/tests/results/test_namespace_read_write/01_9choice_variable_multi.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable1": [ + "a", + "b", + "c" + ], + "variable2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable1": [ + "a", + "b", + "c" + ], + "variable2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_0type_param.json b/tests/results/test_namespace_read_write/04_0type_param.json new file mode 100644 index 0000000..0db0f8b --- /dev/null +++ b/tests/results/test_namespace_read_write/04_0type_param.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "int": 10 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "int": 10 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_1auto_save.json b/tests/results/test_namespace_read_write/04_1auto_save.json new file mode 100644 index 0000000..7b77c76 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_1auto_save.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_1auto_save_and_calculated.json b/tests/results/test_namespace_read_write/04_1auto_save_and_calculated.json new file mode 100644 index 0000000..b50fd53 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_1auto_save_and_calculated.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "no", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "no", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_1auto_save_and_calculated_hidden.json b/tests/results/test_namespace_read_write/04_1auto_save_and_calculated_hidden.json new file mode 100644 index 0000000..0efc416 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_1auto_save_and_calculated_hidden.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "no", + "var2": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "no", + "var2": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_1auto_save_and_hidden.json b/tests/results/test_namespace_read_write/04_1auto_save_and_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/04_1auto_save_and_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_1default_calculation_hidden.json b/tests/results/test_namespace_read_write/04_1default_calculation_hidden.json new file mode 100644 index 0000000..98c480f --- /dev/null +++ b/tests/results/test_namespace_read_write/04_1default_calculation_hidden.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "value", + "var3": "value" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "value", + "var3": "value" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_1default_calculation_hidden_2.json b/tests/results/test_namespace_read_write/04_1default_calculation_hidden_2.json new file mode 100644 index 0000000..98c480f --- /dev/null +++ b/tests/results/test_namespace_read_write/04_1default_calculation_hidden_2.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "value", + "var3": "value" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "value", + "var3": "value" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation.json b/tests/results/test_namespace_read_write/04_5disabled_calculation.json new file mode 100644 index 0000000..0f7b444 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5disabled_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "variable1": null, + "variable2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "variable1": null, + "variable2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_default.json b/tests/results/test_namespace_read_write/04_5disabled_calculation_default.json new file mode 100644 index 0000000..2c10255 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5disabled_calculation_default.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "var1": "no", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "var1": "no", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_optional.json b/tests/results/test_namespace_read_write/04_5disabled_calculation_optional.json new file mode 100644 index 0000000..8dd9efe --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5disabled_calculation_optional.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_variable.json b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable.json new file mode 100644 index 0000000..f9b5640 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": false, + "variable": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": false, + "variable": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_variable2.json b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable2.json new file mode 100644 index 0000000..7f98eb8 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable2.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_variable3.json b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable3.json new file mode 100644 index 0000000..5490356 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable3.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_variable4.json b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable4.json new file mode 100644 index 0000000..d23a467 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable4.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "yes", + "variable": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "yes", + "variable": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5hidden_calculation.json b/tests/results/test_namespace_read_write/04_5hidden_calculation.json new file mode 100644 index 0000000..2c10255 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5hidden_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "var1": "no", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "var1": "no", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5hidden_calculation2.json b/tests/results/test_namespace_read_write/04_5hidden_calculation2.json new file mode 100644 index 0000000..8dd9efe --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5hidden_calculation2.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5hidden_calculation_default_calculation.json b/tests/results/test_namespace_read_write/04_5hidden_calculation_default_calculation.json new file mode 100644 index 0000000..2c10255 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5hidden_calculation_default_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "var1": "no", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "var1": "no", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5validators.json b/tests/results/test_namespace_read_write/04_5validators.json new file mode 100644 index 0000000..9c55e84 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5validators.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "int": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "int": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5validators_differ.json b/tests/results/test_namespace_read_write/04_5validators_differ.json new file mode 100644 index 0000000..0899187 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5validators_differ.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "oui", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "oui", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5validators_multi.json b/tests/results/test_namespace_read_write/04_5validators_multi.json new file mode 100644 index 0000000..b342be2 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5validators_multi.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "no", + "yes" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "no", + "yes" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/04_5validators_multi2.json b/tests/results/test_namespace_read_write/04_5validators_multi2.json new file mode 100644 index 0000000..b342be2 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5validators_multi2.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "no", + "yes" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "no", + "yes" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/05_0multi_not_uniq.json b/tests/results/test_namespace_read_write/05_0multi_not_uniq.json new file mode 100644 index 0000000..4241886 --- /dev/null +++ b/tests/results/test_namespace_read_write/05_0multi_not_uniq.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "non" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "non" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/05_0multi_uniq.json b/tests/results/test_namespace_read_write/05_0multi_uniq.json new file mode 100644 index 0000000..c45f586 --- /dev/null +++ b/tests/results/test_namespace_read_write/05_0multi_uniq.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "non" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "non" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/12_1auto_save_expert.json b/tests/results/test_namespace_read_write/12_1auto_save_expert.json new file mode 100644 index 0000000..ac68847 --- /dev/null +++ b/tests/results/test_namespace_read_write/12_1auto_save_expert.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_0redefine_description.json b/tests/results/test_namespace_read_write/16_0redefine_description.json new file mode 100644 index 0000000..2ab1c8d --- /dev/null +++ b/tests/results/test_namespace_read_write/16_0redefine_description.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_2family_redefine_calculation.json b/tests/results/test_namespace_read_write/16_2family_redefine_calculation.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/16_2family_redefine_calculation.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_2family_redefine_disabled.json b/tests/results/test_namespace_read_write/16_2family_redefine_disabled.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/16_2family_redefine_disabled.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_5exists_nonexists.json b/tests/results/test_namespace_read_write/16_5exists_nonexists.json new file mode 100644 index 0000000..0efc416 --- /dev/null +++ b/tests/results/test_namespace_read_write/16_5exists_nonexists.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "no", + "var2": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "no", + "var2": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_5exists_redefine.json b/tests/results/test_namespace_read_write/16_5exists_redefine.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/16_5exists_redefine.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_5redefine_calculation.json b/tests/results/test_namespace_read_write/16_5redefine_calculation.json new file mode 100644 index 0000000..b2a90a5 --- /dev/null +++ b/tests/results/test_namespace_read_write/16_5redefine_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_5redefine_choice.json b/tests/results/test_namespace_read_write/16_5redefine_choice.json new file mode 100644 index 0000000..d25a285 --- /dev/null +++ b/tests/results/test_namespace_read_write/16_5redefine_choice.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_5redefine_default.json b/tests/results/test_namespace_read_write/16_5redefine_default.json new file mode 100644 index 0000000..b2a90a5 --- /dev/null +++ b/tests/results/test_namespace_read_write/16_5redefine_default.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_5redefine_default_calculation.json b/tests/results/test_namespace_read_write/16_5redefine_default_calculation.json new file mode 100644 index 0000000..d25a285 --- /dev/null +++ b/tests/results/test_namespace_read_write/16_5redefine_default_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_5redefine_family.json b/tests/results/test_namespace_read_write/16_5redefine_family.json new file mode 100644 index 0000000..7884e2a --- /dev/null +++ b/tests/results/test_namespace_read_write/16_5redefine_family.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "variable": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "variable": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_5redefine_help.json b/tests/results/test_namespace_read_write/16_5redefine_help.json new file mode 100644 index 0000000..7884e2a --- /dev/null +++ b/tests/results/test_namespace_read_write/16_5redefine_help.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "variable": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "variable": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_5redefine_hidden.json b/tests/results/test_namespace_read_write/16_5redefine_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/16_5redefine_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_5redefine_multi.json b/tests/results/test_namespace_read_write/16_5redefine_multi.json new file mode 100644 index 0000000..c45f586 --- /dev/null +++ b/tests/results/test_namespace_read_write/16_5redefine_multi.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "non" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "non" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_5redefine_remove_disable_calculation.json b/tests/results/test_namespace_read_write/16_5redefine_remove_disable_calculation.json new file mode 100644 index 0000000..14f8271 --- /dev/null +++ b/tests/results/test_namespace_read_write/16_5redefine_remove_disable_calculation.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "variable": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "variable": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_5test_redefine.json b/tests/results/test_namespace_read_write/16_5test_redefine.json new file mode 100644 index 0000000..e402c8b --- /dev/null +++ b/tests/results/test_namespace_read_write/16_5test_redefine.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "no", + "var2": "non", + "var3": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "no", + "var2": "non", + "var3": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_6choice_redefine.json b/tests/results/test_namespace_read_write/16_6choice_redefine.json new file mode 100644 index 0000000..e658b11 --- /dev/null +++ b/tests/results/test_namespace_read_write/16_6choice_redefine.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "c" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "c" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16_6exists_redefine_family.json b/tests/results/test_namespace_read_write/16_6exists_redefine_family.json new file mode 100644 index 0000000..3fc38ef --- /dev/null +++ b/tests/results/test_namespace_read_write/16_6exists_redefine_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family1": { + "variable1": null + }, + "family2": { + "variable2": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family1": { + "variable1": null + }, + "family2": { + "variable2": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/16exists_exists.json b/tests/results/test_namespace_read_write/16exists_exists.json new file mode 100644 index 0000000..2ab1c8d --- /dev/null +++ b/tests/results/test_namespace_read_write/16exists_exists.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/17_5redefine_leadership.json b/tests/results/test_namespace_read_write/17_5redefine_leadership.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/17_5redefine_leadership.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/20_0empty_family.json b/tests/results/test_namespace_read_write/20_0empty_family.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/20_0empty_family.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/20_0family_append.json b/tests/results/test_namespace_read_write/20_0family_append.json new file mode 100644 index 0000000..e7ddf5f --- /dev/null +++ b/tests/results/test_namespace_read_write/20_0family_append.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var1": null, + "var2": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var1": null, + "var2": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/20_0family_underscore.json b/tests/results/test_namespace_read_write/20_0family_underscore.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/20_0family_underscore.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/20_0multi_family.json b/tests/results/test_namespace_read_write/20_0multi_family.json new file mode 100644 index 0000000..52f6eab --- /dev/null +++ b/tests/results/test_namespace_read_write/20_0multi_family.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": null + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": null + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/20_0multi_family_basic.json b/tests/results/test_namespace_read_write/20_0multi_family_basic.json new file mode 100644 index 0000000..52f6eab --- /dev/null +++ b/tests/results/test_namespace_read_write/20_0multi_family_basic.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": null + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": null + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/20_0multi_family_expert.json b/tests/results/test_namespace_read_write/20_0multi_family_expert.json new file mode 100644 index 0000000..52f6eab --- /dev/null +++ b/tests/results/test_namespace_read_write/20_0multi_family_expert.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": null + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": null + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/20_0multi_family_order.json b/tests/results/test_namespace_read_write/20_0multi_family_order.json new file mode 100644 index 0000000..292c023 --- /dev/null +++ b/tests/results/test_namespace_read_write/20_0multi_family_order.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": null, + "family": { + "variable1": null, + "subfamily": { + "variable": null + }, + "variable2": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": null, + "family": { + "variable1": null, + "subfamily": { + "variable": null + }, + "variable2": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/20_0validators_differ_redefine.json b/tests/results/test_namespace_read_write/20_0validators_differ_redefine.json new file mode 100644 index 0000000..99d7de3 --- /dev/null +++ b/tests/results/test_namespace_read_write/20_0validators_differ_redefine.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "no", + "var2": "no", + "var3": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "no", + "var2": "no", + "var3": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/20_1empty_subfamily.json b/tests/results/test_namespace_read_write/20_1empty_subfamily.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/20_1empty_subfamily.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/20_9default_information_parent.json b/tests/results/test_namespace_read_write/20_9default_information_parent.json new file mode 100644 index 0000000..e7ddf5f --- /dev/null +++ b/tests/results/test_namespace_read_write/20_9default_information_parent.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var1": null, + "var2": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var1": null, + "var2": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/24_0family_hidden_condition.json b/tests/results/test_namespace_read_write/24_0family_hidden_condition.json new file mode 100644 index 0000000..e3ef66c --- /dev/null +++ b/tests/results/test_namespace_read_write/24_0family_hidden_condition.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "family": { + "var1": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "family": { + "var1": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/24_0family_hidden_condition_boolean.json b/tests/results/test_namespace_read_write/24_0family_hidden_condition_boolean.json new file mode 100644 index 0000000..13f36b1 --- /dev/null +++ b/tests/results/test_namespace_read_write/24_0family_hidden_condition_boolean.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": false + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": false + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/24_0family_hidden_condition_sub_family.json b/tests/results/test_namespace_read_write/24_0family_hidden_condition_sub_family.json new file mode 100644 index 0000000..8bcf269 --- /dev/null +++ b/tests/results/test_namespace_read_write/24_0family_hidden_condition_sub_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "family": { + "subfamily": { + "var1": null + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "family": { + "subfamily": { + "var1": null + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/24_0family_hidden_condition_variable_sub_family.json b/tests/results/test_namespace_read_write/24_0family_hidden_condition_variable_sub_family.json new file mode 100644 index 0000000..7f98eb8 --- /dev/null +++ b/tests/results/test_namespace_read_write/24_0family_hidden_condition_variable_sub_family.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/24_0family_hidden_condition_with_variable.json b/tests/results/test_namespace_read_write/24_0family_hidden_condition_with_variable.json new file mode 100644 index 0000000..8425ec0 --- /dev/null +++ b/tests/results/test_namespace_read_write/24_0family_hidden_condition_with_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition1": false, + "condition2": false + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition1": false, + "condition2": false + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/24_0family_hidden_param_condition_sub_family.json b/tests/results/test_namespace_read_write/24_0family_hidden_param_condition_sub_family.json new file mode 100644 index 0000000..e89151f --- /dev/null +++ b/tests/results/test_namespace_read_write/24_0family_hidden_param_condition_sub_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "family": { + "sub_family": { + "var1": null + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "family": { + "sub_family": { + "var1": null + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/24_0family_mandatory_condition.json b/tests/results/test_namespace_read_write/24_0family_mandatory_condition.json new file mode 100644 index 0000000..dc96517 --- /dev/null +++ b/tests/results/test_namespace_read_write/24_0family_mandatory_condition.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "var": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "var": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/24_0family_mandatory_condition_variable.json b/tests/results/test_namespace_read_write/24_0family_mandatory_condition_variable.json new file mode 100644 index 0000000..0c688be --- /dev/null +++ b/tests/results/test_namespace_read_write/24_0family_mandatory_condition_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true, + "var": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true, + "var": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/24_7validators_variable_optional.json b/tests/results/test_namespace_read_write/24_7validators_variable_optional.json new file mode 100644 index 0000000..3d98dec --- /dev/null +++ b/tests/results/test_namespace_read_write/24_7validators_variable_optional.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "general": { + "int": null, + "int2": 1 + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "general": { + "int": null, + "int2": 1 + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/24_family_disabled_var_hidden.json b/tests/results/test_namespace_read_write/24_family_disabled_var_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/24_family_disabled_var_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_0leadership.json b/tests/results/test_namespace_read_write/40_0leadership.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_0leadership.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_0leadership_diff_name.json b/tests/results/test_namespace_read_write/40_0leadership_diff_name.json new file mode 100644 index 0000000..f63b649 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_0leadership_diff_name.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leadership": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leadership": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_0leadership_empty.json b/tests/results/test_namespace_read_write/40_0leadership_empty.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/40_0leadership_empty.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_0leadership_follower_default_calculation.json b/tests/results/test_namespace_read_write/40_0leadership_follower_default_calculation.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_0leadership_follower_default_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_0leadership_follower_default_submulti.json b/tests/results/test_namespace_read_write/40_0leadership_follower_default_submulti.json new file mode 100644 index 0000000..3864db5 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_0leadership_follower_default_submulti.json @@ -0,0 +1,62 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "leader", + "follower1": [ + "value" + ], + "follower2": [ + "value1", + "value2" + ] + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "leader", + "follower1": [ + "value" + ], + "follower2": [ + "value1", + "value2" + ] + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_0leadership_follower_default_submulti_calculation.json b/tests/results/test_namespace_read_write/40_0leadership_follower_default_submulti_calculation.json new file mode 100644 index 0000000..9ad03e3 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_0leadership_follower_default_submulti_calculation.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "leader", + "follower1": [ + "value" + ], + "follower2": [ + "value" + ] + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "leader", + "follower1": [ + "value" + ], + "follower2": [ + "value" + ] + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_0leadership_follower_default_value.json b/tests/results/test_namespace_read_write/40_0leadership_follower_default_value.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_0leadership_follower_default_value.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_0leadership_leader_not_multi.json b/tests/results/test_namespace_read_write/40_0leadership_leader_not_multi.json new file mode 100644 index 0000000..4f341af --- /dev/null +++ b/tests/results/test_namespace_read_write/40_0leadership_leader_not_multi.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "general": { + "mode_conteneur_actif": "non" + }, + "general1": { + "leader": [] + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "general": { + "mode_conteneur_actif": "non" + }, + "general1": { + "leader": [] + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_1leadership_append_follower.json b/tests/results/test_namespace_read_write/40_1leadership_append_follower.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_1leadership_append_follower.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_2leadership_calculation_index.json b/tests/results/test_namespace_read_write/40_2leadership_calculation_index.json new file mode 100644 index 0000000..f758255 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_2leadership_calculation_index.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_2leadership_calculation_param_index.json b/tests/results/test_namespace_read_write/40_2leadership_calculation_param_index.json new file mode 100644 index 0000000..f758255 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_2leadership_calculation_param_index.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_2leadership_leader_calculation.json b/tests/results/test_namespace_read_write/40_2leadership_leader_calculation.json new file mode 100644 index 0000000..440a8f0 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_2leadership_leader_calculation.json @@ -0,0 +1,62 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "val1", + "follower1": null, + "follower2": null + }, + { + "leader": "val2", + "follower1": null, + "follower2": null + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "val1", + "follower1": null, + "follower2": null + }, + { + "leader": "val2", + "follower1": null, + "follower2": null + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_6leadership_follower_multi.json b/tests/results/test_namespace_read_write/40_6leadership_follower_multi.json new file mode 100644 index 0000000..f63b649 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_6leadership_follower_multi.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leadership": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leadership": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_8calculation_boolean.json b/tests/results/test_namespace_read_write/40_8calculation_boolean.json new file mode 100644 index 0000000..1d794d3 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_8calculation_boolean.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "bool": false, + "multi1": [ + false + ], + "multi2": [ + true, + false + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "bool": false, + "multi1": [ + false + ], + "multi2": [ + true, + false + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_8calculation_boolean_return_none.json b/tests/results/test_namespace_read_write/40_8calculation_boolean_return_none.json new file mode 100644 index 0000000..637ac84 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_8calculation_boolean_return_none.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "yes", + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "yes", + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_8calculation_integer.json b/tests/results/test_namespace_read_write/40_8calculation_integer.json new file mode 100644 index 0000000..13735f1 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_8calculation_integer.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "bool": false, + "int1": 2, + "int2": 3 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "bool": false, + "int1": 2, + "int2": 3 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_8calculation_multi_variable.json b/tests/results/test_namespace_read_write/40_8calculation_multi_variable.json new file mode 100644 index 0000000..08ecc87 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_8calculation_multi_variable.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "no", + "yes" + ], + "var2": "no", + "var3": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "no", + "yes" + ], + "var2": "no", + "var3": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_8calculation_multi_variable_parent.json b/tests/results/test_namespace_read_write/40_8calculation_multi_variable_parent.json new file mode 100644 index 0000000..b4c6969 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_8calculation_multi_variable_parent.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "no", + "fam1": { + "var": "no" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "no", + "fam1": { + "var": "no" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/40_8calculation_multi_variable_parent2.json b/tests/results/test_namespace_read_write/40_8calculation_multi_variable_parent2.json new file mode 100644 index 0000000..ab7cae1 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_8calculation_multi_variable_parent2.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "fam1": { + "var": "no" + }, + "fam2": { + "var": "no" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "fam1": { + "var": "no" + }, + "fam2": { + "var": "no" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/41_0choice_leader.json b/tests/results/test_namespace_read_write/41_0choice_leader.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_read_write/41_0choice_leader.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/44_0leadership_hidden.json b/tests/results/test_namespace_read_write/44_0leadership_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/44_0leadership_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/44_0leadership_leader_hidden.json b/tests/results/test_namespace_read_write/44_0leadership_leader_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/44_0leadership_leader_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/44_1leadership_append_hidden_follower.json b/tests/results/test_namespace_read_write/44_1leadership_append_hidden_follower.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/44_1leadership_append_hidden_follower.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/44_4disabled_calcultion_follower.json b/tests/results/test_namespace_read_write/44_4disabled_calcultion_follower.json new file mode 100644 index 0000000..ef4013f --- /dev/null +++ b/tests/results/test_namespace_read_write/44_4disabled_calcultion_follower.json @@ -0,0 +1,52 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true, + "leader": [ + { + "leader": "a", + "follower": null + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true, + "leader": [ + { + "leader": "a", + "follower": null + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/44_4leadership_mandatory.json b/tests/results/test_namespace_read_write/44_4leadership_mandatory.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_read_write/44_4leadership_mandatory.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/44_4leadership_mandatory_follower.json b/tests/results/test_namespace_read_write/44_4leadership_mandatory_follower.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_read_write/44_4leadership_mandatory_follower.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/44_5leadership_leader_hidden_calculation.json b/tests/results/test_namespace_read_write/44_5leadership_leader_hidden_calculation.json new file mode 100644 index 0000000..8dd9efe --- /dev/null +++ b/tests/results/test_namespace_read_write/44_5leadership_leader_hidden_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/44_6leadership_follower_disabled_calculation.json b/tests/results/test_namespace_read_write/44_6leadership_follower_disabled_calculation.json new file mode 100644 index 0000000..2342399 --- /dev/null +++ b/tests/results/test_namespace_read_write/44_6leadership_follower_disabled_calculation.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "yes", + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "yes", + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/44_9calculated_default_leadership_leader.json b/tests/results/test_namespace_read_write/44_9calculated_default_leadership_leader.json new file mode 100644 index 0000000..f53f0d9 --- /dev/null +++ b/tests/results/test_namespace_read_write/44_9calculated_default_leadership_leader.json @@ -0,0 +1,56 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "a" + }, + { + "leader": "b", + "follower": "b" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "a" + }, + { + "leader": "b", + "follower": "b" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic.json b/tests/results/test_namespace_read_write/60_0family_dynamic.json new file mode 100644 index 0000000..5385af4 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": null + }, + "dynval2": { + "var": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": null + }, + "dynval2": { + "var": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_1_0.json b/tests/results/test_namespace_read_write/60_0family_dynamic_1_0.json new file mode 100644 index 0000000..43062c7 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_1_0.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": null + }, + "dynval2": { + "vardyn": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": null + }, + "dynval2": { + "vardyn": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_1_0_empty.json b/tests/results/test_namespace_read_write/60_0family_dynamic_1_0_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_1_0_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_1_0_type.json b/tests/results/test_namespace_read_write/60_0family_dynamic_1_0_type.json new file mode 100644 index 0000000..43062c7 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_1_0_type.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": null + }, + "dynval2": { + "vardyn": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": null + }, + "dynval2": { + "vardyn": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_1_0_type_empty.json b/tests/results/test_namespace_read_write/60_0family_dynamic_1_0_type_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_1_0_type_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_1_1.json b/tests/results/test_namespace_read_write/60_0family_dynamic_1_1.json new file mode 100644 index 0000000..43062c7 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_1_1.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": null + }, + "dynval2": { + "vardyn": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": null + }, + "dynval2": { + "vardyn": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_1_1_empty.json b/tests/results/test_namespace_read_write/60_0family_dynamic_1_1_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_1_1_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_empty.json b/tests/results/test_namespace_read_write/60_0family_dynamic_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_jinja_number.json b/tests/results/test_namespace_read_write/60_0family_dynamic_jinja_number.json new file mode 100644 index 0000000..7d5df50 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_jinja_number.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "val" + }, + "dyn2": { + "var": "val" + }, + "var2": "val" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "val" + }, + "dyn2": { + "var": "val" + }, + "var2": "val" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_jinja_number_empty.json b/tests/results/test_namespace_read_write/60_0family_dynamic_jinja_number_empty.json new file mode 100644 index 0000000..59476ad --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_jinja_number_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [], + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [], + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_no_description.json b/tests/results/test_namespace_read_write/60_0family_dynamic_no_description.json new file mode 100644 index 0000000..5385af4 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_no_description.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": null + }, + "dynval2": { + "var": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": null + }, + "dynval2": { + "var": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_no_description_empty.json b/tests/results/test_namespace_read_write/60_0family_dynamic_no_description_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_no_description_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_static.json b/tests/results/test_namespace_read_write/60_0family_dynamic_static.json new file mode 100644 index 0000000..e367ee4 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_static.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "dynval1": { + "var": null + }, + "dynval2": { + "var": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "dynval1": { + "var": null + }, + "dynval2": { + "var": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_test.json b/tests/results/test_namespace_read_write/60_0family_dynamic_test.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_test.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_variable_empty.json b/tests/results/test_namespace_read_write/60_0family_dynamic_variable_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_variable_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_variable_suffix.json b/tests/results/test_namespace_read_write/60_0family_dynamic_variable_suffix.json new file mode 100644 index 0000000..0a71e74 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_variable_suffix.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "a value" + }, + "dynval2": { + "var": "a value" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "a value" + }, + "dynval2": { + "var": "a value" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_variable_suffix_empty.json b/tests/results/test_namespace_read_write/60_0family_dynamic_variable_suffix_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_variable_suffix_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_empty.json b/tests/results/test_namespace_read_write/60_0family_empty.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_empty.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_hidden.json b/tests/results/test_namespace_read_write/60_0family_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_0family_mode.json b/tests/results/test_namespace_read_write/60_0family_mode.json new file mode 100644 index 0000000..e552de7 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_mode.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var": "non" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var": "non" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_1family_dynamic_jinja.json b/tests/results/test_namespace_read_write/60_1family_dynamic_jinja.json new file mode 100644 index 0000000..d279201 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_1family_dynamic_jinja.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn1": { + "var": "val" + }, + "dyn2": { + "var": "val" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn1": { + "var": "val" + }, + "dyn2": { + "var": "val" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group.json b/tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group.json new file mode 100644 index 0000000..af39f80 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": null + } + }, + "dynval2": { + "family": { + "var": null + } + }, + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": null + } + }, + "dynval2": { + "family": { + "var": null + } + }, + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group_2.json b/tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group_2.json new file mode 100644 index 0000000..08a59e4 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group_2.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "val1" + } + }, + "dynval2": { + "family": { + "var": "val2" + } + }, + "var2": "val1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "val1" + } + }, + "dynval2": { + "family": { + "var": "val2" + } + }, + "var2": "val1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group_2_empty.json b/tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group_2_empty.json new file mode 100644 index 0000000..59476ad --- /dev/null +++ b/tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group_2_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [], + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [], + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group_empty.json b/tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group_empty.json new file mode 100644 index 0000000..97c07b9 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_2family_dynamic_jinja_fill_sub_group_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [], + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [], + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_2family_dynamic_outside_calc.json b/tests/results/test_namespace_read_write/60_2family_dynamic_outside_calc.json new file mode 100644 index 0000000..8fc28c6 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_2family_dynamic_outside_calc.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "val" + }, + "dynval2": { + "var": "val" + }, + "newvar": "val" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "val" + }, + "dynval2": { + "var": "val" + }, + "newvar": "val" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_2family_dynamic_outside_calc_empty.json b/tests/results/test_namespace_read_write/60_2family_dynamic_outside_calc_empty.json new file mode 100644 index 0000000..8c6048b --- /dev/null +++ b/tests/results/test_namespace_read_write/60_2family_dynamic_outside_calc_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [], + "newvar": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [], + "newvar": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_calc2.json b/tests/results/test_namespace_read_write/60_5family_dynamic_calc2.json new file mode 100644 index 0000000..b16116b --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_calc2.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": null, + "dynval1": { + "vardyn": "val" + }, + "dynval2": { + "vardyn": "val" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": null, + "dynval1": { + "vardyn": "val" + }, + "dynval2": { + "vardyn": "val" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_calc2_empty.json b/tests/results/test_namespace_read_write/60_5family_dynamic_calc2_empty.json new file mode 100644 index 0000000..59476ad --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_calc2_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [], + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [], + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix.json b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix.json new file mode 100644 index 0000000..696cf29 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": null + }, + "dynval2": { + "var": null + }, + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": null + }, + "dynval2": { + "var": null + }, + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix2.json b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix2.json new file mode 100644 index 0000000..87b9c89 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix2.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "val1" + }, + "dynval2": { + "var": "val2" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "val1" + }, + "dynval2": { + "var": "val2" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix2_empty.json b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix2_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix2_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_disabled.json b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_disabled.json new file mode 100644 index 0000000..ee28a1d --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_disabled.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "dynval1": {}, + "dynval2": { + "var": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "dynval1": {}, + "dynval2": { + "var": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_empty.json b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_empty.json new file mode 100644 index 0000000..97c07b9 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [], + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [], + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_param.json b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_param.json new file mode 100644 index 0000000..87b9c89 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_param.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "val1" + }, + "dynval2": { + "var": "val2" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "val1" + }, + "dynval2": { + "var": "val2" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_param_empty.json b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_param_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_suffix_param_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_calc_variable.json b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_variable.json new file mode 100644 index 0000000..696cf29 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_variable.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": null + }, + "dynval2": { + "var": null + }, + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": null + }, + "dynval2": { + "var": null + }, + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_calc_variable_empty.json b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_variable_empty.json new file mode 100644 index 0000000..97c07b9 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_calc_variable_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [], + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [], + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_hidden_suffix.json b/tests/results/test_namespace_read_write/60_5family_dynamic_hidden_suffix.json new file mode 100644 index 0000000..b869861 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_hidden_suffix.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "dynval1": { + "var": null, + "family": { + "var": null + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "dynval1": { + "var": null, + "family": { + "var": null + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_unknown_suffix.json b/tests/results/test_namespace_read_write/60_5family_dynamic_unknown_suffix.json new file mode 100644 index 0000000..d29b3b0 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_unknown_suffix.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "val1", + "var2": "val1", + "var3": "val1" + }, + "val2_dyn": { + "var1": "val2", + "var2": "val2", + "var3": "val2" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "val1", + "var2": "val1", + "var3": "val1" + }, + "val2_dyn": { + "var1": "val2", + "var2": "val2", + "var3": "val2" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_unknown_suffix_empty.json b/tests/results/test_namespace_read_write/60_5family_dynamic_unknown_suffix_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_unknown_suffix_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside.json b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside.json new file mode 100644 index 0000000..c20edb2 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "val1" + }, + "my_dyn_family_val2": { + "var": "val2" + }, + "var2": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "val1" + }, + "my_dyn_family_val2": { + "var": "val2" + }, + "var2": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside2.json b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside2.json new file mode 100644 index 0000000..545b8b4 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside2.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var2": [ + "val1", + "val2" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "val1" + }, + "my_dyn_family_val2": { + "var": "val2" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var2": [ + "val1", + "val2" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "val1" + }, + "my_dyn_family_val2": { + "var": "val2" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside2_empty.json b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside2_empty.json new file mode 100644 index 0000000..8d8ddd5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside2_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var2": [], + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var2": [], + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_empty.json b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_empty.json new file mode 100644 index 0000000..e3431c5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [], + "var2": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [], + "var2": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_jinja.json b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_jinja.json new file mode 100644 index 0000000..c20edb2 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_jinja.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "val1" + }, + "my_dyn_family_val2": { + "var": "val2" + }, + "var2": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "val1" + }, + "my_dyn_family_val2": { + "var": "val2" + }, + "var2": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_jinja_empty.json b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_jinja_empty.json new file mode 100644 index 0000000..e3431c5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_jinja_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [], + "var2": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [], + "var2": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_sub_suffix.json b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_sub_suffix.json new file mode 100644 index 0000000..726cdce --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_sub_suffix.json @@ -0,0 +1,86 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "val1" + }, + "subdyn_val2": { + "var": "val2" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "val1" + }, + "subdyn_val2": { + "var": "val2" + } + }, + "var2": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "val1" + }, + "subdyn_val2": { + "var": "val2" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "val1" + }, + "subdyn_val2": { + "var": "val2" + } + }, + "var2": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_sub_suffix_empty.json b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_sub_suffix_empty.json new file mode 100644 index 0000000..e3431c5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_sub_suffix_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [], + "var2": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [], + "var2": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_suffix.json b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_suffix.json new file mode 100644 index 0000000..fe25434 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_suffix.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "val1" + }, + "dyn_val2": { + "var": "val2" + }, + "var2": "val1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "val1" + }, + "dyn_val2": { + "var": "val2" + }, + "var2": "val1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_suffix_empty.json b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_suffix_empty.json new file mode 100644 index 0000000..59476ad --- /dev/null +++ b/tests/results/test_namespace_read_write/60_5family_dynamic_variable_outside_suffix_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [], + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [], + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_6family_dynamic_inside.json b/tests/results/test_namespace_read_write/60_6family_dynamic_inside.json new file mode 100644 index 0000000..3020dbf --- /dev/null +++ b/tests/results/test_namespace_read_write/60_6family_dynamic_inside.json @@ -0,0 +1,70 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "val1", + "var2": "val1", + "var3": "val1", + "var4": "val1" + }, + "val2_dyn": { + "var1": "val2", + "var2": "val2", + "var3": "val2", + "var4": "val1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "val1", + "var2": "val1", + "var3": "val1", + "var4": "val1" + }, + "val2_dyn": { + "var1": "val2", + "var2": "val2", + "var3": "val2", + "var4": "val1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_6family_dynamic_inside_empty.json b/tests/results/test_namespace_read_write/60_6family_dynamic_inside_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_6family_dynamic_inside_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_6family_dynamic_leadership.json b/tests/results/test_namespace_read_write/60_6family_dynamic_leadership.json new file mode 100644 index 0000000..c303342 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_6family_dynamic_leadership.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [] + }, + "dynval2": { + "leadership": [] + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [] + }, + "dynval2": { + "leadership": [] + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_6family_dynamic_leadership_empty.json b/tests/results/test_namespace_read_write/60_6family_dynamic_leadership_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_6family_dynamic_leadership_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic.json b/tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic.json new file mode 100644 index 0000000..f77c6f0 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val1", + "var_identifiers": "val1-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val1", + "var_identifiers": "val1-tval2" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val2", + "var_identifiers": "val2-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val2", + "var_identifiers": "val2-tval2" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val1", + "var_identifiers": "val1-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val1", + "var_identifiers": "val1-tval2" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val2", + "var_identifiers": "val2-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val2", + "var_identifiers": "val2-tval2" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic_1_0.json b/tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic_1_0.json new file mode 100644 index 0000000..f77c6f0 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic_1_0.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val1", + "var_identifiers": "val1-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val1", + "var_identifiers": "val1-tval2" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val2", + "var_identifiers": "val2-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val2", + "var_identifiers": "val2-tval2" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val1", + "var_identifiers": "val1-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val1", + "var_identifiers": "val1-tval2" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val2", + "var_identifiers": "val2-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val2", + "var_identifiers": "val2-tval2" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic_empty.json b/tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_9extra_dynamic.json b/tests/results/test_namespace_read_write/60_9extra_dynamic.json new file mode 100644 index 0000000..b58c20e --- /dev/null +++ b/tests/results/test_namespace_read_write/60_9extra_dynamic.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "a" + ] + }, + "extra": { + "dyn_a": { + "var": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "a" + ] + }, + "extra": { + "dyn_a": { + "var": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_9extra_dynamic_extra.json b/tests/results/test_namespace_read_write/60_9extra_dynamic_extra.json new file mode 100644 index 0000000..ac7cceb --- /dev/null +++ b/tests/results/test_namespace_read_write/60_9extra_dynamic_extra.json @@ -0,0 +1,64 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "general": { + "varname": [ + "a" + ] + } + }, + "extra": { + "var": [ + "a" + ], + "dyn_a": { + "var": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "general": { + "varname": [ + "a" + ] + } + }, + "extra": { + "var": [ + "a" + ], + "dyn_a": { + "var": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/60_9family_dynamic_calc_both.json b/tests/results/test_namespace_read_write/60_9family_dynamic_calc_both.json new file mode 100644 index 0000000..88e5c14 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_9family_dynamic_calc_both.json @@ -0,0 +1,52 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "val2", + "dynval1": { + "vardyn": null + }, + "dynval2": { + "vardyn": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "val2", + "dynval1": { + "vardyn": null + }, + "dynval2": { + "vardyn": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write/68_0family_leadership_mode.json b/tests/results/test_namespace_read_write/68_0family_leadership_mode.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_read_write/68_0family_leadership_mode.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_0empty.json b/tests/results/test_namespace_read_write_mandatory/00_0empty.json new file mode 100644 index 0000000..b7155d1 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_0empty.json @@ -0,0 +1,34 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net" + }, + "GROUP2_01": { + "ansible_host": "group2.net" + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_0version_underscore.json b/tests/results/test_namespace_read_write_mandatory/00_0version_underscore.json new file mode 100644 index 0000000..bd80d72 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_0version_underscore.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "version": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "version": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_1empty_variable.json b/tests/results/test_namespace_read_write_mandatory/00_1empty_variable.json new file mode 100644 index 0000000..9cef03d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_1empty_variable.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "empty": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "empty": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_2default_calculated.json b/tests/results/test_namespace_read_write_mandatory/00_2default_calculated.json new file mode 100644 index 0000000..05ad432 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_2default_calculated.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_2default_calculated_multi.json b/tests/results/test_namespace_read_write_mandatory/00_2default_calculated_multi.json new file mode 100644 index 0000000..21ea2fd --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_2default_calculated_multi.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ], + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ], + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_2default_calculated_variable_transitive.json b/tests/results/test_namespace_read_write_mandatory/00_2default_calculated_variable_transitive.json new file mode 100644 index 0000000..007f98f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_2default_calculated_variable_transitive.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_4load_subfolder.json b/tests/results/test_namespace_read_write_mandatory/00_4load_subfolder.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_4load_subfolder.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_5load_notype.json b/tests/results/test_namespace_read_write_mandatory/00_5load_notype.json new file mode 100644 index 0000000..f19922d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_5load_notype.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "without_type": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "without_type": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_6boolean.json b/tests/results/test_namespace_read_write_mandatory/00_6boolean.json new file mode 100644 index 0000000..21844b6 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6boolean.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": true, + "var2": true, + "var3": true, + "var4": true, + "var5": true, + "var6": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": true, + "var2": true, + "var3": true, + "var4": true, + "var5": true, + "var6": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_6boolean_no_mandatory.json b/tests/results/test_namespace_read_write_mandatory/00_6boolean_no_mandatory.json new file mode 100644 index 0000000..ed87618 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6boolean_no_mandatory.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_6choice.json b/tests/results/test_namespace_read_write_mandatory/00_6choice.json new file mode 100644 index 0000000..c4ded58 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6choice.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "a", + "var2": "a", + "var3": "a", + "var4": null, + "var5": "a", + "var6": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "a", + "var2": "a", + "var3": "a", + "var4": null, + "var5": "a", + "var6": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_6choice_calculation.json b/tests/results/test_namespace_read_write_mandatory/00_6choice_calculation.json new file mode 100644 index 0000000..0141810 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6choice_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": 0 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": 0 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_6choice_variable.json b/tests/results/test_namespace_read_write_mandatory/00_6choice_variable.json new file mode 100644 index 0000000..ee70e8e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6choice_variable.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ], + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ], + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_6custom.json b/tests/results/test_namespace_read_write_mandatory/00_6custom.json new file mode 100644 index 0000000..a820538 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6custom.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "custom1": "string1", + "custom2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "custom1": "string1", + "custom2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_6domainname.json b/tests/results/test_namespace_read_write_mandatory/00_6domainname.json new file mode 100644 index 0000000..7e46a53 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6domainname.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "domain1.lan" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "domain1.lan" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_6domainname_params.json b/tests/results/test_namespace_read_write_mandatory/00_6domainname_params.json new file mode 100644 index 0000000..7e46a53 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6domainname_params.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "domain1.lan" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "domain1.lan" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_6float.json b/tests/results/test_namespace_read_write_mandatory/00_6float.json new file mode 100644 index 0000000..559aa73 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6float.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": 1.1, + "var2": 1.1, + "var3": 1.1, + "var4": 1.1, + "var5": 1.1, + "var6": 1.1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": 1.1, + "var2": 1.1, + "var3": 1.1, + "var4": 1.1, + "var5": 1.1, + "var6": 1.1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_6number.json b/tests/results/test_namespace_read_write_mandatory/00_6number.json new file mode 100644 index 0000000..231589d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6number.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": 1, + "var2": 1, + "var3": 1, + "var4": 1, + "var5": 1, + "var6": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": 1, + "var2": 1, + "var3": 1, + "var4": 1, + "var5": 1, + "var6": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_6port.json b/tests/results/test_namespace_read_write_mandatory/00_6port.json new file mode 100644 index 0000000..9c774ee --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6port.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable1": "80", + "variable2": "80", + "variable3": "80" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable1": "80", + "variable2": "80", + "variable3": "80" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_6regexp.json b/tests/results/test_namespace_read_write_mandatory/00_6regexp.json new file mode 100644 index 0000000..76a5579 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6regexp.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "#b1b1b1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "#b1b1b1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_6string.json b/tests/results/test_namespace_read_write_mandatory/00_6string.json new file mode 100644 index 0000000..19b7111 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6string.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1", + "var5": "string1", + "var6": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1", + "var5": "string1", + "var6": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_7choice_quote.json b/tests/results/test_namespace_read_write_mandatory/00_7choice_quote.json new file mode 100644 index 0000000..05d9eb3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_7choice_quote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "quote'" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "quote'" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_7help_quote.json b/tests/results/test_namespace_read_write_mandatory/00_7help_quote.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_7help_quote.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_7value_doublequote.json b/tests/results/test_namespace_read_write_mandatory/00_7value_doublequote.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_7value_doublequote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_7value_doublequote2.json b/tests/results/test_namespace_read_write_mandatory/00_7value_doublequote2.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_7value_doublequote2.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_7value_doublequote3.json b/tests/results/test_namespace_read_write_mandatory/00_7value_doublequote3.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_7value_doublequote3.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_7value_quote.json b/tests/results/test_namespace_read_write_mandatory/00_7value_quote.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_7value_quote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_8calculation_information.json b/tests/results/test_namespace_read_write_mandatory/00_8calculation_information.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_8calculation_information.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_8test.json b/tests/results/test_namespace_read_write_mandatory/00_8test.json new file mode 100644 index 0000000..6e415de --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_8test.json @@ -0,0 +1,56 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "test", + "var2": "test", + "var3": "test1", + "var4": null, + "var5": false, + "var6": [ + "test1", + "test2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "test", + "var2": "test", + "var3": "test1", + "var4": null, + "var5": false, + "var6": [ + "test1", + "test2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9choice_variable_multi.json b/tests/results/test_namespace_read_write_mandatory/00_9choice_variable_multi.json new file mode 100644 index 0000000..bda86f3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9choice_variable_multi.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable1": [ + "val1", + "val2" + ], + "variable2": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable1": [ + "val1", + "val2" + ], + "variable2": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9choice_variables.json b/tests/results/test_namespace_read_write_mandatory/00_9choice_variables.json new file mode 100644 index 0000000..bf89a3e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9choice_variables.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "source_variable_1": "string1", + "source_variable_2": "string1", + "my_variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "source_variable_1": "string1", + "source_variable_2": "string1", + "my_variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9default_calculation.json b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_information.json b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_information.json new file mode 100644 index 0000000..d92dffa --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_information.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_information_other_variable.json b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_information_other_variable.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_information_other_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_multi_optional.json b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_multi_optional.json new file mode 100644 index 0000000..727da65 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_multi_optional.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_multi_optional2.json b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_multi_optional2.json new file mode 100644 index 0000000..727da65 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_multi_optional2.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_optional.json b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_optional.json new file mode 100644 index 0000000..c5fcd48 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_optional.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_optional_exists.json b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_optional_exists.json new file mode 100644 index 0000000..78f1cd8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_optional_exists.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": [ + "string1", + "string2", + "string3" + ], + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": [ + "string1", + "string2", + "string3" + ], + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_param_optional.json b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_param_optional.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_param_optional.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9default_information_other_variable.json b/tests/results/test_namespace_read_write_mandatory/00_9default_information_other_variable.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9default_information_other_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9default_integer.json b/tests/results/test_namespace_read_write_mandatory/00_9default_integer.json new file mode 100644 index 0000000..0141810 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9default_integer.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": 0 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": 0 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9extra.json b/tests/results/test_namespace_read_write_mandatory/00_9extra.json new file mode 100644 index 0000000..a9492d3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9extra.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + }, + "extra": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + }, + "extra": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/00_9extra_calculation.json b/tests/results/test_namespace_read_write_mandatory/00_9extra_calculation.json new file mode 100644 index 0000000..8445e79 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9extra_calculation.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + }, + "extra": { + "variable1": "string1", + "variable2": "string1", + "variable3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + }, + "extra": { + "variable1": "string1", + "variable2": "string1", + "variable3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/01_6boolean_multi.json b/tests/results/test_namespace_read_write_mandatory/01_6boolean_multi.json new file mode 100644 index 0000000..694ceab --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/01_6boolean_multi.json @@ -0,0 +1,86 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + true + ], + "var2": [ + true + ], + "var3": [ + true + ], + "var4": [ + true + ], + "var5": [ + true + ], + "var6": [ + true + ], + "var7": [ + true + ], + "var8": [ + true + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + true + ], + "var2": [ + true + ], + "var3": [ + true + ], + "var4": [ + true + ], + "var5": [ + true + ], + "var6": [ + true + ], + "var7": [ + true + ], + "var8": [ + true + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/01_6custom_multi.json b/tests/results/test_namespace_read_write_mandatory/01_6custom_multi.json new file mode 100644 index 0000000..6b27a50 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/01_6custom_multi.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "custom1": [ + "string1", + "string2", + "string3" + ], + "custom2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "custom1": [ + "string1", + "string2", + "string3" + ], + "custom2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/01_6float_multi.json b/tests/results/test_namespace_read_write_mandatory/01_6float_multi.json new file mode 100644 index 0000000..6897264 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/01_6float_multi.json @@ -0,0 +1,118 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "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 + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "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 + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/01_6number_multi.json b/tests/results/test_namespace_read_write_mandatory/01_6number_multi.json new file mode 100644 index 0000000..5c58eb9 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/01_6number_multi.json @@ -0,0 +1,118 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "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 + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "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 + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/01_6string_empty.json b/tests/results/test_namespace_read_write_mandatory/01_6string_empty.json new file mode 100644 index 0000000..dc93c21 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/01_6string_empty.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/01_6string_multi.json b/tests/results/test_namespace_read_write_mandatory/01_6string_multi.json new file mode 100644 index 0000000..9a35202 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/01_6string_multi.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "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" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "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" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/01_7value_multi_doublequote.json b/tests/results/test_namespace_read_write_mandatory/01_7value_multi_doublequote.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/01_7value_multi_doublequote.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/01_7value_multi_doublequote2.json b/tests/results/test_namespace_read_write_mandatory/01_7value_multi_doublequote2.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/01_7value_multi_doublequote2.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/01_7value_multi_quote.json b/tests/results/test_namespace_read_write_mandatory/01_7value_multi_quote.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/01_7value_multi_quote.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/01_8calculation_information_multi.json b/tests/results/test_namespace_read_write_mandatory/01_8calculation_information_multi.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/01_8calculation_information_multi.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/01_9choice_variable_multi.json b/tests/results/test_namespace_read_write_mandatory/01_9choice_variable_multi.json new file mode 100644 index 0000000..d38bdf2 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/01_9choice_variable_multi.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable1": [ + "string1", + "string2", + "string3" + ], + "variable2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable1": [ + "string1", + "string2", + "string3" + ], + "variable2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_0type_param.json b/tests/results/test_namespace_read_write_mandatory/04_0type_param.json new file mode 100644 index 0000000..602d586 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_0type_param.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "int": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "int": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_1auto_save.json b/tests/results/test_namespace_read_write_mandatory/04_1auto_save.json new file mode 100644 index 0000000..7b77c76 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_1auto_save.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_1auto_save_and_calculated.json b/tests/results/test_namespace_read_write_mandatory/04_1auto_save_and_calculated.json new file mode 100644 index 0000000..ecf0b6c --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_1auto_save_and_calculated.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_1auto_save_and_calculated_hidden.json b/tests/results/test_namespace_read_write_mandatory/04_1auto_save_and_calculated_hidden.json new file mode 100644 index 0000000..84dc858 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_1auto_save_and_calculated_hidden.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_1auto_save_and_hidden.json b/tests/results/test_namespace_read_write_mandatory/04_1auto_save_and_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_1auto_save_and_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_1default_calculation_hidden.json b/tests/results/test_namespace_read_write_mandatory/04_1default_calculation_hidden.json new file mode 100644 index 0000000..856d334 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_1default_calculation_hidden.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_1default_calculation_hidden_2.json b/tests/results/test_namespace_read_write_mandatory/04_1default_calculation_hidden_2.json new file mode 100644 index 0000000..856d334 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_1default_calculation_hidden_2.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation.json b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation.json new file mode 100644 index 0000000..829a57b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "variable1": "string1", + "variable2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "variable1": "string1", + "variable2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_default.json b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_default.json new file mode 100644 index 0000000..464e314 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_default.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_optional.json b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_optional.json new file mode 100644 index 0000000..6c979f6 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_optional.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable.json b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable.json new file mode 100644 index 0000000..7f98eb8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable2.json b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable2.json new file mode 100644 index 0000000..7f98eb8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable2.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable3.json b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable3.json new file mode 100644 index 0000000..ec044a9 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable3.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable4.json b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable4.json new file mode 100644 index 0000000..6ee0182 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable4.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5hidden_calculation.json b/tests/results/test_namespace_read_write_mandatory/04_5hidden_calculation.json new file mode 100644 index 0000000..464e314 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5hidden_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5hidden_calculation2.json b/tests/results/test_namespace_read_write_mandatory/04_5hidden_calculation2.json new file mode 100644 index 0000000..6ee0182 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5hidden_calculation2.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5hidden_calculation_default_calculation.json b/tests/results/test_namespace_read_write_mandatory/04_5hidden_calculation_default_calculation.json new file mode 100644 index 0000000..464e314 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5hidden_calculation_default_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5validators.json b/tests/results/test_namespace_read_write_mandatory/04_5validators.json new file mode 100644 index 0000000..602d586 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5validators.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "int": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "int": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5validators_differ.json b/tests/results/test_namespace_read_write_mandatory/04_5validators_differ.json new file mode 100644 index 0000000..e977a01 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5validators_differ.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "another_value", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "another_value", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5validators_multi.json b/tests/results/test_namespace_read_write_mandatory/04_5validators_multi.json new file mode 100644 index 0000000..dc93c21 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5validators_multi.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/04_5validators_multi2.json b/tests/results/test_namespace_read_write_mandatory/04_5validators_multi2.json new file mode 100644 index 0000000..c888eb5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5validators_multi2.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/05_0multi_not_uniq.json b/tests/results/test_namespace_read_write_mandatory/05_0multi_not_uniq.json new file mode 100644 index 0000000..dc93c21 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/05_0multi_not_uniq.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/05_0multi_uniq.json b/tests/results/test_namespace_read_write_mandatory/05_0multi_uniq.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/05_0multi_uniq.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/12_1auto_save_expert.json b/tests/results/test_namespace_read_write_mandatory/12_1auto_save_expert.json new file mode 100644 index 0000000..ac68847 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/12_1auto_save_expert.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_0redefine_description.json b/tests/results/test_namespace_read_write_mandatory/16_0redefine_description.json new file mode 100644 index 0000000..d92dffa --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_0redefine_description.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_2family_redefine_calculation.json b/tests/results/test_namespace_read_write_mandatory/16_2family_redefine_calculation.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_2family_redefine_calculation.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_2family_redefine_disabled.json b/tests/results/test_namespace_read_write_mandatory/16_2family_redefine_disabled.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_2family_redefine_disabled.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_5exists_nonexists.json b/tests/results/test_namespace_read_write_mandatory/16_5exists_nonexists.json new file mode 100644 index 0000000..26a7682 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_5exists_nonexists.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_5exists_redefine.json b/tests/results/test_namespace_read_write_mandatory/16_5exists_redefine.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_5exists_redefine.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_5redefine_calculation.json b/tests/results/test_namespace_read_write_mandatory/16_5redefine_calculation.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_5redefine_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_5redefine_choice.json b/tests/results/test_namespace_read_write_mandatory/16_5redefine_choice.json new file mode 100644 index 0000000..fd55b95 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_5redefine_choice.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "a" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "a" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_5redefine_default.json b/tests/results/test_namespace_read_write_mandatory/16_5redefine_default.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_5redefine_default.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_5redefine_default_calculation.json b/tests/results/test_namespace_read_write_mandatory/16_5redefine_default_calculation.json new file mode 100644 index 0000000..f642ac8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_5redefine_default_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_5redefine_family.json b/tests/results/test_namespace_read_write_mandatory/16_5redefine_family.json new file mode 100644 index 0000000..c1b34dc --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_5redefine_family.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "variable": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "variable": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_5redefine_help.json b/tests/results/test_namespace_read_write_mandatory/16_5redefine_help.json new file mode 100644 index 0000000..c1b34dc --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_5redefine_help.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "variable": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "variable": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_5redefine_hidden.json b/tests/results/test_namespace_read_write_mandatory/16_5redefine_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_5redefine_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_5redefine_multi.json b/tests/results/test_namespace_read_write_mandatory/16_5redefine_multi.json new file mode 100644 index 0000000..434b9f4 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_5redefine_multi.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_5redefine_remove_disable_calculation.json b/tests/results/test_namespace_read_write_mandatory/16_5redefine_remove_disable_calculation.json new file mode 100644 index 0000000..ec044a9 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_5redefine_remove_disable_calculation.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "variable": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "variable": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_5test_redefine.json b/tests/results/test_namespace_read_write_mandatory/16_5test_redefine.json new file mode 100644 index 0000000..e53d158 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_5test_redefine.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "test1", + "var2": "test1", + "var3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "test1", + "var2": "test1", + "var3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_6choice_redefine.json b/tests/results/test_namespace_read_write_mandatory/16_6choice_redefine.json new file mode 100644 index 0000000..945e912 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_6choice_redefine.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "a" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "a" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16_6exists_redefine_family.json b/tests/results/test_namespace_read_write_mandatory/16_6exists_redefine_family.json new file mode 100644 index 0000000..fe5d1df --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16_6exists_redefine_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family1": { + "variable1": "string1" + }, + "family2": { + "variable2": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family1": { + "variable1": "string1" + }, + "family2": { + "variable2": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/16exists_exists.json b/tests/results/test_namespace_read_write_mandatory/16exists_exists.json new file mode 100644 index 0000000..d92dffa --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/16exists_exists.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/17_5redefine_leadership.json b/tests/results/test_namespace_read_write_mandatory/17_5redefine_leadership.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/17_5redefine_leadership.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/20_0empty_family.json b/tests/results/test_namespace_read_write_mandatory/20_0empty_family.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/20_0empty_family.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/20_0family_append.json b/tests/results/test_namespace_read_write_mandatory/20_0family_append.json new file mode 100644 index 0000000..c019d66 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/20_0family_append.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var1": "string1", + "var2": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var1": "string1", + "var2": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/20_0family_underscore.json b/tests/results/test_namespace_read_write_mandatory/20_0family_underscore.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/20_0family_underscore.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/20_0multi_family.json b/tests/results/test_namespace_read_write_mandatory/20_0multi_family.json new file mode 100644 index 0000000..89435ce --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/20_0multi_family.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/20_0multi_family_basic.json b/tests/results/test_namespace_read_write_mandatory/20_0multi_family_basic.json new file mode 100644 index 0000000..89435ce --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/20_0multi_family_basic.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/20_0multi_family_expert.json b/tests/results/test_namespace_read_write_mandatory/20_0multi_family_expert.json new file mode 100644 index 0000000..89435ce --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/20_0multi_family_expert.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/20_0multi_family_order.json b/tests/results/test_namespace_read_write_mandatory/20_0multi_family_order.json new file mode 100644 index 0000000..acda464 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/20_0multi_family_order.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string1", + "family": { + "variable1": "string1", + "subfamily": { + "variable": "string1" + }, + "variable2": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string1", + "family": { + "variable1": "string1", + "subfamily": { + "variable": "string1" + }, + "variable2": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/20_0validators_differ_redefine.json b/tests/results/test_namespace_read_write_mandatory/20_0validators_differ_redefine.json new file mode 100644 index 0000000..f5ae3a5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/20_0validators_differ_redefine.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": "string1", + "var3": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/20_1empty_subfamily.json b/tests/results/test_namespace_read_write_mandatory/20_1empty_subfamily.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/20_1empty_subfamily.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/20_9default_information_parent.json b/tests/results/test_namespace_read_write_mandatory/20_9default_information_parent.json new file mode 100644 index 0000000..c019d66 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/20_9default_information_parent.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var1": "string1", + "var2": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var1": "string1", + "var2": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition.json b/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition.json new file mode 100644 index 0000000..7e8be11 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "family": { + "var1": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "family": { + "var1": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_boolean.json b/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_boolean.json new file mode 100644 index 0000000..b16784a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_boolean.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true, + "family": { + "variable": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true, + "family": { + "variable": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_sub_family.json b/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_sub_family.json new file mode 100644 index 0000000..851a2c9 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_sub_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "family": { + "subfamily": { + "var1": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "family": { + "subfamily": { + "var1": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_variable_sub_family.json b/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_variable_sub_family.json new file mode 100644 index 0000000..7f98eb8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_variable_sub_family.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_with_variable.json b/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_with_variable.json new file mode 100644 index 0000000..42ca604 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_condition_with_variable.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition1": true, + "condition2": true, + "family": {} + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition1": true, + "condition2": true, + "family": {} + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_param_condition_sub_family.json b/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_param_condition_sub_family.json new file mode 100644 index 0000000..250b4c0 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/24_0family_hidden_param_condition_sub_family.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "family": { + "sub_family": { + "var1": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "family": { + "sub_family": { + "var1": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/24_0family_mandatory_condition.json b/tests/results/test_namespace_read_write_mandatory/24_0family_mandatory_condition.json new file mode 100644 index 0000000..55fadb3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/24_0family_mandatory_condition.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/24_0family_mandatory_condition_variable.json b/tests/results/test_namespace_read_write_mandatory/24_0family_mandatory_condition_variable.json new file mode 100644 index 0000000..a1e1db3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/24_0family_mandatory_condition_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true, + "var": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true, + "var": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/24_7validators_variable_optional.json b/tests/results/test_namespace_read_write_mandatory/24_7validators_variable_optional.json new file mode 100644 index 0000000..984f918 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/24_7validators_variable_optional.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "general": { + "int": 5, + "int2": 1 + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "general": { + "int": 5, + "int2": 1 + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/24_family_disabled_var_hidden.json b/tests/results/test_namespace_read_write_mandatory/24_family_disabled_var_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/24_family_disabled_var_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_0leadership.json b/tests/results/test_namespace_read_write_mandatory/40_0leadership.json new file mode 100644 index 0000000..6939274 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_0leadership.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_0leadership_diff_name.json b/tests/results/test_namespace_read_write_mandatory/40_0leadership_diff_name.json new file mode 100644 index 0000000..33547e8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_0leadership_diff_name.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_0leadership_empty.json b/tests/results/test_namespace_read_write_mandatory/40_0leadership_empty.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_0leadership_empty.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_calculation.json b/tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_calculation.json new file mode 100644 index 0000000..6939274 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_calculation.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_submulti.json b/tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_submulti.json new file mode 100644 index 0000000..cb932ee --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_submulti.json @@ -0,0 +1,120 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_submulti_calculation.json b/tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_submulti_calculation.json new file mode 100644 index 0000000..cb932ee --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_submulti_calculation.json @@ -0,0 +1,120 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_value.json b/tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_value.json new file mode 100644 index 0000000..23b8c7e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_0leadership_follower_default_value.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1" + }, + { + "leader": "string2", + "follower1": "string2" + }, + { + "leader": "string3", + "follower1": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1" + }, + { + "leader": "string2", + "follower1": "string2" + }, + { + "leader": "string3", + "follower1": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_0leadership_leader_not_multi.json b/tests/results/test_namespace_read_write_mandatory/40_0leadership_leader_not_multi.json new file mode 100644 index 0000000..6b2b15a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_0leadership_leader_not_multi.json @@ -0,0 +1,82 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "general": { + "mode_conteneur_actif": "string1" + }, + "general1": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "general": { + "mode_conteneur_actif": "string1" + }, + "general1": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_1leadership_append_follower.json b/tests/results/test_namespace_read_write_mandatory/40_1leadership_append_follower.json new file mode 100644 index 0000000..4e106d2 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_1leadership_append_follower.json @@ -0,0 +1,78 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1", + "follower3": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2", + "follower3": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3", + "follower3": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1", + "follower3": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2", + "follower3": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3", + "follower3": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_2leadership_calculation_index.json b/tests/results/test_namespace_read_write_mandatory/40_2leadership_calculation_index.json new file mode 100644 index 0000000..f27a73a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_2leadership_calculation_index.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_2leadership_calculation_param_index.json b/tests/results/test_namespace_read_write_mandatory/40_2leadership_calculation_param_index.json new file mode 100644 index 0000000..f27a73a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_2leadership_calculation_param_index.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_2leadership_leader_calculation.json b/tests/results/test_namespace_read_write_mandatory/40_2leadership_leader_calculation.json new file mode 100644 index 0000000..6939274 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_2leadership_leader_calculation.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_6leadership_follower_multi.json b/tests/results/test_namespace_read_write_mandatory/40_6leadership_follower_multi.json new file mode 100644 index 0000000..53076f3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_6leadership_follower_multi.json @@ -0,0 +1,120 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leadership": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leadership": [ + { + "leader": "string1", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string2", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + }, + { + "leader": "string3", + "follower1": [ + "string1", + "string2", + "string3" + ], + "follower2": [ + "string1", + "string2", + "string3" + ] + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_8calculation_boolean.json b/tests/results/test_namespace_read_write_mandatory/40_8calculation_boolean.json new file mode 100644 index 0000000..0a9dbee --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_8calculation_boolean.json @@ -0,0 +1,52 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "bool": true, + "multi1": [ + true + ], + "multi2": [ + true + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "bool": true, + "multi1": [ + true + ], + "multi2": [ + true + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_8calculation_boolean_return_none.json b/tests/results/test_namespace_read_write_mandatory/40_8calculation_boolean_return_none.json new file mode 100644 index 0000000..979dc16 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_8calculation_boolean_return_none.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "string1", + "var2": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "string1", + "var2": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_8calculation_integer.json b/tests/results/test_namespace_read_write_mandatory/40_8calculation_integer.json new file mode 100644 index 0000000..8e9de8d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_8calculation_integer.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "bool": true, + "int1": 1, + "int2": 1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "bool": true, + "int1": 1, + "int2": 1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_8calculation_multi_variable.json b/tests/results/test_namespace_read_write_mandatory/40_8calculation_multi_variable.json new file mode 100644 index 0000000..21c4547 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_8calculation_multi_variable.json @@ -0,0 +1,52 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "var2": "string1", + "var3": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "var2": "string1", + "var3": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_8calculation_multi_variable_parent.json b/tests/results/test_namespace_read_write_mandatory/40_8calculation_multi_variable_parent.json new file mode 100644 index 0000000..92e9b9f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_8calculation_multi_variable_parent.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1", + "fam1": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1", + "fam1": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/40_8calculation_multi_variable_parent2.json b/tests/results/test_namespace_read_write_mandatory/40_8calculation_multi_variable_parent2.json new file mode 100644 index 0000000..3a57b0f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_8calculation_multi_variable_parent2.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "fam1": { + "var": "string1" + }, + "fam2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "fam1": { + "var": "string1" + }, + "fam2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/41_0choice_leader.json b/tests/results/test_namespace_read_write_mandatory/41_0choice_leader.json new file mode 100644 index 0000000..9fe0731 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/41_0choice_leader.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "a" + }, + { + "leader": "string2", + "follower1": "b" + }, + { + "leader": "string3", + "follower1": "c" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "a" + }, + { + "leader": "string2", + "follower1": "b" + }, + { + "leader": "string3", + "follower1": "c" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/44_0leadership_hidden.json b/tests/results/test_namespace_read_write_mandatory/44_0leadership_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/44_0leadership_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/44_0leadership_leader_hidden.json b/tests/results/test_namespace_read_write_mandatory/44_0leadership_leader_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/44_0leadership_leader_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/44_1leadership_append_hidden_follower.json b/tests/results/test_namespace_read_write_mandatory/44_1leadership_append_hidden_follower.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/44_1leadership_append_hidden_follower.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/44_4disabled_calcultion_follower.json b/tests/results/test_namespace_read_write_mandatory/44_4disabled_calcultion_follower.json new file mode 100644 index 0000000..96823e0 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/44_4disabled_calcultion_follower.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true, + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true, + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/44_4leadership_mandatory.json b/tests/results/test_namespace_read_write_mandatory/44_4leadership_mandatory.json new file mode 100644 index 0000000..23b8c7e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/44_4leadership_mandatory.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1" + }, + { + "leader": "string2", + "follower1": "string2" + }, + { + "leader": "string3", + "follower1": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1" + }, + { + "leader": "string2", + "follower1": "string2" + }, + { + "leader": "string3", + "follower1": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/44_4leadership_mandatory_follower.json b/tests/results/test_namespace_read_write_mandatory/44_4leadership_mandatory_follower.json new file mode 100644 index 0000000..9e2e38b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/44_4leadership_mandatory_follower.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/44_5leadership_leader_hidden_calculation.json b/tests/results/test_namespace_read_write_mandatory/44_5leadership_leader_hidden_calculation.json new file mode 100644 index 0000000..b686f83 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/44_5leadership_leader_hidden_calculation.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/44_6leadership_follower_disabled_calculation.json b/tests/results/test_namespace_read_write_mandatory/44_6leadership_follower_disabled_calculation.json new file mode 100644 index 0000000..b686f83 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/44_6leadership_follower_disabled_calculation.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/44_9calculated_default_leadership_leader.json b/tests/results/test_namespace_read_write_mandatory/44_9calculated_default_leadership_leader.json new file mode 100644 index 0000000..9e2e38b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/44_9calculated_default_leadership_leader.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower": "string1" + }, + { + "leader": "string2", + "follower": "string2" + }, + { + "leader": "string3", + "follower": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0_empty.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0_empty.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0_type.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0_type.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0_type.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0_type_empty.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0_type_empty.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_0_type_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_1.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_1.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_1.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_1_empty.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_1_empty.json new file mode 100644 index 0000000..a17efac --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_1_1_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_empty.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_empty.json new file mode 100644 index 0000000..390c5da --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_empty.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dynstring1": { + "var": "string1" + }, + "dynstring2": { + "var": "string1" + }, + "dynstring3": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dynstring1": { + "var": "string1" + }, + "dynstring2": { + "var": "string1" + }, + "dynstring3": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_jinja_number.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_jinja_number.json new file mode 100644 index 0000000..b8b3df0 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_jinja_number.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_jinja_number_empty.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_jinja_number_empty.json new file mode 100644 index 0000000..b8b3df0 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_jinja_number_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_no_description.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_no_description.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_no_description.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_no_description_empty.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_no_description_empty.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_no_description_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_static.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_static.json new file mode 100644 index 0000000..e7424e3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_static.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_test.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_test.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_test.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_empty.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_empty.json new file mode 100644 index 0000000..390c5da --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_empty.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dynstring1": { + "var": "string1" + }, + "dynstring2": { + "var": "string1" + }, + "dynstring3": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dynstring1": { + "var": "string1" + }, + "dynstring2": { + "var": "string1" + }, + "dynstring3": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_suffix.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_suffix.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_suffix.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_suffix_empty.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_suffix_empty.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_suffix_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_empty.json b/tests/results/test_namespace_read_write_mandatory/60_0family_empty.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_empty.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_hidden.json b/tests/results/test_namespace_read_write_mandatory/60_0family_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_mode.json b/tests/results/test_namespace_read_write_mandatory/60_0family_mode.json new file mode 100644 index 0000000..455a057 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_mode.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_1family_dynamic_jinja.json b/tests/results/test_namespace_read_write_mandatory/60_1family_dynamic_jinja.json new file mode 100644 index 0000000..3a5e7bc --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_1family_dynamic_jinja.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "dyn3": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "string1", + "string2", + "string3" + ], + "dyn1": { + "var": "string1" + }, + "dyn2": { + "var": "string1" + }, + "dyn3": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group.json b/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group.json new file mode 100644 index 0000000..3d10601 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group_2.json b/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group_2.json new file mode 100644 index 0000000..5b97c2c --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group_2.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group_2_empty.json b/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group_2_empty.json new file mode 100644 index 0000000..5b97c2c --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group_2_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group_empty.json b/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group_empty.json new file mode 100644 index 0000000..3d10601 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_jinja_fill_sub_group_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "string1" + } + }, + "dynval2": { + "family": { + "var": "string1" + } + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_outside_calc.json b/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_outside_calc.json new file mode 100644 index 0000000..438fbd5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_outside_calc.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "newvar": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "newvar": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_outside_calc_empty.json b/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_outside_calc_empty.json new file mode 100644 index 0000000..438fbd5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_2family_dynamic_outside_calc_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "newvar": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "newvar": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc2.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc2.json new file mode 100644 index 0000000..31e2471 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc2.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc2_empty.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc2_empty.json new file mode 100644 index 0000000..31e2471 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc2_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "var2": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynval2": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix.json new file mode 100644 index 0000000..c1df137 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix2.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix2.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix2.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix2_empty.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix2_empty.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix2_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_disabled.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_disabled.json new file mode 100644 index 0000000..76fece5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_disabled.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "dynval1": {}, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "dynval1": {}, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_empty.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_empty.json new file mode 100644 index 0000000..c1df137 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_param.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_param.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_param.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_param_empty.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_param_empty.json new file mode 100644 index 0000000..0082b0a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_suffix_param_empty.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_variable.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_variable.json new file mode 100644 index 0000000..c1df137 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_variable.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_variable_empty.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_variable_empty.json new file mode 100644 index 0000000..c1df137 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_calc_variable_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "string1" + }, + "dynval2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_hidden_suffix.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_hidden_suffix.json new file mode 100644 index 0000000..4545138 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_hidden_suffix.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "dynval1": { + "var": "string1", + "family": { + "var": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "dynval1": { + "var": "string1", + "family": { + "var": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_unknown_suffix.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_unknown_suffix.json new file mode 100644 index 0000000..8626c9b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_unknown_suffix.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_unknown_suffix_empty.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_unknown_suffix_empty.json new file mode 100644 index 0000000..196faf5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_unknown_suffix_empty.json @@ -0,0 +1,98 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2", + "val3", + "val4" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val3_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val4_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2", + "val3", + "val4" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val3_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val4_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside.json new file mode 100644 index 0000000..8d4e07f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside2.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside2.json new file mode 100644 index 0000000..38d317c --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside2.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var2": [ + "string1", + "string2", + "string3" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var2": [ + "string1", + "string2", + "string3" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside2_empty.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside2_empty.json new file mode 100644 index 0000000..38d317c --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside2_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var2": [ + "string1", + "string2", + "string3" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var2": [ + "string1", + "string2", + "string3" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_empty.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_empty.json new file mode 100644 index 0000000..8d4e07f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_jinja.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_jinja.json new file mode 100644 index 0000000..8d4e07f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_jinja.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_jinja_empty.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_jinja_empty.json new file mode 100644 index 0000000..8d4e07f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_jinja_empty.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "string1" + }, + "my_dyn_family_val2": { + "var": "string1" + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_sub_suffix.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_sub_suffix.json new file mode 100644 index 0000000..b5c6827 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_sub_suffix.json @@ -0,0 +1,88 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_sub_suffix_empty.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_sub_suffix_empty.json new file mode 100644 index 0000000..b5c6827 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_sub_suffix_empty.json @@ -0,0 +1,88 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "string1" + }, + "subdyn_val2": { + "var": "string1" + } + }, + "var2": [ + "string1", + "string2", + "string3" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_suffix.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_suffix.json new file mode 100644 index 0000000..a5c7559 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_suffix.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "string1" + }, + "dyn_val2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "string1" + }, + "dyn_val2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_suffix_empty.json b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_suffix_empty.json new file mode 100644 index 0000000..a5c7559 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_5family_dynamic_variable_outside_suffix_empty.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "string1" + }, + "dyn_val2": { + "var": "string1" + }, + "var2": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "string1" + }, + "dyn_val2": { + "var": "string1" + }, + "var2": "string1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_inside.json b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_inside.json new file mode 100644 index 0000000..c8f4206 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_inside.json @@ -0,0 +1,70 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_inside_empty.json b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_inside_empty.json new file mode 100644 index 0000000..c8f4206 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_inside_empty.json @@ -0,0 +1,70 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + }, + "val2_dyn": { + "var1": "string1", + "var2": "string1", + "var3": "string1", + "var4": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_leadership.json b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_leadership.json new file mode 100644 index 0000000..4cd9d3a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_leadership.json @@ -0,0 +1,122 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + }, + "dynval2": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + }, + "dynval2": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_leadership_empty.json b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_leadership_empty.json new file mode 100644 index 0000000..4cd9d3a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_leadership_empty.json @@ -0,0 +1,122 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + }, + "dynval2": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + }, + "dynval2": { + "leadership": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_sub_dynamic.json b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_sub_dynamic.json new file mode 100644 index 0000000..f4d9e7c --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_sub_dynamic.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_sub_dynamic_1_0.json b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_sub_dynamic_1_0.json new file mode 100644 index 0000000..f4d9e7c --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_sub_dynamic_1_0.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_sub_dynamic_empty.json b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_sub_dynamic_empty.json new file mode 100644 index 0000000..f4d9e7c --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_6family_dynamic_sub_dynamic_empty.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + }, + "dyn_tval2": { + "var": "string1", + "var_identifier": "string1", + "var_identifiers": "string1" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_9extra_dynamic.json b/tests/results/test_namespace_read_write_mandatory/60_9extra_dynamic.json new file mode 100644 index 0000000..54c4177 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_9extra_dynamic.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "a" + ] + }, + "extra": { + "dyn_a": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "a" + ] + }, + "extra": { + "dyn_a": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_9extra_dynamic_extra.json b/tests/results/test_namespace_read_write_mandatory/60_9extra_dynamic_extra.json new file mode 100644 index 0000000..35f92c7 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_9extra_dynamic_extra.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "general": { + "varname": [ + "string1", + "string2", + "string3" + ] + } + }, + "extra": { + "var": [ + "a" + ], + "dyn_a": { + "var": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "general": { + "varname": [ + "string1", + "string2", + "string3" + ] + } + }, + "extra": { + "var": [ + "a" + ], + "dyn_a": { + "var": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/60_9family_dynamic_calc_both.json b/tests/results/test_namespace_read_write_mandatory/60_9family_dynamic_calc_both.json new file mode 100644 index 0000000..e77bbae --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_9family_dynamic_calc_both.json @@ -0,0 +1,52 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynstring1": { + "vardyn": "string1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "string1", + "dynval1": { + "vardyn": "string1" + }, + "dynstring1": { + "vardyn": "string1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory/68_0family_leadership_mode.json b/tests/results/test_namespace_read_write_mandatory/68_0family_leadership_mode.json new file mode 100644 index 0000000..6939274 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/68_0family_leadership_mode.json @@ -0,0 +1,72 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": "string1", + "follower2": "string1" + }, + { + "leader": "string2", + "follower1": "string2", + "follower2": "string2" + }, + { + "leader": "string3", + "follower1": "string3", + "follower2": "string3" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_0empty.json b/tests/results/test_namespace_read_write_mandatory_errors/00_0empty.json new file mode 100644 index 0000000..b7155d1 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_0empty.json @@ -0,0 +1,34 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net" + }, + "GROUP2_01": { + "ansible_host": "group2.net" + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_0version_underscore.json b/tests/results/test_namespace_read_write_mandatory_errors/00_0version_underscore.json new file mode 100644 index 0000000..e6f3075 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_0version_underscore.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.version (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_1empty_variable.json b/tests/results/test_namespace_read_write_mandatory_errors/00_1empty_variable.json new file mode 100644 index 0000000..ed41f21 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_1empty_variable.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.empty" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated.json b/tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated.json new file mode 100644 index 0000000..560065f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "no", + "var2": [ + "no" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "no", + "var2": [ + "no" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated_multi.json b/tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated_multi.json new file mode 100644 index 0000000..cb90dc6 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated_multi.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "no", + "yes", + "maybe" + ], + "var2": [ + "no", + "yes", + "maybe" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "no", + "yes", + "maybe" + ], + "var2": [ + "no", + "yes", + "maybe" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated_variable_transitive.json b/tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated_variable_transitive.json new file mode 100644 index 0000000..9ef0862 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated_variable_transitive.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var1 (a first variable)", + " - rougail.var2 (a second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_4load_subfolder.json b/tests/results/test_namespace_read_write_mandatory_errors/00_4load_subfolder.json new file mode 100644 index 0000000..46c948f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_4load_subfolder.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var1 (a variable)", + " - rougail.var2 (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_5load_notype.json b/tests/results/test_namespace_read_write_mandatory_errors/00_5load_notype.json new file mode 100644 index 0000000..f715352 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_5load_notype.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "without_type": "non" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "without_type": "non" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6boolean.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6boolean.json new file mode 100644 index 0000000..8d18c2d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6boolean.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": true, + "var2": true, + "var3": true, + "var4": false, + "var5": false, + "var6": false + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": true, + "var2": true, + "var3": true, + "var4": false, + "var5": false, + "var6": false + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6boolean_no_mandatory.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6boolean_no_mandatory.json new file mode 100644 index 0000000..ed87618 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6boolean_no_mandatory.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6choice.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6choice.json new file mode 100644 index 0000000..d748233 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6choice.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var1 (the first variable)", + " - rougail.var2 (the second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6choice_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6choice_calculation.json new file mode 100644 index 0000000..978e0c4 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6choice_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": 9 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": 9 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6choice_variable.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6choice_variable.json new file mode 100644 index 0000000..ed6199a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6choice_variable.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "a", + "b", + "c" + ], + "var2": "a" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "a", + "b", + "c" + ], + "var2": "a" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6custom.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6custom.json new file mode 100644 index 0000000..4c52c5c --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6custom.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.custom1 (the first variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6domainname.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6domainname.json new file mode 100644 index 0000000..a927d2d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6domainname.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "my.domain.name" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "my.domain.name" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6domainname_params.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6domainname_params.json new file mode 100644 index 0000000..a927d2d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6domainname_params.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "my.domain.name" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "my.domain.name" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6float.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6float.json new file mode 100644 index 0000000..1bfdabc --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6float.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": 0.0, + "var2": 0.0, + "var3": 0.0, + "var4": 10.1, + "var5": 10.1, + "var6": 10.1 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": 0.0, + "var2": 0.0, + "var3": 0.0, + "var4": 10.1, + "var5": 10.1, + "var6": 10.1 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6number.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6number.json new file mode 100644 index 0000000..6ee86c2 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6number.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": 0, + "var2": 0, + "var3": 0, + "var4": 10, + "var5": 10, + "var6": 10 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": 0, + "var2": 0, + "var3": 0, + "var4": 10, + "var5": 10, + "var6": 10 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6port.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6port.json new file mode 100644 index 0000000..2fa73e7 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6port.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.variable1 (a port variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6regexp.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6regexp.json new file mode 100644 index 0000000..bdcfdaa --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6regexp.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "#a1a1a1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "#a1a1a1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6string.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6string.json new file mode 100644 index 0000000..8b1378d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6string.json @@ -0,0 +1,24 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var1 (the first variable)", + " - rougail.var2 (the second variable)", + " - rougail.var3 (the third variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_7choice_quote.json b/tests/results/test_namespace_read_write_mandatory_errors/00_7choice_quote.json new file mode 100644 index 0000000..05d9eb3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_7choice_quote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "quote'" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "quote'" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_7help_quote.json b/tests/results/test_namespace_read_write_mandatory_errors/00_7help_quote.json new file mode 100644 index 0000000..d748233 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_7help_quote.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var1 (the first variable)", + " - rougail.var2 (the second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_7value_doublequote.json b/tests/results/test_namespace_read_write_mandatory_errors/00_7value_doublequote.json new file mode 100644 index 0000000..ef1f84a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_7value_doublequote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "quote\"" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "quote\"" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_7value_doublequote2.json b/tests/results/test_namespace_read_write_mandatory_errors/00_7value_doublequote2.json new file mode 100644 index 0000000..10ee5a9 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_7value_doublequote2.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "quote'\"" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "quote'\"" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_7value_doublequote3.json b/tests/results/test_namespace_read_write_mandatory_errors/00_7value_doublequote3.json new file mode 100644 index 0000000..0efcfd8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_7value_doublequote3.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "quote\\\"\\'" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "quote\\\"\\'" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_7value_quote.json b/tests/results/test_namespace_read_write_mandatory_errors/00_7value_quote.json new file mode 100644 index 0000000..f53ec86 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_7value_quote.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "quote'" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "quote'" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_8calculation_information.json b/tests/results/test_namespace_read_write_mandatory_errors/00_8calculation_information.json new file mode 100644 index 0000000..9b528c5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_8calculation_information.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.variable (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_8test.json b/tests/results/test_namespace_read_write_mandatory_errors/00_8test.json new file mode 100644 index 0000000..56108cf --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_8test.json @@ -0,0 +1,24 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var1 (the first variable)", + " - rougail.var3 (the third variable)", + " - rougail.var6 (the sixth variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9choice_variable_multi.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9choice_variable_multi.json new file mode 100644 index 0000000..df90f15 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9choice_variable_multi.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.variable1 (a first variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9choice_variables.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9choice_variables.json new file mode 100644 index 0000000..22805e8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9choice_variables.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "source_variable_1": "val1", + "source_variable_2": "val2", + "my_variable": "val1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "source_variable_1": "val1", + "source_variable_2": "val2", + "my_variable": "val1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation.json new file mode 100644 index 0000000..d53126d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "string_1_True_None" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "string_1_True_None" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_information.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_information.json new file mode 100644 index 0000000..ad5f903 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_information.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_information_other_variable.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_information_other_variable.json new file mode 100644 index 0000000..9ef0862 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_information_other_variable.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var1 (a first variable)", + " - rougail.var2 (a second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_multi_optional.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_multi_optional.json new file mode 100644 index 0000000..0472b2d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_multi_optional.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": "val1", + "my_calculated_variable": [ + "val1" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": "val1", + "my_calculated_variable": [ + "val1" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_multi_optional2.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_multi_optional2.json new file mode 100644 index 0000000..0472b2d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_multi_optional2.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": "val1", + "my_calculated_variable": [ + "val1" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": "val1", + "my_calculated_variable": [ + "val1" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_optional.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_optional.json new file mode 100644 index 0000000..d93884f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_optional.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.my_calculated_variable" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_optional_exists.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_optional_exists.json new file mode 100644 index 0000000..5e80732 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_optional_exists.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "my_variable": [ + "val1", + "val2" + ], + "my_calculated_variable": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "my_variable": [ + "val1", + "val2" + ], + "my_calculated_variable": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_param_optional.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_param_optional.json new file mode 100644 index 0000000..b50fd53 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_param_optional.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "no", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "no", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9default_information_other_variable.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_information_other_variable.json new file mode 100644 index 0000000..9ef0862 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_information_other_variable.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var1 (a first variable)", + " - rougail.var2 (a second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9default_integer.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_integer.json new file mode 100644 index 0000000..978e0c4 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_integer.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": 9 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": 9 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9extra.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9extra.json new file mode 100644 index 0000000..7406536 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9extra.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "rougail" + }, + "extra": { + "variable": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "rougail" + }, + "extra": { + "variable": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9extra_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9extra_calculation.json new file mode 100644 index 0000000..fdc102d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9extra_calculation.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "value" + }, + "extra": { + "variable1": "value", + "variable2": "value", + "variable3": "value" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "value" + }, + "extra": { + "variable1": "value", + "variable2": "value", + "variable3": "value" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/01_6boolean_multi.json b/tests/results/test_namespace_read_write_mandatory_errors/01_6boolean_multi.json new file mode 100644 index 0000000..742da6a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/01_6boolean_multi.json @@ -0,0 +1,86 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + true + ], + "var2": [ + true + ], + "var3": [ + true + ], + "var4": [ + false + ], + "var5": [ + false + ], + "var6": [ + false + ], + "var7": [ + true + ], + "var8": [ + true + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + true + ], + "var2": [ + true + ], + "var3": [ + true + ], + "var4": [ + false + ], + "var5": [ + false + ], + "var6": [ + false + ], + "var7": [ + true + ], + "var8": [ + true + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/01_6custom_multi.json b/tests/results/test_namespace_read_write_mandatory_errors/01_6custom_multi.json new file mode 100644 index 0000000..d5db923 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/01_6custom_multi.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.custom1 (a first custom variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/01_6float_multi.json b/tests/results/test_namespace_read_write_mandatory_errors/01_6float_multi.json new file mode 100644 index 0000000..259bbe1 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/01_6float_multi.json @@ -0,0 +1,86 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + 0.0 + ], + "var2": [ + 0.0 + ], + "var3": [ + 0.0 + ], + "var4": [ + 10.1 + ], + "var5": [ + 10.1 + ], + "var6": [ + 10.1 + ], + "var7": [ + 0.0 + ], + "var8": [ + 0.0 + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + 0.0 + ], + "var2": [ + 0.0 + ], + "var3": [ + 0.0 + ], + "var4": [ + 10.1 + ], + "var5": [ + 10.1 + ], + "var6": [ + 10.1 + ], + "var7": [ + 0.0 + ], + "var8": [ + 0.0 + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/01_6number_multi.json b/tests/results/test_namespace_read_write_mandatory_errors/01_6number_multi.json new file mode 100644 index 0000000..c5df092 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/01_6number_multi.json @@ -0,0 +1,86 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + 0 + ], + "var2": [ + 0 + ], + "var3": [ + 0 + ], + "var4": [ + 10 + ], + "var5": [ + 10 + ], + "var6": [ + 10 + ], + "var7": [ + 0 + ], + "var8": [ + 0 + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + 0 + ], + "var2": [ + 0 + ], + "var3": [ + 0 + ], + "var4": [ + 10 + ], + "var5": [ + 10 + ], + "var6": [ + 10 + ], + "var7": [ + 0 + ], + "var8": [ + 0 + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/01_6string_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/01_6string_empty.json new file mode 100644 index 0000000..28adf4b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/01_6string_empty.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var1 (the second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/01_6string_multi.json b/tests/results/test_namespace_read_write_mandatory_errors/01_6string_multi.json new file mode 100644 index 0000000..8b1378d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/01_6string_multi.json @@ -0,0 +1,24 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var1 (the first variable)", + " - rougail.var2 (the second variable)", + " - rougail.var3 (the third variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/01_7value_multi_doublequote.json b/tests/results/test_namespace_read_write_mandatory_errors/01_7value_multi_doublequote.json new file mode 100644 index 0000000..f57f500 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/01_7value_multi_doublequote.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "quote\"" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "quote\"" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/01_7value_multi_doublequote2.json b/tests/results/test_namespace_read_write_mandatory_errors/01_7value_multi_doublequote2.json new file mode 100644 index 0000000..e73a810 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/01_7value_multi_doublequote2.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "quote'\"" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "quote'\"" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/01_7value_multi_quote.json b/tests/results/test_namespace_read_write_mandatory_errors/01_7value_multi_quote.json new file mode 100644 index 0000000..78273fd --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/01_7value_multi_quote.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "quote'" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "quote'" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/01_8calculation_information_multi.json b/tests/results/test_namespace_read_write_mandatory_errors/01_8calculation_information_multi.json new file mode 100644 index 0000000..9b528c5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/01_8calculation_information_multi.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.variable (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/01_9choice_variable_multi.json b/tests/results/test_namespace_read_write_mandatory_errors/01_9choice_variable_multi.json new file mode 100644 index 0000000..9fa8c8d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/01_9choice_variable_multi.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.variable2 (a second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_0type_param.json b/tests/results/test_namespace_read_write_mandatory_errors/04_0type_param.json new file mode 100644 index 0000000..0db0f8b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_0type_param.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "int": 10 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "int": 10 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save.json b/tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save.json new file mode 100644 index 0000000..7b77c76 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save_and_calculated.json b/tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save_and_calculated.json new file mode 100644 index 0000000..b50fd53 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save_and_calculated.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "no", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "no", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save_and_calculated_hidden.json b/tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save_and_calculated_hidden.json new file mode 100644 index 0000000..0efc416 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save_and_calculated_hidden.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "no", + "var2": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "no", + "var2": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save_and_hidden.json b/tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save_and_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_1auto_save_and_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_1default_calculation_hidden.json b/tests/results/test_namespace_read_write_mandatory_errors/04_1default_calculation_hidden.json new file mode 100644 index 0000000..98c480f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_1default_calculation_hidden.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "value", + "var3": "value" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "value", + "var3": "value" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_1default_calculation_hidden_2.json b/tests/results/test_namespace_read_write_mandatory_errors/04_1default_calculation_hidden_2.json new file mode 100644 index 0000000..98c480f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_1default_calculation_hidden_2.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "value", + "var3": "value" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "value", + "var3": "value" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation.json new file mode 100644 index 0000000..b173fee --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.variable1 (a first variable)", + " - rougail.variable2 (a second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_default.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_default.json new file mode 100644 index 0000000..2c10255 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_default.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "var1": "no", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "var1": "no", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_optional.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_optional.json new file mode 100644 index 0000000..8dd9efe --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_optional.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable.json new file mode 100644 index 0000000..9b528c5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.variable (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable2.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable2.json new file mode 100644 index 0000000..7f98eb8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable2.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable3.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable3.json new file mode 100644 index 0000000..5490356 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable3.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable4.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable4.json new file mode 100644 index 0000000..9b528c5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable4.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.variable (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5hidden_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5hidden_calculation.json new file mode 100644 index 0000000..2c10255 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5hidden_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "var1": "no", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "var1": "no", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5hidden_calculation2.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5hidden_calculation2.json new file mode 100644 index 0000000..8dd9efe --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5hidden_calculation2.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5hidden_calculation_default_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5hidden_calculation_default_calculation.json new file mode 100644 index 0000000..2c10255 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5hidden_calculation_default_calculation.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "var1": "no", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "var1": "no", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5validators.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5validators.json new file mode 100644 index 0000000..127579e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5validators.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.int (A number)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5validators_differ.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5validators_differ.json new file mode 100644 index 0000000..0899187 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5validators_differ.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "oui", + "var2": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "oui", + "var2": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5validators_multi.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5validators_multi.json new file mode 100644 index 0000000..b342be2 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5validators_multi.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "no", + "yes" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "no", + "yes" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5validators_multi2.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5validators_multi2.json new file mode 100644 index 0000000..b342be2 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5validators_multi2.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "no", + "yes" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "no", + "yes" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/05_0multi_not_uniq.json b/tests/results/test_namespace_read_write_mandatory_errors/05_0multi_not_uniq.json new file mode 100644 index 0000000..4241886 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/05_0multi_not_uniq.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "non" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "non" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/05_0multi_uniq.json b/tests/results/test_namespace_read_write_mandatory_errors/05_0multi_uniq.json new file mode 100644 index 0000000..c45f586 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/05_0multi_uniq.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "non" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "non" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/12_1auto_save_expert.json b/tests/results/test_namespace_read_write_mandatory_errors/12_1auto_save_expert.json new file mode 100644 index 0000000..ac68847 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/12_1auto_save_expert.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_0redefine_description.json b/tests/results/test_namespace_read_write_mandatory_errors/16_0redefine_description.json new file mode 100644 index 0000000..37b5542 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_0redefine_description.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var (Redefined)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_2family_redefine_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/16_2family_redefine_calculation.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_2family_redefine_calculation.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_2family_redefine_disabled.json b/tests/results/test_namespace_read_write_mandatory_errors/16_2family_redefine_disabled.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_2family_redefine_disabled.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_5exists_nonexists.json b/tests/results/test_namespace_read_write_mandatory_errors/16_5exists_nonexists.json new file mode 100644 index 0000000..0efc416 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_5exists_nonexists.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "no", + "var2": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "no", + "var2": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_5exists_redefine.json b/tests/results/test_namespace_read_write_mandatory_errors/16_5exists_redefine.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_5exists_redefine.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_calculation.json new file mode 100644 index 0000000..b2a90a5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_choice.json b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_choice.json new file mode 100644 index 0000000..9b528c5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_choice.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.variable (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_default.json b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_default.json new file mode 100644 index 0000000..b2a90a5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_default.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_default_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_default_calculation.json new file mode 100644 index 0000000..9b528c5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_default_calculation.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.variable (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_family.json b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_family.json new file mode 100644 index 0000000..6a0e22d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_family.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.family.variable (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_help.json b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_help.json new file mode 100644 index 0000000..be95641 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_help.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.family.variable (redefine help)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_hidden.json b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_multi.json b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_multi.json new file mode 100644 index 0000000..c45f586 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_multi.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "variable": [ + "non" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "variable": [ + "non" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_remove_disable_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_remove_disable_calculation.json new file mode 100644 index 0000000..9b528c5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_5redefine_remove_disable_calculation.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.variable (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_5test_redefine.json b/tests/results/test_namespace_read_write_mandatory_errors/16_5test_redefine.json new file mode 100644 index 0000000..dca4bc6 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_5test_redefine.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var3 (a third variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_6choice_redefine.json b/tests/results/test_namespace_read_write_mandatory_errors/16_6choice_redefine.json new file mode 100644 index 0000000..e658b11 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_6choice_redefine.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "c" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "c" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16_6exists_redefine_family.json b/tests/results/test_namespace_read_write_mandatory_errors/16_6exists_redefine_family.json new file mode 100644 index 0000000..d434a14 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16_6exists_redefine_family.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.family1.variable1 (a variable)", + " - rougail.family2.variable2 (a second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/16exists_exists.json b/tests/results/test_namespace_read_write_mandatory_errors/16exists_exists.json new file mode 100644 index 0000000..94f3cf7 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/16exists_exists.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var (Description)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/17_5redefine_leadership.json b/tests/results/test_namespace_read_write_mandatory_errors/17_5redefine_leadership.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/17_5redefine_leadership.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/20_0empty_family.json b/tests/results/test_namespace_read_write_mandatory_errors/20_0empty_family.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/20_0empty_family.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/20_0family_append.json b/tests/results/test_namespace_read_write_mandatory_errors/20_0family_append.json new file mode 100644 index 0000000..072f37a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/20_0family_append.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.family.var1 (The first variable)", + " - rougail.family.var2 (The second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/20_0family_underscore.json b/tests/results/test_namespace_read_write_mandatory_errors/20_0family_underscore.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/20_0family_underscore.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family.json b/tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family.json new file mode 100644 index 0000000..52f6eab --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": null + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": null + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family_basic.json b/tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family_basic.json new file mode 100644 index 0000000..231346b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family_basic.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.family.subfamily.variable (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family_expert.json b/tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family_expert.json new file mode 100644 index 0000000..52f6eab --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family_expert.json @@ -0,0 +1,48 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "subfamily": { + "variable": null + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "subfamily": { + "variable": null + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family_order.json b/tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family_order.json new file mode 100644 index 0000000..27c3131 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/20_0multi_family_order.json @@ -0,0 +1,25 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.variable (a variable)", + " - rougail.family.variable1 (a first variable)", + " - rougail.family.subfamily.variable (a variable)", + " - rougail.family.variable2 (a second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/20_0validators_differ_redefine.json b/tests/results/test_namespace_read_write_mandatory_errors/20_0validators_differ_redefine.json new file mode 100644 index 0000000..99d7de3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/20_0validators_differ_redefine.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": "no", + "var2": "no", + "var3": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": "no", + "var2": "no", + "var3": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/20_1empty_subfamily.json b/tests/results/test_namespace_read_write_mandatory_errors/20_1empty_subfamily.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/20_1empty_subfamily.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/20_9default_information_parent.json b/tests/results/test_namespace_read_write_mandatory_errors/20_9default_information_parent.json new file mode 100644 index 0000000..888fc08 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/20_9default_information_parent.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.family.var1 (a first variable)", + " - rougail.family.var2 (a second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition.json b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition.json new file mode 100644 index 0000000..1f1ad4d --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.family.var1 (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_boolean.json b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_boolean.json new file mode 100644 index 0000000..13f36b1 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_boolean.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": false + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": false + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_sub_family.json b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_sub_family.json new file mode 100644 index 0000000..8175190 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_sub_family.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.family.subfamily.var1 (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_variable_sub_family.json b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_variable_sub_family.json new file mode 100644 index 0000000..7f98eb8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_variable_sub_family.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": true + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": true + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_with_variable.json b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_with_variable.json new file mode 100644 index 0000000..8425ec0 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_condition_with_variable.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition1": false, + "condition2": false + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition1": false, + "condition2": false + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_param_condition_sub_family.json b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_param_condition_sub_family.json new file mode 100644 index 0000000..bd47302 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_hidden_param_condition_sub_family.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.family.sub_family.var1 (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/24_0family_mandatory_condition.json b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_mandatory_condition.json new file mode 100644 index 0000000..dc96517 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_mandatory_condition.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "var": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "var": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/24_0family_mandatory_condition_variable.json b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_mandatory_condition_variable.json new file mode 100644 index 0000000..ad5f903 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/24_0family_mandatory_condition_variable.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/24_7validators_variable_optional.json b/tests/results/test_namespace_read_write_mandatory_errors/24_7validators_variable_optional.json new file mode 100644 index 0000000..5a467b7 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/24_7validators_variable_optional.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.general.int (a first number)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/24_family_disabled_var_hidden.json b/tests/results/test_namespace_read_write_mandatory_errors/24_family_disabled_var_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/24_family_disabled_var_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership.json b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership.json new file mode 100644 index 0000000..f022036 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.leader.leader (a leader)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_diff_name.json b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_diff_name.json new file mode 100644 index 0000000..29452ef --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_diff_name.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.leadership.leader (a leader)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_empty.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_empty.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_calculation.json new file mode 100644 index 0000000..f022036 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_calculation.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.leader.leader (a leader)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_submulti.json b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_submulti.json new file mode 100644 index 0000000..3864db5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_submulti.json @@ -0,0 +1,62 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "leader", + "follower1": [ + "value" + ], + "follower2": [ + "value1", + "value2" + ] + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "leader", + "follower1": [ + "value" + ], + "follower2": [ + "value1", + "value2" + ] + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_submulti_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_submulti_calculation.json new file mode 100644 index 0000000..9ad03e3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_submulti_calculation.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "leader", + "follower1": [ + "value" + ], + "follower2": [ + "value" + ] + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "leader", + "follower1": [ + "value" + ], + "follower2": [ + "value" + ] + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_value.json b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_value.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_follower_default_value.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_leader_not_multi.json b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_leader_not_multi.json new file mode 100644 index 0000000..6308576 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_0leadership_leader_not_multi.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.general1.leader.leader" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_1leadership_append_follower.json b/tests/results/test_namespace_read_write_mandatory_errors/40_1leadership_append_follower.json new file mode 100644 index 0000000..ed157a3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_1leadership_append_follower.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.leader.leader (the leader)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_calculation_index.json b/tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_calculation_index.json new file mode 100644 index 0000000..f758255 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_calculation_index.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_calculation_param_index.json b/tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_calculation_param_index.json new file mode 100644 index 0000000..f758255 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_calculation_param_index.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_leader_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_leader_calculation.json new file mode 100644 index 0000000..b37a019 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_leader_calculation.json @@ -0,0 +1,25 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.leader.follower1 (a first follower)", + " - rougail.leader.follower2 (a second follower)", + " - rougail.leader.follower1 (a first follower)", + " - rougail.leader.follower2 (a second follower)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_6leadership_follower_multi.json b/tests/results/test_namespace_read_write_mandatory_errors/40_6leadership_follower_multi.json new file mode 100644 index 0000000..636c44b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_6leadership_follower_multi.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.leadership.leader (The leader)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_boolean.json b/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_boolean.json new file mode 100644 index 0000000..1d794d3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_boolean.json @@ -0,0 +1,54 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "bool": false, + "multi1": [ + false + ], + "multi2": [ + true, + false + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "bool": false, + "multi1": [ + false + ], + "multi2": [ + true, + false + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_boolean_return_none.json b/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_boolean_return_none.json new file mode 100644 index 0000000..9a9983b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_boolean_return_none.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var2 (a second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_integer.json b/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_integer.json new file mode 100644 index 0000000..13735f1 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_integer.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "bool": false, + "int1": 2, + "int2": 3 + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "bool": false, + "int1": 2, + "int2": 3 + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_multi_variable.json b/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_multi_variable.json new file mode 100644 index 0000000..08ecc87 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_multi_variable.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "no", + "yes" + ], + "var2": "no", + "var3": "yes" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "no", + "yes" + ], + "var2": "no", + "var3": "yes" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_multi_variable_parent.json b/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_multi_variable_parent.json new file mode 100644 index 0000000..b4c6969 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_multi_variable_parent.json @@ -0,0 +1,46 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": "no", + "fam1": { + "var": "no" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": "no", + "fam1": { + "var": "no" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_multi_variable_parent2.json b/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_multi_variable_parent2.json new file mode 100644 index 0000000..ab7cae1 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_8calculation_multi_variable_parent2.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "fam1": { + "var": "no" + }, + "fam2": { + "var": "no" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "fam1": { + "var": "no" + }, + "fam2": { + "var": "no" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/41_0choice_leader.json b/tests/results/test_namespace_read_write_mandatory_errors/41_0choice_leader.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/41_0choice_leader.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/44_0leadership_hidden.json b/tests/results/test_namespace_read_write_mandatory_errors/44_0leadership_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/44_0leadership_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/44_0leadership_leader_hidden.json b/tests/results/test_namespace_read_write_mandatory_errors/44_0leadership_leader_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/44_0leadership_leader_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/44_1leadership_append_hidden_follower.json b/tests/results/test_namespace_read_write_mandatory_errors/44_1leadership_append_hidden_follower.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/44_1leadership_append_hidden_follower.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/44_4disabled_calcultion_follower.json b/tests/results/test_namespace_read_write_mandatory_errors/44_4disabled_calcultion_follower.json new file mode 100644 index 0000000..8985dd9 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/44_4disabled_calcultion_follower.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.leader.follower (a follower)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/44_4leadership_mandatory.json b/tests/results/test_namespace_read_write_mandatory_errors/44_4leadership_mandatory.json new file mode 100644 index 0000000..f022036 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/44_4leadership_mandatory.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.leader.leader (a leader)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/44_4leadership_mandatory_follower.json b/tests/results/test_namespace_read_write_mandatory_errors/44_4leadership_mandatory_follower.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/44_4leadership_mandatory_follower.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/44_5leadership_leader_hidden_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/44_5leadership_leader_hidden_calculation.json new file mode 100644 index 0000000..8dd9efe --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/44_5leadership_leader_hidden_calculation.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/44_6leadership_follower_disabled_calculation.json b/tests/results/test_namespace_read_write_mandatory_errors/44_6leadership_follower_disabled_calculation.json new file mode 100644 index 0000000..f022036 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/44_6leadership_follower_disabled_calculation.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.leader.leader (a leader)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/44_9calculated_default_leadership_leader.json b/tests/results/test_namespace_read_write_mandatory_errors/44_9calculated_default_leadership_leader.json new file mode 100644 index 0000000..f53f0d9 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/44_9calculated_default_leadership_leader.json @@ -0,0 +1,56 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [ + { + "leader": "a" + }, + { + "leader": "b", + "follower": "b" + } + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [ + { + "leader": "a" + }, + { + "leader": "b", + "follower": "b" + } + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic.json new file mode 100644 index 0000000..b30fe82 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.dynval1.var (A dynamic variable)", + " - rougail.dynval2.var (A dynamic variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0.json new file mode 100644 index 0000000..43062c7 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": null + }, + "dynval2": { + "vardyn": null + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "vardyn": null + }, + "dynval2": { + "vardyn": null + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0_type.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0_type.json new file mode 100644 index 0000000..294677f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0_type.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.dynval1.vardyn (A dyn variable)", + " - rougail.dynval2.vardyn (A dyn variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0_type_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0_type_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_0_type_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_1.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_1.json new file mode 100644 index 0000000..e88bc3a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_1.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.dynval1.vardyn (A dynamic variable)", + " - rougail.dynval2.vardyn (A dynamic variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_1_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_1_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_1_1_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_jinja_number.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_jinja_number.json new file mode 100644 index 0000000..7d5df50 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_jinja_number.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "val" + }, + "dyn2": { + "var": "val" + }, + "var2": "val" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + 1, + 2 + ], + "dyn1": { + "var": "val" + }, + "dyn2": { + "var": "val" + }, + "var2": "val" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_jinja_number_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_jinja_number_empty.json new file mode 100644 index 0000000..0f6c43b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_jinja_number_empty.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var2 (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_no_description.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_no_description.json new file mode 100644 index 0000000..b9ca948 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_no_description.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.dynval1.var", + " - rougail.dynval2.var" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_no_description_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_no_description_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_no_description_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_static.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_static.json new file mode 100644 index 0000000..8bfcbb5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_static.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.dynval1.var (a variable inside a dynamic family)", + " - rougail.dynval2.var (a variable inside a dynamic family)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_test.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_test.json new file mode 100644 index 0000000..bac6800 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_test.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var (A suffix variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_empty.json new file mode 100644 index 0000000..9b2e345 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_empty.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var (a suffix variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_suffix.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_suffix.json new file mode 100644 index 0000000..0a71e74 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_suffix.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "a value" + }, + "dynval2": { + "var": "a value" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "a value" + }, + "dynval2": { + "var": "a value" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_suffix_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_suffix_empty.json new file mode 100644 index 0000000..bac6800 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_suffix_empty.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var (A suffix variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_empty.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_empty.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_hidden.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_hidden.json new file mode 100644 index 0000000..376094e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_hidden.json @@ -0,0 +1,36 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": {} + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": {} + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_mode.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_mode.json new file mode 100644 index 0000000..e552de7 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_mode.json @@ -0,0 +1,44 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "family": { + "var": "non" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "family": { + "var": "non" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_1family_dynamic_jinja.json b/tests/results/test_namespace_read_write_mandatory_errors/60_1family_dynamic_jinja.json new file mode 100644 index 0000000..d279201 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_1family_dynamic_jinja.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn1": { + "var": "val" + }, + "dyn2": { + "var": "val" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn1": { + "var": "val" + }, + "dyn2": { + "var": "val" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group.json b/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group.json new file mode 100644 index 0000000..b386326 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group.json @@ -0,0 +1,24 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.dynval1.family.var (with a variable)", + " - rougail.dynval2.family.var (with a variable)", + " - rougail.var2 (a second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group_2.json b/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group_2.json new file mode 100644 index 0000000..08a59e4 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group_2.json @@ -0,0 +1,68 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "val1" + } + }, + "dynval2": { + "family": { + "var": "val2" + } + }, + "var2": "val1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "family": { + "var": "val1" + } + }, + "dynval2": { + "family": { + "var": "val2" + } + }, + "var2": "val1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group_2_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group_2_empty.json new file mode 100644 index 0000000..59476ad --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group_2_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [], + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [], + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group_empty.json new file mode 100644 index 0000000..97c07b9 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_jinja_fill_sub_group_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [], + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [], + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_outside_calc.json b/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_outside_calc.json new file mode 100644 index 0000000..8fc28c6 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_outside_calc.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "val" + }, + "dynval2": { + "var": "val" + }, + "newvar": "val" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [ + "val1", + "val2" + ], + "dynval1": { + "var": "val" + }, + "dynval2": { + "var": "val" + }, + "newvar": "val" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_outside_calc_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_outside_calc_empty.json new file mode 100644 index 0000000..8c6048b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_2family_dynamic_outside_calc_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var1": [], + "newvar": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var1": [], + "newvar": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc2.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc2.json new file mode 100644 index 0000000..9a9983b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc2.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var2 (a second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc2_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc2_empty.json new file mode 100644 index 0000000..9a9983b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc2_empty.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var2 (a second variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix.json new file mode 100644 index 0000000..bda1840 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix.json @@ -0,0 +1,24 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.dynval1.var (A dynamic variable)", + " - rougail.dynval2.var (A dynamic variable)", + " - rougail.var2 (A variable calculated)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix2.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix2.json new file mode 100644 index 0000000..87b9c89 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix2.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "val1" + }, + "dynval2": { + "var": "val2" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "val1" + }, + "dynval2": { + "var": "val2" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix2_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix2_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix2_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_disabled.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_disabled.json new file mode 100644 index 0000000..9b4d784 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_disabled.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.dynval2.var (A dynamic variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_empty.json new file mode 100644 index 0000000..95aa3f2 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_empty.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var2 (A variable calculated)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_param.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_param.json new file mode 100644 index 0000000..87b9c89 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_param.json @@ -0,0 +1,58 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "val1" + }, + "dynval2": { + "var": "val2" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": "val1" + }, + "dynval2": { + "var": "val2" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_param_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_param_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_suffix_param_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_variable.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_variable.json new file mode 100644 index 0000000..bda1840 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_variable.json @@ -0,0 +1,24 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.dynval1.var (A dynamic variable)", + " - rougail.dynval2.var (A dynamic variable)", + " - rougail.var2 (A variable calculated)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_variable_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_variable_empty.json new file mode 100644 index 0000000..95aa3f2 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_calc_variable_empty.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var2 (A variable calculated)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_hidden_suffix.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_hidden_suffix.json new file mode 100644 index 0000000..b869861 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_hidden_suffix.json @@ -0,0 +1,50 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "dynval1": { + "var": null, + "family": { + "var": null + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "dynval1": { + "var": null, + "family": { + "var": null + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_unknown_suffix.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_unknown_suffix.json new file mode 100644 index 0000000..d29b3b0 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_unknown_suffix.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "val1", + "var2": "val1", + "var3": "val1" + }, + "val2_dyn": { + "var1": "val2", + "var2": "val2", + "var3": "val2" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "val1", + "var2": "val1", + "var3": "val1" + }, + "val2_dyn": { + "var1": "val2", + "var2": "val2", + "var3": "val2" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_unknown_suffix_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_unknown_suffix_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_unknown_suffix_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside.json new file mode 100644 index 0000000..c20edb2 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "val1" + }, + "my_dyn_family_val2": { + "var": "val2" + }, + "var2": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "val1" + }, + "my_dyn_family_val2": { + "var": "val2" + }, + "var2": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside2.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside2.json new file mode 100644 index 0000000..545b8b4 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside2.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var2": [ + "val1", + "val2" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "val1" + }, + "my_dyn_family_val2": { + "var": "val2" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var2": [ + "val1", + "val2" + ], + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "val1" + }, + "my_dyn_family_val2": { + "var": "val2" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside2_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside2_empty.json new file mode 100644 index 0000000..0f6c43b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside2_empty.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var2 (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_empty.json new file mode 100644 index 0000000..0f6c43b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_empty.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var2 (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_jinja.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_jinja.json new file mode 100644 index 0000000..c20edb2 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_jinja.json @@ -0,0 +1,66 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "val1" + }, + "my_dyn_family_val2": { + "var": "val2" + }, + "var2": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "var": "val1" + }, + "my_dyn_family_val2": { + "var": "val2" + }, + "var2": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_jinja_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_jinja_empty.json new file mode 100644 index 0000000..0f6c43b --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_jinja_empty.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var2 (a variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_sub_suffix.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_sub_suffix.json new file mode 100644 index 0000000..726cdce --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_sub_suffix.json @@ -0,0 +1,86 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "val1" + }, + "subdyn_val2": { + "var": "val2" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "val1" + }, + "subdyn_val2": { + "var": "val2" + } + }, + "var2": [ + "val1", + "val2" + ] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "my_dyn_family_val1": { + "subdyn_val1": { + "var": "val1" + }, + "subdyn_val2": { + "var": "val2" + } + }, + "my_dyn_family_val2": { + "subdyn_val1": { + "var": "val1" + }, + "subdyn_val2": { + "var": "val2" + } + }, + "var2": [ + "val1", + "val2" + ] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_sub_suffix_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_sub_suffix_empty.json new file mode 100644 index 0000000..e3431c5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_sub_suffix_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [], + "var2": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [], + "var2": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_suffix.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_suffix.json new file mode 100644 index 0000000..fe25434 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_suffix.json @@ -0,0 +1,60 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "val1" + }, + "dyn_val2": { + "var": "val2" + }, + "var2": "val1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dyn_val1": { + "var": "val1" + }, + "dyn_val2": { + "var": "val2" + }, + "var2": "val1" + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_suffix_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_suffix_empty.json new file mode 100644 index 0000000..59476ad --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_5family_dynamic_variable_outside_suffix_empty.json @@ -0,0 +1,42 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [], + "var2": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [], + "var2": null + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_inside.json b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_inside.json new file mode 100644 index 0000000..3020dbf --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_inside.json @@ -0,0 +1,70 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "val1", + "var2": "val1", + "var3": "val1", + "var4": "val1" + }, + "val2_dyn": { + "var1": "val2", + "var2": "val2", + "var3": "val2", + "var4": "val1" + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "val1_dyn": { + "var1": "val1", + "var2": "val1", + "var3": "val1", + "var4": "val1" + }, + "val2_dyn": { + "var1": "val2", + "var2": "val2", + "var3": "val2", + "var4": "val1" + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_inside_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_inside_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_inside_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_leadership.json b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_leadership.json new file mode 100644 index 0000000..9dbc67a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_leadership.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.dynval1.leadership.leader (a leader)", + " - rougail.dynval2.leadership.leader (a leader)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_leadership_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_leadership_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_leadership_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_sub_dynamic.json b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_sub_dynamic.json new file mode 100644 index 0000000..f77c6f0 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_sub_dynamic.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val1", + "var_identifiers": "val1-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val1", + "var_identifiers": "val1-tval2" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val2", + "var_identifiers": "val2-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val2", + "var_identifiers": "val2-tval2" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val1", + "var_identifiers": "val1-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val1", + "var_identifiers": "val1-tval2" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val2", + "var_identifiers": "val2-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val2", + "var_identifiers": "val2-tval2" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_sub_dynamic_1_0.json b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_sub_dynamic_1_0.json new file mode 100644 index 0000000..f77c6f0 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_sub_dynamic_1_0.json @@ -0,0 +1,110 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val1", + "var_identifiers": "val1-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val1", + "var_identifiers": "val1-tval2" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val2", + "var_identifiers": "val2-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val2", + "var_identifiers": "val2-tval2" + } + } + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [ + "val1", + "val2" + ], + "dynval1": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val1", + "var_identifiers": "val1-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val1", + "var_identifiers": "val1-tval2" + } + }, + "dynval2": { + "var": [ + "tval1", + "tval2" + ], + "dyn_tval1": { + "var": "tval1", + "var_identifier": "val2", + "var_identifiers": "val2-tval1" + }, + "dyn_tval2": { + "var": "tval2", + "var_identifier": "val2", + "var_identifiers": "val2-tval2" + } + } + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_sub_dynamic_empty.json b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_sub_dynamic_empty.json new file mode 100644 index 0000000..16bbda5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_6family_dynamic_sub_dynamic_empty.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "var": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "var": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_9extra_dynamic.json b/tests/results/test_namespace_read_write_mandatory_errors/60_9extra_dynamic.json new file mode 100644 index 0000000..0d95be3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_9extra_dynamic.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - extra.dyn_a.var" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_9extra_dynamic_extra.json b/tests/results/test_namespace_read_write_mandatory_errors/60_9extra_dynamic_extra.json new file mode 100644 index 0000000..0d95be3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_9extra_dynamic_extra.json @@ -0,0 +1,22 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - extra.dyn_a.var" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_9family_dynamic_calc_both.json b/tests/results/test_namespace_read_write_mandatory_errors/60_9family_dynamic_calc_both.json new file mode 100644 index 0000000..5083843 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_9family_dynamic_calc_both.json @@ -0,0 +1,23 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.dynval1.vardyn (a dynamic variable)", + " - rougail.dynval2.vardyn (a dynamic variable)" + ] + } + } + }, + "all": { + "children": [ + "ungrouped" + ] + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} diff --git a/tests/results/test_namespace_read_write_mandatory_errors/68_0family_leadership_mode.json b/tests/results/test_namespace_read_write_mandatory_errors/68_0family_leadership_mode.json new file mode 100644 index 0000000..403e9a5 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/68_0family_leadership_mode.json @@ -0,0 +1,40 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "leader": [] + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "leader": [] + } + } + } + }, + "all": { + "children": [ + "ungrouped", + "groups" + ] + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} diff --git a/tests/test_load.py b/tests/test_load.py new file mode 100644 index 0000000..8b4b53d --- /dev/null +++ b/tests/test_load.py @@ -0,0 +1,93 @@ +from pytest import fixture # , raises +from pathlib import Path +from rougail import Rougail +from rougail.output_ansible import RougailOutputAnsible as RougailOutput + +from rougail_tests.utils import get_structures_list, get_rougail_config, get_values_for_config + + +EXT = 'json' + + +excludes = [] +#excludes = [ +# '60_5family_dynamic_unknown_suffix', +# '60_5family_dynamic_variable_outside_sub_suffix', +#] + +test_ok = get_structures_list(excludes) +#test_ok = [Path('../rougail-tests/structures/00_0version_underscore')] + + +def idfn(fixture_value): + return fixture_value.name + + +@fixture(scope="module", params=test_ok, ids=idfn) +def test_dir(request): + return request.param + + +def _test_dictionaries(test_dir, namespace, ext, *, read_write=True, mandatory=False, do_calc=True): + rougailconfig = get_rougail_config(test_dir, namespace) + if not rougailconfig: + return + ################################## + rougailconfig['step.output'] = 'ansible' + rougailconfig["json.read_write"] = read_write + rougailconfig["json.mandatory"] = mandatory + extra_dictionaries = rougailconfig["extra_dictionaries"] + extra_dictionaries["hosts"] = [str(Path(__file__).parent / "hosts")] + rougailconfig['extra_dictionaries'] = extra_dictionaries + ################################## + dir_name = 'test' + if namespace: + dir_name += '_namespace' + elif (test_dir / 'force_namespace').is_file(): + return + ################################## + if read_write: + dir_name += '_read_write' + if mandatory: + dir_name += '_mandatory' + if not do_calc: + dir_name += '_errors' + ################################## + rougail = Rougail(rougailconfig) + config = rougail.run() + ################################## + if do_calc and (mandatory or not read_write): + get_values_for_config(config) + ################################## + generated_output = RougailOutput(config, rougailconfig=rougailconfig).run() + output_file = Path(__file__).parent / 'results' / dir_name / (test_dir.name + "." + ext) + if not output_file.is_file(): + if not output_file.parent.is_dir(): + output_file.parent.mkdir() + with output_file.open('w') as outfh: + outfh.write(generated_output) + with output_file.open() as outfh: + attented_output = outfh.read() + assert generated_output == attented_output, f'filename {output_file}' + + + +# do not test without namespace, ansible needs namespaces +def test_dictionaries_ansible_namespace(test_dir): + _test_dictionaries(test_dir, True, EXT) + + +def test_dictionaries_ansible_namespace_errors(test_dir): + _test_dictionaries(test_dir, True, EXT, do_calc=False, mandatory=True) + + +def test_dictionaries_ansible_namespace_read_only(test_dir): + _test_dictionaries(test_dir, True, EXT, read_write=False) + + +def test_dictionaries_ansible_namespace_mandatory(test_dir): + _test_dictionaries(test_dir, True, EXT, mandatory=True) + + +def test_dictionaries_ansible_namespace_mandatory_read_only(test_dir): + _test_dictionaries(test_dir, True, EXT, read_write=False, mandatory=True)