From 91cf321584c78c567afdc8d127fd59d3d5ac32d0 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 10 Feb 2025 09:54:59 +0100 Subject: [PATCH] feat: output return status too --- src/rougail/output_console/__init__.py | 9 ++-- src/rougail/output_console/config.py | 2 +- src/rougail/output_console/i18n.py | 2 +- .../test_mandatory_secrets/00_6secret.sh | 9 ++++ ...00_9default_information_other_variable2.sh | 9 ++++ .../01_6string_multi.sh | 5 ++- ...04_5disabled_calculation_variable_multi.sh | 8 ++++ .../16_6exists_family.sh | 7 +++ .../20_9family_absolute.sh | 23 ++++++++++ ...ship-calculation-outside-follower-first.sh | 24 ++++++++++ ...rship-calculation-outside-follower-last.sh | 24 ++++++++++ ...leadership-calculation-outside-follower.sh | 24 ++++++++++ ...ership-calculation-outside-leader-first.sh | 21 +++++++++ ...dership-calculation-outside-leader-last.sh | 21 +++++++++ ..._9leadership-calculation-outside-leader.sh | 24 ++++++++++ .../00_6secret.sh | 10 +++++ ...00_9default_information_other_variable2.sh | 10 +++++ .../00_9extra_ouside.sh | 11 +++++ .../01_6string_multi.sh | 5 ++- .../04_5disabled_calculation_multi.sh | 17 +++++++ ...04_5disabled_calculation_variable_multi.sh | 9 ++++ .../16_6exists_family.sh | 8 ++++ ...ship-calculation-outside-follower-first.sh | 25 +++++++++++ ...rship-calculation-outside-follower-last.sh | 25 +++++++++++ ...leadership-calculation-outside-follower.sh | 25 +++++++++++ ...ership-calculation-outside-leader-first.sh | 22 +++++++++ ...dership-calculation-outside-leader-last.sh | 22 +++++++++ ..._9leadership-calculation-outside-leader.sh | 25 +++++++++++ .../60_6family_dynamic_sub_dynamic_empty2.sh | 45 +++++++++++++++++++ .../test_namespace_read_write/00_6secret.sh | 9 ++++ ...00_9default_information_other_variable2.sh | 9 ++++ .../00_9extra_ouside.sh | 10 +++++ .../01_6string_multi.sh | 2 +- .../04_5disabled_calculation_multi.sh | 10 +++++ ...04_5disabled_calculation_variable_multi.sh | 9 ++++ .../16_6exists_family.sh | 7 +++ ...ship-calculation-outside-follower-first.sh | 18 ++++++++ ...rship-calculation-outside-follower-last.sh | 18 ++++++++ ...leadership-calculation-outside-follower.sh | 19 ++++++++ ...ership-calculation-outside-leader-first.sh | 17 +++++++ ...dership-calculation-outside-leader-last.sh | 17 +++++++ ..._9leadership-calculation-outside-leader.sh | 19 ++++++++ .../60_6family_dynamic_sub_dynamic_empty2.sh | 14 ++++++ .../00_6secret.sh | 9 ++++ ...00_9default_information_other_variable2.sh | 9 ++++ .../00_9extra_ouside.sh | 10 +++++ .../01_6string_multi.sh | 5 ++- .../04_5disabled_calculation_multi.sh | 16 +++++++ ...04_5disabled_calculation_variable_multi.sh | 8 ++++ .../16_6exists_family.sh | 7 +++ ...ship-calculation-outside-follower-first.sh | 24 ++++++++++ ...rship-calculation-outside-follower-last.sh | 24 ++++++++++ ...leadership-calculation-outside-follower.sh | 24 ++++++++++ ...ership-calculation-outside-leader-first.sh | 21 +++++++++ ...dership-calculation-outside-leader-last.sh | 21 +++++++++ ..._9leadership-calculation-outside-leader.sh | 24 ++++++++++ .../60_6family_dynamic_sub_dynamic_empty2.sh | 44 ++++++++++++++++++ .../00_6secret.sh | 3 ++ ...00_9default_information_other_variable2.sh | 4 ++ .../00_9extra_ouside.sh | 10 +++++ .../04_5disabled_calculation_multi.sh | 4 ++ ...04_5disabled_calculation_variable_multi.sh | 3 ++ .../16_6exists_family.sh | 7 +++ ...ship-calculation-outside-follower-first.sh | 18 ++++++++ ...rship-calculation-outside-follower-last.sh | 18 ++++++++ ...leadership-calculation-outside-follower.sh | 19 ++++++++ ...ership-calculation-outside-leader-first.sh | 17 +++++++ ...dership-calculation-outside-leader-last.sh | 17 +++++++ ..._9leadership-calculation-outside-leader.sh | 19 ++++++++ .../60_6family_dynamic_sub_dynamic_empty2.sh | 14 ++++++ .../00_6secret.sh | 9 ++++ ...00_9default_information_other_variable2.sh | 9 ++++ .../00_9extra_ouside.sh | 10 +++++ .../01_6string_multi.sh | 2 +- .../04_5disabled_calculation_multi.sh | 10 +++++ ...04_5disabled_calculation_variable_multi.sh | 9 ++++ .../16_6exists_family.sh | 7 +++ ...ship-calculation-outside-follower-first.sh | 18 ++++++++ ...rship-calculation-outside-follower-last.sh | 18 ++++++++ ...leadership-calculation-outside-follower.sh | 19 ++++++++ ...ership-calculation-outside-leader-first.sh | 17 +++++++ ...dership-calculation-outside-leader-last.sh | 17 +++++++ ..._9leadership-calculation-outside-leader.sh | 19 ++++++++ .../60_6family_dynamic_sub_dynamic_empty2.sh | 14 ++++++ .../test_namespace_secrets/00_6secret.sh | 10 +++++ ...00_9default_information_other_variable2.sh | 10 +++++ .../00_9extra_ouside.sh | 11 +++++ .../01_6string_multi.sh | 5 ++- .../04_5disabled_calculation_multi.sh | 17 +++++++ ...04_5disabled_calculation_variable_multi.sh | 9 ++++ .../16_6exists_family.sh | 8 ++++ ...ship-calculation-outside-follower-first.sh | 25 +++++++++++ ...rship-calculation-outside-follower-last.sh | 25 +++++++++++ ...leadership-calculation-outside-follower.sh | 25 +++++++++++ ...ership-calculation-outside-leader-first.sh | 22 +++++++++ ...dership-calculation-outside-leader-last.sh | 22 +++++++++ ..._9leadership-calculation-outside-leader.sh | 25 +++++++++++ .../60_6family_dynamic_sub_dynamic_empty2.sh | 45 +++++++++++++++++++ tests/results/test_read_write/00_6secret.sh | 8 ++++ ...00_9default_information_other_variable2.sh | 8 ++++ .../test_read_write/01_6string_multi.sh | 2 +- ...04_5disabled_calculation_variable_multi.sh | 8 ++++ .../test_read_write/16_6exists_family.sh | 6 +++ .../test_read_write/20_9family_absolute.sh | 21 +++++++++ ...ship-calculation-outside-follower-first.sh | 17 +++++++ ...rship-calculation-outside-follower-last.sh | 17 +++++++ ...leadership-calculation-outside-follower.sh | 18 ++++++++ ...ership-calculation-outside-leader-first.sh | 16 +++++++ ...dership-calculation-outside-leader-last.sh | 16 +++++++ ..._9leadership-calculation-outside-leader.sh | 18 ++++++++ .../00_6secret.sh | 8 ++++ ...00_9default_information_other_variable2.sh | 8 ++++ .../01_6string_multi.sh | 5 ++- ...04_5disabled_calculation_variable_multi.sh | 7 +++ .../16_6exists_family.sh | 6 +++ .../20_9family_absolute.sh | 22 +++++++++ ...ship-calculation-outside-follower-first.sh | 23 ++++++++++ ...rship-calculation-outside-follower-last.sh | 23 ++++++++++ ...leadership-calculation-outside-follower.sh | 23 ++++++++++ ...ership-calculation-outside-leader-first.sh | 20 +++++++++ ...dership-calculation-outside-leader-last.sh | 20 +++++++++ ..._9leadership-calculation-outside-leader.sh | 23 ++++++++++ .../00_6secret.sh | 3 ++ ...00_9default_information_other_variable2.sh | 4 ++ ...04_5disabled_calculation_variable_multi.sh | 3 ++ .../16_6exists_family.sh | 6 +++ .../20_9family_absolute.sh | 7 +++ ...ship-calculation-outside-follower-first.sh | 17 +++++++ ...rship-calculation-outside-follower-last.sh | 17 +++++++ ...leadership-calculation-outside-follower.sh | 18 ++++++++ ...ership-calculation-outside-leader-first.sh | 16 +++++++ ...dership-calculation-outside-leader-last.sh | 16 +++++++ ..._9leadership-calculation-outside-leader.sh | 18 ++++++++ .../test_read_write_secrets/00_6secret.sh | 8 ++++ ...00_9default_information_other_variable2.sh | 8 ++++ .../01_6string_multi.sh | 2 +- ...04_5disabled_calculation_variable_multi.sh | 8 ++++ .../16_6exists_family.sh | 6 +++ .../20_9family_absolute.sh | 21 +++++++++ ...ship-calculation-outside-follower-first.sh | 17 +++++++ ...rship-calculation-outside-follower-last.sh | 17 +++++++ ...leadership-calculation-outside-follower.sh | 18 ++++++++ ...ership-calculation-outside-leader-first.sh | 16 +++++++ ...dership-calculation-outside-leader-last.sh | 16 +++++++ ..._9leadership-calculation-outside-leader.sh | 18 ++++++++ tests/results/test_secrets/00_6secret.sh | 9 ++++ ...00_9default_information_other_variable2.sh | 9 ++++ .../results/test_secrets/01_6string_multi.sh | 5 ++- ...04_5disabled_calculation_variable_multi.sh | 8 ++++ .../results/test_secrets/16_6exists_family.sh | 7 +++ .../test_secrets/20_9family_absolute.sh | 23 ++++++++++ ...ship-calculation-outside-follower-first.sh | 24 ++++++++++ ...rship-calculation-outside-follower-last.sh | 24 ++++++++++ ...leadership-calculation-outside-follower.sh | 24 ++++++++++ ...ership-calculation-outside-leader-first.sh | 21 +++++++++ ...dership-calculation-outside-leader-last.sh | 21 +++++++++ ..._9leadership-calculation-outside-leader.sh | 24 ++++++++++ tests/test_load.py | 2 +- 158 files changed, 2292 insertions(+), 17 deletions(-) create mode 100644 tests/results/test_mandatory_secrets/00_6secret.sh create mode 100644 tests/results/test_mandatory_secrets/00_9default_information_other_variable2.sh create mode 100644 tests/results/test_mandatory_secrets/04_5disabled_calculation_variable_multi.sh create mode 100644 tests/results/test_mandatory_secrets/16_6exists_family.sh create mode 100644 tests/results/test_mandatory_secrets/20_9family_absolute.sh create mode 100644 tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh create mode 100644 tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh create mode 100644 tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-follower.sh create mode 100644 tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh create mode 100644 tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh create mode 100644 tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-leader.sh create mode 100644 tests/results/test_namespace_mandatory_secrets/00_6secret.sh create mode 100644 tests/results/test_namespace_mandatory_secrets/00_9default_information_other_variable2.sh create mode 100644 tests/results/test_namespace_mandatory_secrets/00_9extra_ouside.sh create mode 100644 tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_multi.sh create mode 100644 tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_variable_multi.sh create mode 100644 tests/results/test_namespace_mandatory_secrets/16_6exists_family.sh create mode 100644 tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh create mode 100644 tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh create mode 100644 tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-follower.sh create mode 100644 tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh create mode 100644 tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh create mode 100644 tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-leader.sh create mode 100644 tests/results/test_namespace_mandatory_secrets/60_6family_dynamic_sub_dynamic_empty2.sh create mode 100644 tests/results/test_namespace_read_write/00_6secret.sh create mode 100644 tests/results/test_namespace_read_write/00_9default_information_other_variable2.sh create mode 100644 tests/results/test_namespace_read_write/00_9extra_ouside.sh create mode 100644 tests/results/test_namespace_read_write/04_5disabled_calculation_multi.sh create mode 100644 tests/results/test_namespace_read_write/04_5disabled_calculation_variable_multi.sh create mode 100644 tests/results/test_namespace_read_write/16_6exists_family.sh create mode 100644 tests/results/test_namespace_read_write/40_9leadership-calculation-outside-follower-first.sh create mode 100644 tests/results/test_namespace_read_write/40_9leadership-calculation-outside-follower-last.sh create mode 100644 tests/results/test_namespace_read_write/40_9leadership-calculation-outside-follower.sh create mode 100644 tests/results/test_namespace_read_write/40_9leadership-calculation-outside-leader-first.sh create mode 100644 tests/results/test_namespace_read_write/40_9leadership-calculation-outside-leader-last.sh create mode 100644 tests/results/test_namespace_read_write/40_9leadership-calculation-outside-leader.sh create mode 100644 tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic_empty2.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets/00_6secret.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets/00_9default_information_other_variable2.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets/00_9extra_ouside.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_multi.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_variable_multi.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets/16_6exists_family.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets/60_6family_dynamic_sub_dynamic_empty2.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets_errors/00_6secret.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets_errors/00_9default_information_other_variable2.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets_errors/00_9extra_ouside.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets_errors/04_5disabled_calculation_multi.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets_errors/04_5disabled_calculation_variable_multi.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets_errors/16_6exists_family.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-first.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-last.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-first.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-last.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader.sh create mode 100644 tests/results/test_namespace_read_write_mandatory_secrets_errors/60_6family_dynamic_sub_dynamic_empty2.sh create mode 100644 tests/results/test_namespace_read_write_secrets/00_6secret.sh create mode 100644 tests/results/test_namespace_read_write_secrets/00_9default_information_other_variable2.sh create mode 100644 tests/results/test_namespace_read_write_secrets/00_9extra_ouside.sh create mode 100644 tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_multi.sh create mode 100644 tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_variable_multi.sh create mode 100644 tests/results/test_namespace_read_write_secrets/16_6exists_family.sh create mode 100644 tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-follower-first.sh create mode 100644 tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-follower-last.sh create mode 100644 tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-follower.sh create mode 100644 tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-leader-first.sh create mode 100644 tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-leader-last.sh create mode 100644 tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-leader.sh create mode 100644 tests/results/test_namespace_read_write_secrets/60_6family_dynamic_sub_dynamic_empty2.sh create mode 100644 tests/results/test_namespace_secrets/00_6secret.sh create mode 100644 tests/results/test_namespace_secrets/00_9default_information_other_variable2.sh create mode 100644 tests/results/test_namespace_secrets/00_9extra_ouside.sh create mode 100644 tests/results/test_namespace_secrets/04_5disabled_calculation_multi.sh create mode 100644 tests/results/test_namespace_secrets/04_5disabled_calculation_variable_multi.sh create mode 100644 tests/results/test_namespace_secrets/16_6exists_family.sh create mode 100644 tests/results/test_namespace_secrets/40_9leadership-calculation-outside-follower-first.sh create mode 100644 tests/results/test_namespace_secrets/40_9leadership-calculation-outside-follower-last.sh create mode 100644 tests/results/test_namespace_secrets/40_9leadership-calculation-outside-follower.sh create mode 100644 tests/results/test_namespace_secrets/40_9leadership-calculation-outside-leader-first.sh create mode 100644 tests/results/test_namespace_secrets/40_9leadership-calculation-outside-leader-last.sh create mode 100644 tests/results/test_namespace_secrets/40_9leadership-calculation-outside-leader.sh create mode 100644 tests/results/test_namespace_secrets/60_6family_dynamic_sub_dynamic_empty2.sh create mode 100644 tests/results/test_read_write/00_6secret.sh create mode 100644 tests/results/test_read_write/00_9default_information_other_variable2.sh create mode 100644 tests/results/test_read_write/04_5disabled_calculation_variable_multi.sh create mode 100644 tests/results/test_read_write/16_6exists_family.sh create mode 100644 tests/results/test_read_write/20_9family_absolute.sh create mode 100644 tests/results/test_read_write/40_9leadership-calculation-outside-follower-first.sh create mode 100644 tests/results/test_read_write/40_9leadership-calculation-outside-follower-last.sh create mode 100644 tests/results/test_read_write/40_9leadership-calculation-outside-follower.sh create mode 100644 tests/results/test_read_write/40_9leadership-calculation-outside-leader-first.sh create mode 100644 tests/results/test_read_write/40_9leadership-calculation-outside-leader-last.sh create mode 100644 tests/results/test_read_write/40_9leadership-calculation-outside-leader.sh create mode 100644 tests/results/test_read_write_mandatory_secrets/00_6secret.sh create mode 100644 tests/results/test_read_write_mandatory_secrets/00_9default_information_other_variable2.sh create mode 100644 tests/results/test_read_write_mandatory_secrets/04_5disabled_calculation_variable_multi.sh create mode 100644 tests/results/test_read_write_mandatory_secrets/16_6exists_family.sh create mode 100644 tests/results/test_read_write_mandatory_secrets/20_9family_absolute.sh create mode 100644 tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh create mode 100644 tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh create mode 100644 tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower.sh create mode 100644 tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh create mode 100644 tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh create mode 100644 tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader.sh create mode 100644 tests/results/test_read_write_mandatory_secrets_errors/00_6secret.sh create mode 100644 tests/results/test_read_write_mandatory_secrets_errors/00_9default_information_other_variable2.sh create mode 100644 tests/results/test_read_write_mandatory_secrets_errors/04_5disabled_calculation_variable_multi.sh create mode 100644 tests/results/test_read_write_mandatory_secrets_errors/16_6exists_family.sh create mode 100644 tests/results/test_read_write_mandatory_secrets_errors/20_9family_absolute.sh create mode 100644 tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-first.sh create mode 100644 tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-last.sh create mode 100644 tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower.sh create mode 100644 tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-first.sh create mode 100644 tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-last.sh create mode 100644 tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader.sh create mode 100644 tests/results/test_read_write_secrets/00_6secret.sh create mode 100644 tests/results/test_read_write_secrets/00_9default_information_other_variable2.sh create mode 100644 tests/results/test_read_write_secrets/04_5disabled_calculation_variable_multi.sh create mode 100644 tests/results/test_read_write_secrets/16_6exists_family.sh create mode 100644 tests/results/test_read_write_secrets/20_9family_absolute.sh create mode 100644 tests/results/test_read_write_secrets/40_9leadership-calculation-outside-follower-first.sh create mode 100644 tests/results/test_read_write_secrets/40_9leadership-calculation-outside-follower-last.sh create mode 100644 tests/results/test_read_write_secrets/40_9leadership-calculation-outside-follower.sh create mode 100644 tests/results/test_read_write_secrets/40_9leadership-calculation-outside-leader-first.sh create mode 100644 tests/results/test_read_write_secrets/40_9leadership-calculation-outside-leader-last.sh create mode 100644 tests/results/test_read_write_secrets/40_9leadership-calculation-outside-leader.sh create mode 100644 tests/results/test_secrets/00_6secret.sh create mode 100644 tests/results/test_secrets/00_9default_information_other_variable2.sh create mode 100644 tests/results/test_secrets/04_5disabled_calculation_variable_multi.sh create mode 100644 tests/results/test_secrets/16_6exists_family.sh create mode 100644 tests/results/test_secrets/20_9family_absolute.sh create mode 100644 tests/results/test_secrets/40_9leadership-calculation-outside-follower-first.sh create mode 100644 tests/results/test_secrets/40_9leadership-calculation-outside-follower-last.sh create mode 100644 tests/results/test_secrets/40_9leadership-calculation-outside-follower.sh create mode 100644 tests/results/test_secrets/40_9leadership-calculation-outside-leader-first.sh create mode 100644 tests/results/test_secrets/40_9leadership-calculation-outside-leader-last.sh create mode 100644 tests/results/test_secrets/40_9leadership-calculation-outside-leader.sh diff --git a/src/rougail/output_console/__init__.py b/src/rougail/output_console/__init__.py index b1dfc7a..7767ca9 100644 --- a/src/rougail/output_console/__init__.py +++ b/src/rougail/output_console/__init__.py @@ -1,6 +1,6 @@ """ Silique (https://www.silique.fr) -Copyright (C) 2022-2024 +Copyright (C) 2022-2025 This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the @@ -124,13 +124,14 @@ class RougailOutputConsole: def run(self) -> str: with self.console.capture() as capture: - self.print() - return capture.get() + ret = self.print() + return ret, capture.get() def print(self) -> None: - self.exporter() + ret = self.exporter() for out in self.out: self.console.print(out) + return ret def parse_options( self, diff --git a/src/rougail/output_console/config.py b/src/rougail/output_console/config.py index f59a4d7..083851f 100644 --- a/src/rougail/output_console/config.py +++ b/src/rougail/output_console/config.py @@ -1,6 +1,6 @@ """ Silique (https://www.silique.fr) -Copyright (C) 2024 +Copyright (C) 2024-2025 This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the diff --git a/src/rougail/output_console/i18n.py b/src/rougail/output_console/i18n.py index 6f3b7d3..00af780 100644 --- a/src/rougail/output_console/i18n.py +++ b/src/rougail/output_console/i18n.py @@ -1,6 +1,6 @@ """Internationalisation utilities Silique (https://www.silique.fr) -Copyright (C) 2024 +Copyright (C) 2024-2025 This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the diff --git a/tests/results/test_mandatory_secrets/00_6secret.sh b/tests/results/test_mandatory_secrets/00_6secret.sh new file mode 100644 index 0000000..7bbfe9c --- /dev/null +++ b/tests/results/test_mandatory_secrets/00_6secret.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 secret1: ********** +┗━━ 📓 secret2: ********** (**********) diff --git a/tests/results/test_mandatory_secrets/00_9default_information_other_variable2.sh b/tests/results/test_mandatory_secrets/00_9default_information_other_variable2.sh new file mode 100644 index 0000000..745d9a2 --- /dev/null +++ b/tests/results/test_mandatory_secrets/00_9default_information_other_variable2.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 var1: string1 +┗━━ 📓 var2: string1 diff --git a/tests/results/test_mandatory_secrets/01_6string_multi.sh b/tests/results/test_mandatory_secrets/01_6string_multi.sh index 4e254cd..f812e5c 100644 --- a/tests/results/test_mandatory_secrets/01_6string_multi.sh +++ b/tests/results/test_mandatory_secrets/01_6string_multi.sh @@ -13,7 +13,10 @@ Variables: ┃ ┣━━ string1 ┃ ┣━━ string2 ┃ ┗━━ string3 -┣━━ 📓 var3: string1 +┣━━ 📓 var3 : +┃ ┣━━ string1 +┃ ┣━━ string2 +┃ ┗━━ string3 ┣━━ 📓 var4 : ┃ ┣━━ string1 (value) ┃ ┣━━ string2 diff --git a/tests/results/test_mandatory_secrets/04_5disabled_calculation_variable_multi.sh b/tests/results/test_mandatory_secrets/04_5disabled_calculation_variable_multi.sh new file mode 100644 index 0000000..a9481ef --- /dev/null +++ b/tests/results/test_mandatory_secrets/04_5disabled_calculation_variable_multi.sh @@ -0,0 +1,8 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📓 condition: true (false) diff --git a/tests/results/test_mandatory_secrets/16_6exists_family.sh b/tests/results/test_mandatory_secrets/16_6exists_family.sh new file mode 100644 index 0000000..d2701ec --- /dev/null +++ b/tests/results/test_mandatory_secrets/16_6exists_family.sh @@ -0,0 +1,7 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: diff --git a/tests/results/test_mandatory_secrets/20_9family_absolute.sh b/tests/results/test_mandatory_secrets/20_9family_absolute.sh new file mode 100644 index 0000000..401b68c --- /dev/null +++ b/tests/results/test_mandatory_secrets/20_9family_absolute.sh @@ -0,0 +1,23 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 var1: string1 +┣━━ 📂 family +┃ ┣━━ 📓 var2: string6 +┃ ┗━━ 📂 subfamily +┃  ┗━━ 📓 variable : +┃   ┣━━ string1 (string1) +┃   ┣━━ string2 (string6) +┃   ┗━━ string3 +┗━━ 📂 family2 + ┣━━ 📓 var2: string1 (string6) + ┣━━ 📓 var3: string5 (string4) + ┗━━ 📂 subfamily +  ┗━━ 📓 variable : +   ┣━━ string1 (string1) +   ┣━━ string2 (string6) +   ┗━━ string3 (string5) diff --git a/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh b/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh new file mode 100644 index 0000000..dca7f2b --- /dev/null +++ b/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh @@ -0,0 +1,24 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate : + ┣━━ string1 (string1) + ┣━━ string2 + ┗━━ string3 diff --git a/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh b/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh new file mode 100644 index 0000000..213eda8 --- /dev/null +++ b/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh @@ -0,0 +1,24 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate : + ┣━━ string1 (string3) + ┣━━ string2 + ┗━━ string3 diff --git a/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-follower.sh b/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-follower.sh new file mode 100644 index 0000000..e7b7023 --- /dev/null +++ b/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-follower.sh @@ -0,0 +1,24 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate : + ┣━━ string1 (string1) + ┣━━ string2 (string2) + ┗━━ string3 (string3) diff --git a/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh b/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh new file mode 100644 index 0000000..30b8cd8 --- /dev/null +++ b/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh @@ -0,0 +1,21 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate: string1 (string1) diff --git a/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh b/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh new file mode 100644 index 0000000..679f29f --- /dev/null +++ b/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh @@ -0,0 +1,21 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate: string1 (string3) diff --git a/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-leader.sh b/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-leader.sh new file mode 100644 index 0000000..e7b7023 --- /dev/null +++ b/tests/results/test_mandatory_secrets/40_9leadership-calculation-outside-leader.sh @@ -0,0 +1,24 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate : + ┣━━ string1 (string1) + ┣━━ string2 (string2) + ┗━━ string3 (string3) diff --git a/tests/results/test_namespace_mandatory_secrets/00_6secret.sh b/tests/results/test_namespace_mandatory_secrets/00_6secret.sh new file mode 100644 index 0000000..45e3287 --- /dev/null +++ b/tests/results/test_namespace_mandatory_secrets/00_6secret.sh @@ -0,0 +1,10 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 secret1: ********** + ┗━━ 📓 secret2: ********** (**********) diff --git a/tests/results/test_namespace_mandatory_secrets/00_9default_information_other_variable2.sh b/tests/results/test_namespace_mandatory_secrets/00_9default_information_other_variable2.sh new file mode 100644 index 0000000..874cc7e --- /dev/null +++ b/tests/results/test_namespace_mandatory_secrets/00_9default_information_other_variable2.sh @@ -0,0 +1,10 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 var1: string1 + ┗━━ 📓 var2: string1 diff --git a/tests/results/test_namespace_mandatory_secrets/00_9extra_ouside.sh b/tests/results/test_namespace_mandatory_secrets/00_9extra_ouside.sh new file mode 100644 index 0000000..149de1c --- /dev/null +++ b/tests/results/test_namespace_mandatory_secrets/00_9extra_ouside.sh @@ -0,0 +1,11 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 rougail +┃ ┗━━ 📓 variable: string1 (string1) +┗━━ 📂 extra + ┗━━ 📓 variable: string1 (value in extra) diff --git a/tests/results/test_namespace_mandatory_secrets/01_6string_multi.sh b/tests/results/test_namespace_mandatory_secrets/01_6string_multi.sh index 064cdbe..152914a 100644 --- a/tests/results/test_namespace_mandatory_secrets/01_6string_multi.sh +++ b/tests/results/test_namespace_mandatory_secrets/01_6string_multi.sh @@ -14,7 +14,10 @@ Variables:  ┃ ┣━━ string1  ┃ ┣━━ string2  ┃ ┗━━ string3 - ┣━━ 📓 var3: string1 + ┣━━ 📓 var3 : + ┃ ┣━━ string1 + ┃ ┣━━ string2 + ┃ ┗━━ string3  ┣━━ 📓 var4 :  ┃ ┣━━ string1 (value)  ┃ ┣━━ string2 diff --git a/tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_multi.sh b/tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_multi.sh new file mode 100644 index 0000000..828221e --- /dev/null +++ b/tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_multi.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 condition: string1 (no) + ┣━━ 📓 variable1 : + ┃ ┣━━ string1 + ┃ ┣━━ string2 + ┃ ┗━━ string3 + ┗━━ 📓 variable2 : +  ┣━━ string1 +  ┣━━ string2 +  ┗━━ string3 diff --git a/tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_variable_multi.sh b/tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_variable_multi.sh new file mode 100644 index 0000000..a174541 --- /dev/null +++ b/tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_variable_multi.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┗━━ 📓 condition: true (false) diff --git a/tests/results/test_namespace_mandatory_secrets/16_6exists_family.sh b/tests/results/test_namespace_mandatory_secrets/16_6exists_family.sh new file mode 100644 index 0000000..5efe8ae --- /dev/null +++ b/tests/results/test_namespace_mandatory_secrets/16_6exists_family.sh @@ -0,0 +1,8 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail diff --git a/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh b/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh new file mode 100644 index 0000000..29f5675 --- /dev/null +++ b/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh @@ -0,0 +1,25 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate : +  ┣━━ string1 (string1) +  ┣━━ string2 +  ┗━━ string3 diff --git a/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh b/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh new file mode 100644 index 0000000..6336a89 --- /dev/null +++ b/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh @@ -0,0 +1,25 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate : +  ┣━━ string1 (string3) +  ┣━━ string2 +  ┗━━ string3 diff --git a/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-follower.sh b/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-follower.sh new file mode 100644 index 0000000..9cf1b6f --- /dev/null +++ b/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-follower.sh @@ -0,0 +1,25 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate : +  ┣━━ string1 (string1) +  ┣━━ string2 (string2) +  ┗━━ string3 (string3) diff --git a/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh b/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh new file mode 100644 index 0000000..60d8a5c --- /dev/null +++ b/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh @@ -0,0 +1,22 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate: string1 (string1) diff --git a/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh b/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh new file mode 100644 index 0000000..8e1fe3a --- /dev/null +++ b/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh @@ -0,0 +1,22 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate: string1 (string3) diff --git a/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-leader.sh b/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-leader.sh new file mode 100644 index 0000000..9cf1b6f --- /dev/null +++ b/tests/results/test_namespace_mandatory_secrets/40_9leadership-calculation-outside-leader.sh @@ -0,0 +1,25 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate : +  ┣━━ string1 (string1) +  ┣━━ string2 (string2) +  ┗━━ string3 (string3) diff --git a/tests/results/test_namespace_mandatory_secrets/60_6family_dynamic_sub_dynamic_empty2.sh b/tests/results/test_namespace_mandatory_secrets/60_6family_dynamic_sub_dynamic_empty2.sh new file mode 100644 index 0000000..5579c67 --- /dev/null +++ b/tests/results/test_namespace_mandatory_secrets/60_6family_dynamic_sub_dynamic_empty2.sh @@ -0,0 +1,45 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 var : + ┃ ┣━━ val1 (val1) + ┃ ┗━━ val2 (val2) + ┣━━ 📂 dynval1 + ┃ ┣━━ 📓 var : + ┃ ┃ ┣━━ string1 + ┃ ┃ ┣━━ string2 + ┃ ┃ ┗━━ string3 + ┃ ┣━━ 📂 dyn_string1 + ┃ ┃ ┣━━ 📓 var: string1 (string1) + ┃ ┃ ┣━━ 📓 var_identifier: string1 (val1) + ┃ ┃ ┗━━ 📓 var_identifiers: string1 (val1-string1) + ┃ ┣━━ 📂 dyn_string2 + ┃ ┃ ┣━━ 📓 var: string1 (string2) + ┃ ┃ ┣━━ 📓 var_identifier: string1 (val1) + ┃ ┃ ┗━━ 📓 var_identifiers: string1 (val1-string2) + ┃ ┗━━ 📂 dyn_string3 + ┃  ┣━━ 📓 var: string1 (string3) + ┃  ┣━━ 📓 var_identifier: string1 (val1) + ┃  ┗━━ 📓 var_identifiers: string1 (val1-string3) + ┗━━ 📂 dynval2 +  ┣━━ 📓 var : +  ┃ ┣━━ string1 +  ┃ ┣━━ string2 +  ┃ ┗━━ string3 +  ┣━━ 📂 dyn_string1 +  ┃ ┣━━ 📓 var: string1 (string1) +  ┃ ┣━━ 📓 var_identifier: string1 (val2) +  ┃ ┗━━ 📓 var_identifiers: string1 (val2-string1) +  ┣━━ 📂 dyn_string2 +  ┃ ┣━━ 📓 var: string1 (string2) +  ┃ ┣━━ 📓 var_identifier: string1 (val2) +  ┃ ┗━━ 📓 var_identifiers: string1 (val2-string2) +  ┗━━ 📂 dyn_string3 +   ┣━━ 📓 var: string1 (string3) +   ┣━━ 📓 var_identifier: string1 (val2) +   ┗━━ 📓 var_identifiers: string1 (val2-string3) diff --git a/tests/results/test_namespace_read_write/00_6secret.sh b/tests/results/test_namespace_read_write/00_6secret.sh new file mode 100644 index 0000000..2f48061 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6secret.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 secret1: null + ┗━━ 📓 secret2: value diff --git a/tests/results/test_namespace_read_write/00_9default_information_other_variable2.sh b/tests/results/test_namespace_read_write/00_9default_information_other_variable2.sh new file mode 100644 index 0000000..cfb4b92 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9default_information_other_variable2.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 var1: null + ┗━━ 📓 var2: null diff --git a/tests/results/test_namespace_read_write/00_9extra_ouside.sh b/tests/results/test_namespace_read_write/00_9extra_ouside.sh new file mode 100644 index 0000000..e9cfe21 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9extra_ouside.sh @@ -0,0 +1,10 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 rougail +┃ ┗━━ 📓 variable: value in extra +┗━━ 📂 extra + ┗━━ 📓 variable: value in extra diff --git a/tests/results/test_namespace_read_write/01_6string_multi.sh b/tests/results/test_namespace_read_write/01_6string_multi.sh index 38ea1f5..2a89e41 100644 --- a/tests/results/test_namespace_read_write/01_6string_multi.sh +++ b/tests/results/test_namespace_read_write/01_6string_multi.sh @@ -7,7 +7,7 @@ Variables: ┗━━ 📂 rougail  ┣━━ 📓 var1 :  ┣━━ 📓 var2 : - ┣━━ 📓 var3: null + ┣━━ 📓 var3 :  ┣━━ 📓 var4 :  ┃ ┗━━ value  ┣━━ 📓 var5 : diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_multi.sh b/tests/results/test_namespace_read_write/04_5disabled_calculation_multi.sh new file mode 100644 index 0000000..937bace --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5disabled_calculation_multi.sh @@ -0,0 +1,10 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 condition: no + ┣━━ 📓 variable1 : + ┗━━ 📓 variable2 : diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_variable_multi.sh b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable_multi.sh new file mode 100644 index 0000000..a1b8e32 --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable_multi.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 condition: false + ┗━━ 📓 variable : diff --git a/tests/results/test_namespace_read_write/16_6exists_family.sh b/tests/results/test_namespace_read_write/16_6exists_family.sh new file mode 100644 index 0000000..2fc78e0 --- /dev/null +++ b/tests/results/test_namespace_read_write/16_6exists_family.sh @@ -0,0 +1,7 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail diff --git a/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-follower-first.sh b/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-follower-first.sh new file mode 100644 index 0000000..0682568 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-follower-first.sh @@ -0,0 +1,18 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate : +  ┗━━ val11 diff --git a/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-follower-last.sh b/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-follower-last.sh new file mode 100644 index 0000000..0682568 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-follower-last.sh @@ -0,0 +1,18 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate : +  ┗━━ val11 diff --git a/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-follower.sh b/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-follower.sh new file mode 100644 index 0000000..ecf2b13 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-follower.sh @@ -0,0 +1,19 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate : +  ┣━━ val11 +  ┗━━ val11 diff --git a/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-leader-first.sh b/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-leader-first.sh new file mode 100644 index 0000000..b92d47c --- /dev/null +++ b/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-leader-first.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate: value1 diff --git a/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-leader-last.sh b/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-leader-last.sh new file mode 100644 index 0000000..6240738 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-leader-last.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate: value2 diff --git a/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-leader.sh b/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-leader.sh new file mode 100644 index 0000000..fa2e19f --- /dev/null +++ b/tests/results/test_namespace_read_write/40_9leadership-calculation-outside-leader.sh @@ -0,0 +1,19 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate : +  ┣━━ value1 +  ┗━━ value2 diff --git a/tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic_empty2.sh b/tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic_empty2.sh new file mode 100644 index 0000000..46c6b61 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_6family_dynamic_sub_dynamic_empty2.sh @@ -0,0 +1,14 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 var : + ┃ ┣━━ val1 + ┃ ┗━━ val2 + ┣━━ 📂 dynval1 + ┃ ┗━━ 📓 var : + ┗━━ 📂 dynval2 +  ┗━━ 📓 var : diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/00_6secret.sh b/tests/results/test_namespace_read_write_mandatory_secrets/00_6secret.sh new file mode 100644 index 0000000..ef1b9fa --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets/00_6secret.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 secret1: ********** + ┗━━ 📓 secret2: ********** (**********) diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/00_9default_information_other_variable2.sh b/tests/results/test_namespace_read_write_mandatory_secrets/00_9default_information_other_variable2.sh new file mode 100644 index 0000000..cd39a39 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets/00_9default_information_other_variable2.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 var1: string1 + ┗━━ 📓 var2: string1 diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/00_9extra_ouside.sh b/tests/results/test_namespace_read_write_mandatory_secrets/00_9extra_ouside.sh new file mode 100644 index 0000000..c31dbdc --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets/00_9extra_ouside.sh @@ -0,0 +1,10 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 rougail +┃ ┗━━ 📓 variable: string1 (string1) +┗━━ 📂 extra + ┗━━ 📓 variable: string1 (value in extra) diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/01_6string_multi.sh b/tests/results/test_namespace_read_write_mandatory_secrets/01_6string_multi.sh index 1485037..adada66 100644 --- a/tests/results/test_namespace_read_write_mandatory_secrets/01_6string_multi.sh +++ b/tests/results/test_namespace_read_write_mandatory_secrets/01_6string_multi.sh @@ -13,7 +13,10 @@ Variables:  ┃ ┣━━ string1  ┃ ┣━━ string2  ┃ ┗━━ string3 - ┣━━ 📓 var3: string1 + ┣━━ 📓 var3 : + ┃ ┣━━ string1 + ┃ ┣━━ string2 + ┃ ┗━━ string3  ┣━━ 📓 var4 :  ┃ ┣━━ string1 (value)  ┃ ┣━━ string2 diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_multi.sh b/tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_multi.sh new file mode 100644 index 0000000..4c40459 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_multi.sh @@ -0,0 +1,16 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 condition: string1 (no) + ┣━━ 📓 variable1 : + ┃ ┣━━ string1 + ┃ ┣━━ string2 + ┃ ┗━━ string3 + ┗━━ 📓 variable2 : +  ┣━━ string1 +  ┣━━ string2 +  ┗━━ string3 diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_variable_multi.sh b/tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_variable_multi.sh new file mode 100644 index 0000000..68721df --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_variable_multi.sh @@ -0,0 +1,8 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┗━━ 📓 condition: true (false) diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/16_6exists_family.sh b/tests/results/test_namespace_read_write_mandatory_secrets/16_6exists_family.sh new file mode 100644 index 0000000..2fc78e0 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets/16_6exists_family.sh @@ -0,0 +1,7 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh b/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh new file mode 100644 index 0000000..2627c9f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh @@ -0,0 +1,24 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate : +  ┣━━ string1 (string1) +  ┣━━ string2 +  ┗━━ string3 diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh b/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh new file mode 100644 index 0000000..484bfa0 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh @@ -0,0 +1,24 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate : +  ┣━━ string1 (string3) +  ┣━━ string2 +  ┗━━ string3 diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower.sh b/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower.sh new file mode 100644 index 0000000..4dea42a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower.sh @@ -0,0 +1,24 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate : +  ┣━━ string1 (string1) +  ┣━━ string2 (string2) +  ┗━━ string3 (string3) diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh b/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh new file mode 100644 index 0000000..cf44ba7 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh @@ -0,0 +1,21 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate: string1 (string1) diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh b/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh new file mode 100644 index 0000000..47137a1 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh @@ -0,0 +1,21 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate: string1 (string3) diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader.sh b/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader.sh new file mode 100644 index 0000000..4dea42a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader.sh @@ -0,0 +1,24 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate : +  ┣━━ string1 (string1) +  ┣━━ string2 (string2) +  ┗━━ string3 (string3) diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/60_6family_dynamic_sub_dynamic_empty2.sh b/tests/results/test_namespace_read_write_mandatory_secrets/60_6family_dynamic_sub_dynamic_empty2.sh new file mode 100644 index 0000000..33d99ab --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets/60_6family_dynamic_sub_dynamic_empty2.sh @@ -0,0 +1,44 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 var : + ┃ ┣━━ val1 (val1) + ┃ ┗━━ val2 (val2) + ┣━━ 📂 dynval1 + ┃ ┣━━ 📓 var : + ┃ ┃ ┣━━ string1 + ┃ ┃ ┣━━ string2 + ┃ ┃ ┗━━ string3 + ┃ ┣━━ 📂 dyn_string1 + ┃ ┃ ┣━━ 📓 var: string1 (string1) + ┃ ┃ ┣━━ 📓 var_identifier: string1 (val1) + ┃ ┃ ┗━━ 📓 var_identifiers: string1 (val1-string1) + ┃ ┣━━ 📂 dyn_string2 + ┃ ┃ ┣━━ 📓 var: string1 (string2) + ┃ ┃ ┣━━ 📓 var_identifier: string1 (val1) + ┃ ┃ ┗━━ 📓 var_identifiers: string1 (val1-string2) + ┃ ┗━━ 📂 dyn_string3 + ┃  ┣━━ 📓 var: string1 (string3) + ┃  ┣━━ 📓 var_identifier: string1 (val1) + ┃  ┗━━ 📓 var_identifiers: string1 (val1-string3) + ┗━━ 📂 dynval2 +  ┣━━ 📓 var : +  ┃ ┣━━ string1 +  ┃ ┣━━ string2 +  ┃ ┗━━ string3 +  ┣━━ 📂 dyn_string1 +  ┃ ┣━━ 📓 var: string1 (string1) +  ┃ ┣━━ 📓 var_identifier: string1 (val2) +  ┃ ┗━━ 📓 var_identifiers: string1 (val2-string1) +  ┣━━ 📂 dyn_string2 +  ┃ ┣━━ 📓 var: string1 (string2) +  ┃ ┣━━ 📓 var_identifier: string1 (val2) +  ┃ ┗━━ 📓 var_identifiers: string1 (val2-string2) +  ┗━━ 📂 dyn_string3 +   ┣━━ 📓 var: string1 (string3) +   ┣━━ 📓 var_identifier: string1 (val2) +   ┗━━ 📓 var_identifiers: string1 (val2-string3) diff --git a/tests/results/test_namespace_read_write_mandatory_secrets_errors/00_6secret.sh b/tests/results/test_namespace_read_write_mandatory_secrets_errors/00_6secret.sh new file mode 100644 index 0000000..9c7bbef --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets_errors/00_6secret.sh @@ -0,0 +1,3 @@ +🛑 ERRORS +┣━━ The following variables are mandatory but have no value: +┗━━  - rougail.secret1 (the first variable) diff --git a/tests/results/test_namespace_read_write_mandatory_secrets_errors/00_9default_information_other_variable2.sh b/tests/results/test_namespace_read_write_mandatory_secrets_errors/00_9default_information_other_variable2.sh new file mode 100644 index 0000000..bbb8431 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets_errors/00_9default_information_other_variable2.sh @@ -0,0 +1,4 @@ +🛑 ERRORS +┣━━ The following variables are mandatory but have no value: +┣━━  - rougail.var1 (a first variable) +┗━━  - rougail.var2 (a second variable) diff --git a/tests/results/test_namespace_read_write_mandatory_secrets_errors/00_9extra_ouside.sh b/tests/results/test_namespace_read_write_mandatory_secrets_errors/00_9extra_ouside.sh new file mode 100644 index 0000000..e9cfe21 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets_errors/00_9extra_ouside.sh @@ -0,0 +1,10 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 rougail +┃ ┗━━ 📓 variable: value in extra +┗━━ 📂 extra + ┗━━ 📓 variable: value in extra diff --git a/tests/results/test_namespace_read_write_mandatory_secrets_errors/04_5disabled_calculation_multi.sh b/tests/results/test_namespace_read_write_mandatory_secrets_errors/04_5disabled_calculation_multi.sh new file mode 100644 index 0000000..afb092f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets_errors/04_5disabled_calculation_multi.sh @@ -0,0 +1,4 @@ +🛑 ERRORS +┣━━ The following variables are mandatory but have no value: +┣━━  - rougail.variable1 (a first variable) +┗━━  - rougail.variable2 (a second variable) diff --git a/tests/results/test_namespace_read_write_mandatory_secrets_errors/04_5disabled_calculation_variable_multi.sh b/tests/results/test_namespace_read_write_mandatory_secrets_errors/04_5disabled_calculation_variable_multi.sh new file mode 100644 index 0000000..feffabb --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets_errors/04_5disabled_calculation_variable_multi.sh @@ -0,0 +1,3 @@ +🛑 ERRORS +┣━━ The following variables are mandatory but have no value: +┗━━  - rougail.variable (a variable) diff --git a/tests/results/test_namespace_read_write_mandatory_secrets_errors/16_6exists_family.sh b/tests/results/test_namespace_read_write_mandatory_secrets_errors/16_6exists_family.sh new file mode 100644 index 0000000..2fc78e0 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets_errors/16_6exists_family.sh @@ -0,0 +1,7 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail diff --git a/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-first.sh b/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-first.sh new file mode 100644 index 0000000..0682568 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-first.sh @@ -0,0 +1,18 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate : +  ┗━━ val11 diff --git a/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-last.sh b/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-last.sh new file mode 100644 index 0000000..0682568 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-last.sh @@ -0,0 +1,18 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate : +  ┗━━ val11 diff --git a/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower.sh b/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower.sh new file mode 100644 index 0000000..ecf2b13 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower.sh @@ -0,0 +1,19 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate : +  ┣━━ val11 +  ┗━━ val11 diff --git a/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-first.sh b/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-first.sh new file mode 100644 index 0000000..b92d47c --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-first.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate: value1 diff --git a/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-last.sh b/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-last.sh new file mode 100644 index 0000000..6240738 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-last.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate: value2 diff --git a/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader.sh b/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader.sh new file mode 100644 index 0000000..fa2e19f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader.sh @@ -0,0 +1,19 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate : +  ┣━━ value1 +  ┗━━ value2 diff --git a/tests/results/test_namespace_read_write_mandatory_secrets_errors/60_6family_dynamic_sub_dynamic_empty2.sh b/tests/results/test_namespace_read_write_mandatory_secrets_errors/60_6family_dynamic_sub_dynamic_empty2.sh new file mode 100644 index 0000000..46c6b61 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_secrets_errors/60_6family_dynamic_sub_dynamic_empty2.sh @@ -0,0 +1,14 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 var : + ┃ ┣━━ val1 + ┃ ┗━━ val2 + ┣━━ 📂 dynval1 + ┃ ┗━━ 📓 var : + ┗━━ 📂 dynval2 +  ┗━━ 📓 var : diff --git a/tests/results/test_namespace_read_write_secrets/00_6secret.sh b/tests/results/test_namespace_read_write_secrets/00_6secret.sh new file mode 100644 index 0000000..b92cd1e --- /dev/null +++ b/tests/results/test_namespace_read_write_secrets/00_6secret.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 secret1: ********** + ┗━━ 📓 secret2: ********** diff --git a/tests/results/test_namespace_read_write_secrets/00_9default_information_other_variable2.sh b/tests/results/test_namespace_read_write_secrets/00_9default_information_other_variable2.sh new file mode 100644 index 0000000..cfb4b92 --- /dev/null +++ b/tests/results/test_namespace_read_write_secrets/00_9default_information_other_variable2.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 var1: null + ┗━━ 📓 var2: null diff --git a/tests/results/test_namespace_read_write_secrets/00_9extra_ouside.sh b/tests/results/test_namespace_read_write_secrets/00_9extra_ouside.sh new file mode 100644 index 0000000..e9cfe21 --- /dev/null +++ b/tests/results/test_namespace_read_write_secrets/00_9extra_ouside.sh @@ -0,0 +1,10 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 rougail +┃ ┗━━ 📓 variable: value in extra +┗━━ 📂 extra + ┗━━ 📓 variable: value in extra diff --git a/tests/results/test_namespace_read_write_secrets/01_6string_multi.sh b/tests/results/test_namespace_read_write_secrets/01_6string_multi.sh index 38ea1f5..2a89e41 100644 --- a/tests/results/test_namespace_read_write_secrets/01_6string_multi.sh +++ b/tests/results/test_namespace_read_write_secrets/01_6string_multi.sh @@ -7,7 +7,7 @@ Variables: ┗━━ 📂 rougail  ┣━━ 📓 var1 :  ┣━━ 📓 var2 : - ┣━━ 📓 var3: null + ┣━━ 📓 var3 :  ┣━━ 📓 var4 :  ┃ ┗━━ value  ┣━━ 📓 var5 : diff --git a/tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_multi.sh b/tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_multi.sh new file mode 100644 index 0000000..937bace --- /dev/null +++ b/tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_multi.sh @@ -0,0 +1,10 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 condition: no + ┣━━ 📓 variable1 : + ┗━━ 📓 variable2 : diff --git a/tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_variable_multi.sh b/tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_variable_multi.sh new file mode 100644 index 0000000..a1b8e32 --- /dev/null +++ b/tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_variable_multi.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 condition: false + ┗━━ 📓 variable : diff --git a/tests/results/test_namespace_read_write_secrets/16_6exists_family.sh b/tests/results/test_namespace_read_write_secrets/16_6exists_family.sh new file mode 100644 index 0000000..2fc78e0 --- /dev/null +++ b/tests/results/test_namespace_read_write_secrets/16_6exists_family.sh @@ -0,0 +1,7 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail diff --git a/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-follower-first.sh b/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-follower-first.sh new file mode 100644 index 0000000..0682568 --- /dev/null +++ b/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-follower-first.sh @@ -0,0 +1,18 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate : +  ┗━━ val11 diff --git a/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-follower-last.sh b/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-follower-last.sh new file mode 100644 index 0000000..0682568 --- /dev/null +++ b/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-follower-last.sh @@ -0,0 +1,18 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate : +  ┗━━ val11 diff --git a/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-follower.sh b/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-follower.sh new file mode 100644 index 0000000..ecf2b13 --- /dev/null +++ b/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-follower.sh @@ -0,0 +1,19 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate : +  ┣━━ val11 +  ┗━━ val11 diff --git a/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-leader-first.sh b/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-leader-first.sh new file mode 100644 index 0000000..b92d47c --- /dev/null +++ b/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-leader-first.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate: value1 diff --git a/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-leader-last.sh b/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-leader-last.sh new file mode 100644 index 0000000..6240738 --- /dev/null +++ b/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-leader-last.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate: value2 diff --git a/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-leader.sh b/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-leader.sh new file mode 100644 index 0000000..fa2e19f --- /dev/null +++ b/tests/results/test_namespace_read_write_secrets/40_9leadership-calculation-outside-leader.sh @@ -0,0 +1,19 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: value1 + ┃ ┃ ┣━━ 📓 follower1: val11 + ┃ ┃ ┗━━ 📓 follower2: val21 + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: value2 + ┃  ┣━━ 📓 follower1: val11 + ┃  ┗━━ 📓 follower2: val21 + ┗━━ 📓 calculate : +  ┣━━ value1 +  ┗━━ value2 diff --git a/tests/results/test_namespace_read_write_secrets/60_6family_dynamic_sub_dynamic_empty2.sh b/tests/results/test_namespace_read_write_secrets/60_6family_dynamic_sub_dynamic_empty2.sh new file mode 100644 index 0000000..46c6b61 --- /dev/null +++ b/tests/results/test_namespace_read_write_secrets/60_6family_dynamic_sub_dynamic_empty2.sh @@ -0,0 +1,14 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 var : + ┃ ┣━━ val1 + ┃ ┗━━ val2 + ┣━━ 📂 dynval1 + ┃ ┗━━ 📓 var : + ┗━━ 📂 dynval2 +  ┗━━ 📓 var : diff --git a/tests/results/test_namespace_secrets/00_6secret.sh b/tests/results/test_namespace_secrets/00_6secret.sh new file mode 100644 index 0000000..45e3287 --- /dev/null +++ b/tests/results/test_namespace_secrets/00_6secret.sh @@ -0,0 +1,10 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 secret1: ********** + ┗━━ 📓 secret2: ********** (**********) diff --git a/tests/results/test_namespace_secrets/00_9default_information_other_variable2.sh b/tests/results/test_namespace_secrets/00_9default_information_other_variable2.sh new file mode 100644 index 0000000..874cc7e --- /dev/null +++ b/tests/results/test_namespace_secrets/00_9default_information_other_variable2.sh @@ -0,0 +1,10 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 var1: string1 + ┗━━ 📓 var2: string1 diff --git a/tests/results/test_namespace_secrets/00_9extra_ouside.sh b/tests/results/test_namespace_secrets/00_9extra_ouside.sh new file mode 100644 index 0000000..149de1c --- /dev/null +++ b/tests/results/test_namespace_secrets/00_9extra_ouside.sh @@ -0,0 +1,11 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 rougail +┃ ┗━━ 📓 variable: string1 (string1) +┗━━ 📂 extra + ┗━━ 📓 variable: string1 (value in extra) diff --git a/tests/results/test_namespace_secrets/01_6string_multi.sh b/tests/results/test_namespace_secrets/01_6string_multi.sh index 064cdbe..152914a 100644 --- a/tests/results/test_namespace_secrets/01_6string_multi.sh +++ b/tests/results/test_namespace_secrets/01_6string_multi.sh @@ -14,7 +14,10 @@ Variables:  ┃ ┣━━ string1  ┃ ┣━━ string2  ┃ ┗━━ string3 - ┣━━ 📓 var3: string1 + ┣━━ 📓 var3 : + ┃ ┣━━ string1 + ┃ ┣━━ string2 + ┃ ┗━━ string3  ┣━━ 📓 var4 :  ┃ ┣━━ string1 (value)  ┃ ┣━━ string2 diff --git a/tests/results/test_namespace_secrets/04_5disabled_calculation_multi.sh b/tests/results/test_namespace_secrets/04_5disabled_calculation_multi.sh new file mode 100644 index 0000000..828221e --- /dev/null +++ b/tests/results/test_namespace_secrets/04_5disabled_calculation_multi.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 condition: string1 (no) + ┣━━ 📓 variable1 : + ┃ ┣━━ string1 + ┃ ┣━━ string2 + ┃ ┗━━ string3 + ┗━━ 📓 variable2 : +  ┣━━ string1 +  ┣━━ string2 +  ┗━━ string3 diff --git a/tests/results/test_namespace_secrets/04_5disabled_calculation_variable_multi.sh b/tests/results/test_namespace_secrets/04_5disabled_calculation_variable_multi.sh new file mode 100644 index 0000000..a174541 --- /dev/null +++ b/tests/results/test_namespace_secrets/04_5disabled_calculation_variable_multi.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┗━━ 📓 condition: true (false) diff --git a/tests/results/test_namespace_secrets/16_6exists_family.sh b/tests/results/test_namespace_secrets/16_6exists_family.sh new file mode 100644 index 0000000..5efe8ae --- /dev/null +++ b/tests/results/test_namespace_secrets/16_6exists_family.sh @@ -0,0 +1,8 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail diff --git a/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-follower-first.sh b/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-follower-first.sh new file mode 100644 index 0000000..29f5675 --- /dev/null +++ b/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-follower-first.sh @@ -0,0 +1,25 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate : +  ┣━━ string1 (string1) +  ┣━━ string2 +  ┗━━ string3 diff --git a/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-follower-last.sh b/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-follower-last.sh new file mode 100644 index 0000000..6336a89 --- /dev/null +++ b/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-follower-last.sh @@ -0,0 +1,25 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate : +  ┣━━ string1 (string3) +  ┣━━ string2 +  ┗━━ string3 diff --git a/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-follower.sh b/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-follower.sh new file mode 100644 index 0000000..9cf1b6f --- /dev/null +++ b/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-follower.sh @@ -0,0 +1,25 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate : +  ┣━━ string1 (string1) +  ┣━━ string2 (string2) +  ┗━━ string3 (string3) diff --git a/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-leader-first.sh b/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-leader-first.sh new file mode 100644 index 0000000..60d8a5c --- /dev/null +++ b/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-leader-first.sh @@ -0,0 +1,22 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate: string1 (string1) diff --git a/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-leader-last.sh b/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-leader-last.sh new file mode 100644 index 0000000..8e1fe3a --- /dev/null +++ b/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-leader-last.sh @@ -0,0 +1,22 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate: string1 (string3) diff --git a/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-leader.sh b/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-leader.sh new file mode 100644 index 0000000..9cf1b6f --- /dev/null +++ b/tests/results/test_namespace_secrets/40_9leadership-calculation-outside-leader.sh @@ -0,0 +1,25 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📂 leader + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string1 (value1) + ┃ ┃ ┣━━ 📓 follower1: string1 (val11) + ┃ ┃ ┗━━ 📓 follower2: string1 (val21) + ┃ ┣━━ 📂 leader + ┃ ┃ ┣━━ 📓 leader: string2 (value2) + ┃ ┃ ┣━━ 📓 follower1: string2 (val11) + ┃ ┃ ┗━━ 📓 follower2: string2 (val21) + ┃ ┗━━ 📂 leader + ┃  ┣━━ 📓 leader: string3 + ┃  ┣━━ 📓 follower1: string3 (val11) + ┃  ┗━━ 📓 follower2: string3 (val21) + ┗━━ 📓 calculate : +  ┣━━ string1 (string1) +  ┣━━ string2 (string2) +  ┗━━ string3 (string3) diff --git a/tests/results/test_namespace_secrets/60_6family_dynamic_sub_dynamic_empty2.sh b/tests/results/test_namespace_secrets/60_6family_dynamic_sub_dynamic_empty2.sh new file mode 100644 index 0000000..5579c67 --- /dev/null +++ b/tests/results/test_namespace_secrets/60_6family_dynamic_sub_dynamic_empty2.sh @@ -0,0 +1,45 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📂 rougail + ┣━━ 📓 var : + ┃ ┣━━ val1 (val1) + ┃ ┗━━ val2 (val2) + ┣━━ 📂 dynval1 + ┃ ┣━━ 📓 var : + ┃ ┃ ┣━━ string1 + ┃ ┃ ┣━━ string2 + ┃ ┃ ┗━━ string3 + ┃ ┣━━ 📂 dyn_string1 + ┃ ┃ ┣━━ 📓 var: string1 (string1) + ┃ ┃ ┣━━ 📓 var_identifier: string1 (val1) + ┃ ┃ ┗━━ 📓 var_identifiers: string1 (val1-string1) + ┃ ┣━━ 📂 dyn_string2 + ┃ ┃ ┣━━ 📓 var: string1 (string2) + ┃ ┃ ┣━━ 📓 var_identifier: string1 (val1) + ┃ ┃ ┗━━ 📓 var_identifiers: string1 (val1-string2) + ┃ ┗━━ 📂 dyn_string3 + ┃  ┣━━ 📓 var: string1 (string3) + ┃  ┣━━ 📓 var_identifier: string1 (val1) + ┃  ┗━━ 📓 var_identifiers: string1 (val1-string3) + ┗━━ 📂 dynval2 +  ┣━━ 📓 var : +  ┃ ┣━━ string1 +  ┃ ┣━━ string2 +  ┃ ┗━━ string3 +  ┣━━ 📂 dyn_string1 +  ┃ ┣━━ 📓 var: string1 (string1) +  ┃ ┣━━ 📓 var_identifier: string1 (val2) +  ┃ ┗━━ 📓 var_identifiers: string1 (val2-string1) +  ┣━━ 📂 dyn_string2 +  ┃ ┣━━ 📓 var: string1 (string2) +  ┃ ┣━━ 📓 var_identifier: string1 (val2) +  ┃ ┗━━ 📓 var_identifiers: string1 (val2-string2) +  ┗━━ 📂 dyn_string3 +   ┣━━ 📓 var: string1 (string3) +   ┣━━ 📓 var_identifier: string1 (val2) +   ┗━━ 📓 var_identifiers: string1 (val2-string3) diff --git a/tests/results/test_read_write/00_6secret.sh b/tests/results/test_read_write/00_6secret.sh new file mode 100644 index 0000000..67a9dc4 --- /dev/null +++ b/tests/results/test_read_write/00_6secret.sh @@ -0,0 +1,8 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 secret1: null +┗━━ 📓 secret2: value diff --git a/tests/results/test_read_write/00_9default_information_other_variable2.sh b/tests/results/test_read_write/00_9default_information_other_variable2.sh new file mode 100644 index 0000000..0ee4247 --- /dev/null +++ b/tests/results/test_read_write/00_9default_information_other_variable2.sh @@ -0,0 +1,8 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 var1: null +┗━━ 📓 var2: null diff --git a/tests/results/test_read_write/01_6string_multi.sh b/tests/results/test_read_write/01_6string_multi.sh index b318db8..957bdb6 100644 --- a/tests/results/test_read_write/01_6string_multi.sh +++ b/tests/results/test_read_write/01_6string_multi.sh @@ -6,7 +6,7 @@ Variables: ┣━━ 📓 var1 : ┣━━ 📓 var2 : -┣━━ 📓 var3: null +┣━━ 📓 var3 : ┣━━ 📓 var4 : ┃ ┗━━ value ┣━━ 📓 var5 : diff --git a/tests/results/test_read_write/04_5disabled_calculation_variable_multi.sh b/tests/results/test_read_write/04_5disabled_calculation_variable_multi.sh new file mode 100644 index 0000000..eb9f637 --- /dev/null +++ b/tests/results/test_read_write/04_5disabled_calculation_variable_multi.sh @@ -0,0 +1,8 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 condition: false +┗━━ 📓 variable : diff --git a/tests/results/test_read_write/16_6exists_family.sh b/tests/results/test_read_write/16_6exists_family.sh new file mode 100644 index 0000000..fa31cd7 --- /dev/null +++ b/tests/results/test_read_write/16_6exists_family.sh @@ -0,0 +1,6 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: diff --git a/tests/results/test_read_write/20_9family_absolute.sh b/tests/results/test_read_write/20_9family_absolute.sh new file mode 100644 index 0000000..de0526b --- /dev/null +++ b/tests/results/test_read_write/20_9family_absolute.sh @@ -0,0 +1,21 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 var1: null +┣━━ 📂 family +┃ ┣━━ 📓 var2: null +┃ ┗━━ 📂 subfamily +┃  ┗━━ 📓 variable : +┃   ┣━━ null +┃   ┗━━ null +┗━━ 📂 family2 + ┣━━ 📓 var2: null + ┣━━ 📓 var3: string4 + ┗━━ 📂 subfamily +  ┗━━ 📓 variable : +   ┣━━ null +   ┣━━ null +   ┗━━ string4 diff --git a/tests/results/test_read_write/40_9leadership-calculation-outside-follower-first.sh b/tests/results/test_read_write/40_9leadership-calculation-outside-follower-first.sh new file mode 100644 index 0000000..5b1d170 --- /dev/null +++ b/tests/results/test_read_write/40_9leadership-calculation-outside-follower-first.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate : + ┗━━ val11 diff --git a/tests/results/test_read_write/40_9leadership-calculation-outside-follower-last.sh b/tests/results/test_read_write/40_9leadership-calculation-outside-follower-last.sh new file mode 100644 index 0000000..5b1d170 --- /dev/null +++ b/tests/results/test_read_write/40_9leadership-calculation-outside-follower-last.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate : + ┗━━ val11 diff --git a/tests/results/test_read_write/40_9leadership-calculation-outside-follower.sh b/tests/results/test_read_write/40_9leadership-calculation-outside-follower.sh new file mode 100644 index 0000000..421a30f --- /dev/null +++ b/tests/results/test_read_write/40_9leadership-calculation-outside-follower.sh @@ -0,0 +1,18 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate : + ┣━━ val11 + ┗━━ val11 diff --git a/tests/results/test_read_write/40_9leadership-calculation-outside-leader-first.sh b/tests/results/test_read_write/40_9leadership-calculation-outside-leader-first.sh new file mode 100644 index 0000000..18c831d --- /dev/null +++ b/tests/results/test_read_write/40_9leadership-calculation-outside-leader-first.sh @@ -0,0 +1,16 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate: value1 diff --git a/tests/results/test_read_write/40_9leadership-calculation-outside-leader-last.sh b/tests/results/test_read_write/40_9leadership-calculation-outside-leader-last.sh new file mode 100644 index 0000000..1977670 --- /dev/null +++ b/tests/results/test_read_write/40_9leadership-calculation-outside-leader-last.sh @@ -0,0 +1,16 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate: value2 diff --git a/tests/results/test_read_write/40_9leadership-calculation-outside-leader.sh b/tests/results/test_read_write/40_9leadership-calculation-outside-leader.sh new file mode 100644 index 0000000..070a162 --- /dev/null +++ b/tests/results/test_read_write/40_9leadership-calculation-outside-leader.sh @@ -0,0 +1,18 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate : + ┣━━ value1 + ┗━━ value2 diff --git a/tests/results/test_read_write_mandatory_secrets/00_6secret.sh b/tests/results/test_read_write_mandatory_secrets/00_6secret.sh new file mode 100644 index 0000000..67a9d81 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets/00_6secret.sh @@ -0,0 +1,8 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 secret1: ********** +┗━━ 📓 secret2: ********** (**********) diff --git a/tests/results/test_read_write_mandatory_secrets/00_9default_information_other_variable2.sh b/tests/results/test_read_write_mandatory_secrets/00_9default_information_other_variable2.sh new file mode 100644 index 0000000..a8425a6 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets/00_9default_information_other_variable2.sh @@ -0,0 +1,8 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 var1: string1 +┗━━ 📓 var2: string1 diff --git a/tests/results/test_read_write_mandatory_secrets/01_6string_multi.sh b/tests/results/test_read_write_mandatory_secrets/01_6string_multi.sh index 1a43244..ffa7ca0 100644 --- a/tests/results/test_read_write_mandatory_secrets/01_6string_multi.sh +++ b/tests/results/test_read_write_mandatory_secrets/01_6string_multi.sh @@ -12,7 +12,10 @@ Variables: ┃ ┣━━ string1 ┃ ┣━━ string2 ┃ ┗━━ string3 -┣━━ 📓 var3: string1 +┣━━ 📓 var3 : +┃ ┣━━ string1 +┃ ┣━━ string2 +┃ ┗━━ string3 ┣━━ 📓 var4 : ┃ ┣━━ string1 (value) ┃ ┣━━ string2 diff --git a/tests/results/test_read_write_mandatory_secrets/04_5disabled_calculation_variable_multi.sh b/tests/results/test_read_write_mandatory_secrets/04_5disabled_calculation_variable_multi.sh new file mode 100644 index 0000000..87e6b02 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets/04_5disabled_calculation_variable_multi.sh @@ -0,0 +1,7 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📓 condition: true (false) diff --git a/tests/results/test_read_write_mandatory_secrets/16_6exists_family.sh b/tests/results/test_read_write_mandatory_secrets/16_6exists_family.sh new file mode 100644 index 0000000..fa31cd7 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets/16_6exists_family.sh @@ -0,0 +1,6 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: diff --git a/tests/results/test_read_write_mandatory_secrets/20_9family_absolute.sh b/tests/results/test_read_write_mandatory_secrets/20_9family_absolute.sh new file mode 100644 index 0000000..4aa2491 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets/20_9family_absolute.sh @@ -0,0 +1,22 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 var1: string1 +┣━━ 📂 family +┃ ┣━━ 📓 var2: string6 +┃ ┗━━ 📂 subfamily +┃  ┗━━ 📓 variable : +┃   ┣━━ string1 (string1) +┃   ┣━━ string2 (string6) +┃   ┗━━ string3 +┗━━ 📂 family2 + ┣━━ 📓 var2: string1 (string6) + ┣━━ 📓 var3: string5 (string4) + ┗━━ 📂 subfamily +  ┗━━ 📓 variable : +   ┣━━ string1 (string1) +   ┣━━ string2 (string6) +   ┗━━ string3 (string5) diff --git a/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh b/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh new file mode 100644 index 0000000..fb7107f --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-first.sh @@ -0,0 +1,23 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate : + ┣━━ string1 (string1) + ┣━━ string2 + ┗━━ string3 diff --git a/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh b/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh new file mode 100644 index 0000000..051c456 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower-last.sh @@ -0,0 +1,23 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate : + ┣━━ string1 (string3) + ┣━━ string2 + ┗━━ string3 diff --git a/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower.sh b/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower.sh new file mode 100644 index 0000000..e044ebf --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-follower.sh @@ -0,0 +1,23 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate : + ┣━━ string1 (string1) + ┣━━ string2 (string2) + ┗━━ string3 (string3) diff --git a/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh b/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh new file mode 100644 index 0000000..3f5f9a6 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-first.sh @@ -0,0 +1,20 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate: string1 (string1) diff --git a/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh b/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh new file mode 100644 index 0000000..a92adea --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader-last.sh @@ -0,0 +1,20 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate: string1 (string3) diff --git a/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader.sh b/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader.sh new file mode 100644 index 0000000..e044ebf --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets/40_9leadership-calculation-outside-leader.sh @@ -0,0 +1,23 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate : + ┣━━ string1 (string1) + ┣━━ string2 (string2) + ┗━━ string3 (string3) diff --git a/tests/results/test_read_write_mandatory_secrets_errors/00_6secret.sh b/tests/results/test_read_write_mandatory_secrets_errors/00_6secret.sh new file mode 100644 index 0000000..ff02313 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets_errors/00_6secret.sh @@ -0,0 +1,3 @@ +🛑 ERRORS +┣━━ The following variables are mandatory but have no value: +┗━━  - secret1 (the first variable) diff --git a/tests/results/test_read_write_mandatory_secrets_errors/00_9default_information_other_variable2.sh b/tests/results/test_read_write_mandatory_secrets_errors/00_9default_information_other_variable2.sh new file mode 100644 index 0000000..9fb9f2d --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets_errors/00_9default_information_other_variable2.sh @@ -0,0 +1,4 @@ +🛑 ERRORS +┣━━ The following variables are mandatory but have no value: +┣━━  - var1 (a first variable) +┗━━  - var2 (a second variable) diff --git a/tests/results/test_read_write_mandatory_secrets_errors/04_5disabled_calculation_variable_multi.sh b/tests/results/test_read_write_mandatory_secrets_errors/04_5disabled_calculation_variable_multi.sh new file mode 100644 index 0000000..6b275e0 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets_errors/04_5disabled_calculation_variable_multi.sh @@ -0,0 +1,3 @@ +🛑 ERRORS +┣━━ The following variables are mandatory but have no value: +┗━━  - variable (a variable) diff --git a/tests/results/test_read_write_mandatory_secrets_errors/16_6exists_family.sh b/tests/results/test_read_write_mandatory_secrets_errors/16_6exists_family.sh new file mode 100644 index 0000000..fa31cd7 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets_errors/16_6exists_family.sh @@ -0,0 +1,6 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: diff --git a/tests/results/test_read_write_mandatory_secrets_errors/20_9family_absolute.sh b/tests/results/test_read_write_mandatory_secrets_errors/20_9family_absolute.sh new file mode 100644 index 0000000..6613fb2 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets_errors/20_9family_absolute.sh @@ -0,0 +1,7 @@ +🛑 ERRORS +┣━━ The following variables are mandatory but have no value: +┣━━  - var1 (first variable) +┣━━  - family.var2 (a second variable) +┣━━  - family.subfamily.variable (third variable) +┣━━  - family2.var2 (a variable2) +┗━━  - family2.subfamily.variable (fourth variable) diff --git a/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-first.sh b/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-first.sh new file mode 100644 index 0000000..5b1d170 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-first.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate : + ┗━━ val11 diff --git a/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-last.sh b/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-last.sh new file mode 100644 index 0000000..5b1d170 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower-last.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate : + ┗━━ val11 diff --git a/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower.sh b/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower.sh new file mode 100644 index 0000000..421a30f --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-follower.sh @@ -0,0 +1,18 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate : + ┣━━ val11 + ┗━━ val11 diff --git a/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-first.sh b/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-first.sh new file mode 100644 index 0000000..18c831d --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-first.sh @@ -0,0 +1,16 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate: value1 diff --git a/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-last.sh b/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-last.sh new file mode 100644 index 0000000..1977670 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader-last.sh @@ -0,0 +1,16 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate: value2 diff --git a/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader.sh b/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader.sh new file mode 100644 index 0000000..070a162 --- /dev/null +++ b/tests/results/test_read_write_mandatory_secrets_errors/40_9leadership-calculation-outside-leader.sh @@ -0,0 +1,18 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate : + ┣━━ value1 + ┗━━ value2 diff --git a/tests/results/test_read_write_secrets/00_6secret.sh b/tests/results/test_read_write_secrets/00_6secret.sh new file mode 100644 index 0000000..e7d0ea4 --- /dev/null +++ b/tests/results/test_read_write_secrets/00_6secret.sh @@ -0,0 +1,8 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 secret1: ********** +┗━━ 📓 secret2: ********** diff --git a/tests/results/test_read_write_secrets/00_9default_information_other_variable2.sh b/tests/results/test_read_write_secrets/00_9default_information_other_variable2.sh new file mode 100644 index 0000000..0ee4247 --- /dev/null +++ b/tests/results/test_read_write_secrets/00_9default_information_other_variable2.sh @@ -0,0 +1,8 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 var1: null +┗━━ 📓 var2: null diff --git a/tests/results/test_read_write_secrets/01_6string_multi.sh b/tests/results/test_read_write_secrets/01_6string_multi.sh index b318db8..957bdb6 100644 --- a/tests/results/test_read_write_secrets/01_6string_multi.sh +++ b/tests/results/test_read_write_secrets/01_6string_multi.sh @@ -6,7 +6,7 @@ Variables: ┣━━ 📓 var1 : ┣━━ 📓 var2 : -┣━━ 📓 var3: null +┣━━ 📓 var3 : ┣━━ 📓 var4 : ┃ ┗━━ value ┣━━ 📓 var5 : diff --git a/tests/results/test_read_write_secrets/04_5disabled_calculation_variable_multi.sh b/tests/results/test_read_write_secrets/04_5disabled_calculation_variable_multi.sh new file mode 100644 index 0000000..eb9f637 --- /dev/null +++ b/tests/results/test_read_write_secrets/04_5disabled_calculation_variable_multi.sh @@ -0,0 +1,8 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 condition: false +┗━━ 📓 variable : diff --git a/tests/results/test_read_write_secrets/16_6exists_family.sh b/tests/results/test_read_write_secrets/16_6exists_family.sh new file mode 100644 index 0000000..fa31cd7 --- /dev/null +++ b/tests/results/test_read_write_secrets/16_6exists_family.sh @@ -0,0 +1,6 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: diff --git a/tests/results/test_read_write_secrets/20_9family_absolute.sh b/tests/results/test_read_write_secrets/20_9family_absolute.sh new file mode 100644 index 0000000..de0526b --- /dev/null +++ b/tests/results/test_read_write_secrets/20_9family_absolute.sh @@ -0,0 +1,21 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 var1: null +┣━━ 📂 family +┃ ┣━━ 📓 var2: null +┃ ┗━━ 📂 subfamily +┃  ┗━━ 📓 variable : +┃   ┣━━ null +┃   ┗━━ null +┗━━ 📂 family2 + ┣━━ 📓 var2: null + ┣━━ 📓 var3: string4 + ┗━━ 📂 subfamily +  ┗━━ 📓 variable : +   ┣━━ null +   ┣━━ null +   ┗━━ string4 diff --git a/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-follower-first.sh b/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-follower-first.sh new file mode 100644 index 0000000..5b1d170 --- /dev/null +++ b/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-follower-first.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate : + ┗━━ val11 diff --git a/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-follower-last.sh b/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-follower-last.sh new file mode 100644 index 0000000..5b1d170 --- /dev/null +++ b/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-follower-last.sh @@ -0,0 +1,17 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate : + ┗━━ val11 diff --git a/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-follower.sh b/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-follower.sh new file mode 100644 index 0000000..421a30f --- /dev/null +++ b/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-follower.sh @@ -0,0 +1,18 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate : + ┣━━ val11 + ┗━━ val11 diff --git a/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-leader-first.sh b/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-leader-first.sh new file mode 100644 index 0000000..18c831d --- /dev/null +++ b/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-leader-first.sh @@ -0,0 +1,16 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate: value1 diff --git a/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-leader-last.sh b/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-leader-last.sh new file mode 100644 index 0000000..1977670 --- /dev/null +++ b/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-leader-last.sh @@ -0,0 +1,16 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate: value2 diff --git a/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-leader.sh b/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-leader.sh new file mode 100644 index 0000000..070a162 --- /dev/null +++ b/tests/results/test_read_write_secrets/40_9leadership-calculation-outside-leader.sh @@ -0,0 +1,18 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: value1 +┃ ┃ ┣━━ 📓 follower1: val11 +┃ ┃ ┗━━ 📓 follower2: val21 +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: value2 +┃  ┣━━ 📓 follower1: val11 +┃  ┗━━ 📓 follower2: val21 +┗━━ 📓 calculate : + ┣━━ value1 + ┗━━ value2 diff --git a/tests/results/test_secrets/00_6secret.sh b/tests/results/test_secrets/00_6secret.sh new file mode 100644 index 0000000..7bbfe9c --- /dev/null +++ b/tests/results/test_secrets/00_6secret.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 secret1: ********** +┗━━ 📓 secret2: ********** (**********) diff --git a/tests/results/test_secrets/00_9default_information_other_variable2.sh b/tests/results/test_secrets/00_9default_information_other_variable2.sh new file mode 100644 index 0000000..745d9a2 --- /dev/null +++ b/tests/results/test_secrets/00_9default_information_other_variable2.sh @@ -0,0 +1,9 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 var1: string1 +┗━━ 📓 var2: string1 diff --git a/tests/results/test_secrets/01_6string_multi.sh b/tests/results/test_secrets/01_6string_multi.sh index 4e254cd..f812e5c 100644 --- a/tests/results/test_secrets/01_6string_multi.sh +++ b/tests/results/test_secrets/01_6string_multi.sh @@ -13,7 +13,10 @@ Variables: ┃ ┣━━ string1 ┃ ┣━━ string2 ┃ ┗━━ string3 -┣━━ 📓 var3: string1 +┣━━ 📓 var3 : +┃ ┣━━ string1 +┃ ┣━━ string2 +┃ ┗━━ string3 ┣━━ 📓 var4 : ┃ ┣━━ string1 (value) ┃ ┣━━ string2 diff --git a/tests/results/test_secrets/04_5disabled_calculation_variable_multi.sh b/tests/results/test_secrets/04_5disabled_calculation_variable_multi.sh new file mode 100644 index 0000000..a9481ef --- /dev/null +++ b/tests/results/test_secrets/04_5disabled_calculation_variable_multi.sh @@ -0,0 +1,8 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┗━━ 📓 condition: true (false) diff --git a/tests/results/test_secrets/16_6exists_family.sh b/tests/results/test_secrets/16_6exists_family.sh new file mode 100644 index 0000000..d2701ec --- /dev/null +++ b/tests/results/test_secrets/16_6exists_family.sh @@ -0,0 +1,7 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: diff --git a/tests/results/test_secrets/20_9family_absolute.sh b/tests/results/test_secrets/20_9family_absolute.sh new file mode 100644 index 0000000..401b68c --- /dev/null +++ b/tests/results/test_secrets/20_9family_absolute.sh @@ -0,0 +1,23 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📓 var1: string1 +┣━━ 📂 family +┃ ┣━━ 📓 var2: string6 +┃ ┗━━ 📂 subfamily +┃  ┗━━ 📓 variable : +┃   ┣━━ string1 (string1) +┃   ┣━━ string2 (string6) +┃   ┗━━ string3 +┗━━ 📂 family2 + ┣━━ 📓 var2: string1 (string6) + ┣━━ 📓 var3: string5 (string4) + ┗━━ 📂 subfamily +  ┗━━ 📓 variable : +   ┣━━ string1 (string1) +   ┣━━ string2 (string6) +   ┗━━ string3 (string5) diff --git a/tests/results/test_secrets/40_9leadership-calculation-outside-follower-first.sh b/tests/results/test_secrets/40_9leadership-calculation-outside-follower-first.sh new file mode 100644 index 0000000..dca7f2b --- /dev/null +++ b/tests/results/test_secrets/40_9leadership-calculation-outside-follower-first.sh @@ -0,0 +1,24 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate : + ┣━━ string1 (string1) + ┣━━ string2 + ┗━━ string3 diff --git a/tests/results/test_secrets/40_9leadership-calculation-outside-follower-last.sh b/tests/results/test_secrets/40_9leadership-calculation-outside-follower-last.sh new file mode 100644 index 0000000..213eda8 --- /dev/null +++ b/tests/results/test_secrets/40_9leadership-calculation-outside-follower-last.sh @@ -0,0 +1,24 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate : + ┣━━ string1 (string3) + ┣━━ string2 + ┗━━ string3 diff --git a/tests/results/test_secrets/40_9leadership-calculation-outside-follower.sh b/tests/results/test_secrets/40_9leadership-calculation-outside-follower.sh new file mode 100644 index 0000000..e7b7023 --- /dev/null +++ b/tests/results/test_secrets/40_9leadership-calculation-outside-follower.sh @@ -0,0 +1,24 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate : + ┣━━ string1 (string1) + ┣━━ string2 (string2) + ┗━━ string3 (string3) diff --git a/tests/results/test_secrets/40_9leadership-calculation-outside-leader-first.sh b/tests/results/test_secrets/40_9leadership-calculation-outside-leader-first.sh new file mode 100644 index 0000000..30b8cd8 --- /dev/null +++ b/tests/results/test_secrets/40_9leadership-calculation-outside-leader-first.sh @@ -0,0 +1,21 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate: string1 (string1) diff --git a/tests/results/test_secrets/40_9leadership-calculation-outside-leader-last.sh b/tests/results/test_secrets/40_9leadership-calculation-outside-leader-last.sh new file mode 100644 index 0000000..679f29f --- /dev/null +++ b/tests/results/test_secrets/40_9leadership-calculation-outside-leader-last.sh @@ -0,0 +1,21 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate: string1 (string3) diff --git a/tests/results/test_secrets/40_9leadership-calculation-outside-leader.sh b/tests/results/test_secrets/40_9leadership-calculation-outside-leader.sh new file mode 100644 index 0000000..e7b7023 --- /dev/null +++ b/tests/results/test_secrets/40_9leadership-calculation-outside-leader.sh @@ -0,0 +1,24 @@ +╭────────────────────────── Caption ──────────────────────────╮ +│ Variable Default value │ +│ Undocumented variable Modified value │ +│ Undocumented but modified variable (Original default value) │ +│ Unmodifiable variable │ +╰─────────────────────────────────────────────────────────────╯ +Variables: +┣━━ 📂 leader +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string1 (value1) +┃ ┃ ┣━━ 📓 follower1: string1 (val11) +┃ ┃ ┗━━ 📓 follower2: string1 (val21) +┃ ┣━━ 📂 leader +┃ ┃ ┣━━ 📓 leader: string2 (value2) +┃ ┃ ┣━━ 📓 follower1: string2 (val11) +┃ ┃ ┗━━ 📓 follower2: string2 (val21) +┃ ┗━━ 📂 leader +┃  ┣━━ 📓 leader: string3 +┃  ┣━━ 📓 follower1: string3 (val11) +┃  ┗━━ 📓 follower2: string3 (val21) +┗━━ 📓 calculate : + ┣━━ string1 (string1) + ┣━━ string2 (string2) + ┗━━ string3 (string3) diff --git a/tests/test_load.py b/tests/test_load.py index f5e2da7..0203796 100644 --- a/tests/test_load.py +++ b/tests/test_load.py @@ -59,7 +59,7 @@ def _test_dictionaries(test_dir, namespace, ext, *, read_write=True, mandatory=F if do_calc and (mandatory or not read_write): get_values_for_config(config) ################################## - generated_output = RougailOutput(config, rougailconfig=rougailconfig).run() + generated_output = RougailOutput(config, rougailconfig=rougailconfig).run()[1] 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():