diff --git a/pyproject.toml b/pyproject.toml index fda92aa..b5e9644 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,9 +13,6 @@ license = {file = "LICENSE"} classifiers = [ "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Programming Language :: Python", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", diff --git a/tests/results/test_namespace/04_5disabled_calculation_boolean.json b/tests/results/test_namespace/04_5disabled_calculation_boolean.json new file mode 100644 index 0000000..ea9691d --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_boolean.json @@ -0,0 +1,64 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "variable1": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "variable1": "string1" + } + }, + "GROUP2_02": { + "ansible_host": "group3.net", + "rougail": { + "condition": "no", + "variable1": "string1" + } + }, + "group4.net": { + "ansible_host": "group4.net", + "rougail": { + "condition": "no", + "variable1": "string1" + } + }, + "group5.net": { + "ansible_host": "group5.net", + "rougail": { + "condition": "no", + "variable1": "string1" + } + } + } + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01", + "GROUP2_02" + ] + }, + "group3": { + "hosts": [ + "group4.net", + "group5.net" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation_boolean.json b/tests/results/test_namespace_mandatory/04_5disabled_calculation_boolean.json new file mode 100644 index 0000000..ce36c3a --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5disabled_calculation_boolean.json @@ -0,0 +1,64 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "variable1": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "variable1": "string1" + } + }, + "GROUP2_02": { + "ansible_host": "group3.net", + "rougail": { + "condition": "string1", + "variable1": "string1" + } + }, + "group4.net": { + "ansible_host": "group4.net", + "rougail": { + "condition": "string1", + "variable1": "string1" + } + }, + "group5.net": { + "ansible_host": "group5.net", + "rougail": { + "condition": "string1", + "variable1": "string1" + } + } + } + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01", + "GROUP2_02" + ] + }, + "group3": { + "hosts": [ + "group4.net", + "group5.net" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_boolean.json b/tests/results/test_namespace_read_write/04_5disabled_calculation_boolean.json new file mode 100644 index 0000000..3fde18d --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5disabled_calculation_boolean.json @@ -0,0 +1,64 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "no", + "variable1": null + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "no", + "variable1": null + } + }, + "GROUP2_02": { + "ansible_host": "group3.net", + "rougail": { + "condition": "no", + "variable1": null + } + }, + "group4.net": { + "ansible_host": "group4.net", + "rougail": { + "condition": "no", + "variable1": null + } + }, + "group5.net": { + "ansible_host": "group5.net", + "rougail": { + "condition": "no", + "variable1": null + } + } + } + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01", + "GROUP2_02" + ] + }, + "group3": { + "hosts": [ + "group4.net", + "group5.net" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_boolean.json b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_boolean.json new file mode 100644 index 0000000..ce36c3a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_boolean.json @@ -0,0 +1,64 @@ +{ + "_meta": { + "hostvars": { + "GROUP1_01": { + "ansible_host": "group1.net", + "rougail": { + "condition": "string1", + "variable1": "string1" + } + }, + "GROUP2_01": { + "ansible_host": "group2.net", + "rougail": { + "condition": "string1", + "variable1": "string1" + } + }, + "GROUP2_02": { + "ansible_host": "group3.net", + "rougail": { + "condition": "string1", + "variable1": "string1" + } + }, + "group4.net": { + "ansible_host": "group4.net", + "rougail": { + "condition": "string1", + "variable1": "string1" + } + }, + "group5.net": { + "ansible_host": "group5.net", + "rougail": { + "condition": "string1", + "variable1": "string1" + } + } + } + }, + "group1": { + "hosts": [ + "GROUP1_01" + ] + }, + "group2": { + "hosts": [ + "GROUP2_01", + "GROUP2_02" + ] + }, + "group3": { + "hosts": [ + "group4.net", + "group5.net" + ] + }, + "groups": { + "children": [ + "group1", + "group2" + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_boolean.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_boolean.json new file mode 100644 index 0000000..b3bb44c --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_boolean.json @@ -0,0 +1,17 @@ +{ + "_meta": { + "hostvars": { + "localhost": { + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.variable1 (a first variable)" + ] + } + } + }, + "ungrouped": { + "hosts": [ + "localhost" + ] + } +} \ No newline at end of file