rule_set#
This module is a wrapper of the tt4human that provide additional feature specifically for aws_ops_alpha project.
- class aws_ops_alpha.rule_set.ConditionEnum(value)[source]#
In aws_ops_alpha, we have a set of conditions that we want to check
- aws_ops_alpha.rule_set.should_we_do_it(step: str, semantic_branch_name: str, runtime_name: str, env_name: str, truth_table: TruthTable, google_sheet_url: Optional[str] = None, verbose: bool = True) bool[source]#
Get the boolean flag value to identify whether we should run a step under the condition of semantic branch name, runtime name, and env name.
if evaluation result is False, it will print the reason why it is False.
- Parameters:
step – step name for conditional step test
semantic_branch_name – semantic branch name for conditional step test
runtime_name – runtime name for conditional step test
env_name – env name for conditional step test
truth_table – truth table for conditional step test
google_sheet_url – print the Google sheet url when conditional step test failed
- Return bool:
True if we should run the step, False if we should not run the step.