@@ -45,6 +45,17 @@ def get_modified_data_import_cron_template(
4545 managed_data_source : str ,
4646 annotations : dict [str , str ] | None = None ,
4747) -> dict [str , Any ]:
48+ """Clone the first common template and customize it for testing.
49+
50+ Args:
51+ common_templates: HCO status templates; first entry is used as base.
52+ name: New template name.
53+ managed_data_source: DataSource name to associate with this cron.
54+ annotations: Optional annotations to merge into metadata.
55+
56+ Returns:
57+ dict[str, Any]: Modified template with status removed, name and datasource updated.
58+ """
4859 template = deepcopy (common_templates [0 ])
4960 del template ["status" ]
5061 template ["metadata" ]["name" ] = name
@@ -55,6 +66,7 @@ def get_modified_data_import_cron_template(
5566
5667
5768def get_unsupported_arch_template (common_templates : list [dict [str , Any ]]) -> dict [str , Any ]:
69+ """Return a template annotated with an unsupported architecture (arm42)."""
5870 return get_modified_data_import_cron_template (
5971 common_templates = common_templates ,
6072 name = CUSTOM_UNSUPPORTED_ARCH_CRON_NAME ,
@@ -64,6 +76,7 @@ def get_unsupported_arch_template(common_templates: list[dict[str, Any]]) -> dic
6476
6577
6678def get_no_arch_annotation_template (common_templates : list [dict [str , Any ]]) -> dict [str , Any ]:
79+ """Return a template with the architecture annotation removed."""
6780 template = get_modified_data_import_cron_template (
6881 common_templates = common_templates ,
6982 name = CUSTOM_NO_ARCH_ANNOTATION_CRON_NAME ,
0 commit comments