feat: add contextual retention guidance
This commit is contained in:
@@ -65,14 +65,44 @@ class PolicyModuleContractTests(unittest.TestCase):
|
||||
if item.id == "policy.hierarchy-overrides-and-retention"
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
["policy.retention", "privacy.retention"],
|
||||
topic.metadata["help_contexts"],
|
||||
self.assertTrue(
|
||||
{
|
||||
"policy.retention",
|
||||
"privacy.retention",
|
||||
"policy.retention.action.save",
|
||||
"policy.retention.field.store-raw-campaign-json",
|
||||
"policy.retention.field.generated-eml-retention-days",
|
||||
"policy.retention.field.audit-detail-level",
|
||||
"policy.retention.field.allow-lower-level-limits",
|
||||
}.issubset(topic.metadata["help_contexts"])
|
||||
)
|
||||
self.assertEqual("workflow", topic.metadata["kind"])
|
||||
self.assertIn("/admin", topic.metadata["route"])
|
||||
self.assertEqual({"title", "summary", "body"}, set(topic.translations["de"]))
|
||||
self.assertIn("Quellenpfad", topic.translations["de"]["body"])
|
||||
|
||||
def test_view_policy_administration_contract_is_documented_and_exposed(self) -> None:
|
||||
execution_topic = next(
|
||||
item
|
||||
for item in manifest.documentation
|
||||
if item.id == "policy.retention-execution-and-recovery"
|
||||
)
|
||||
self.assertEqual(
|
||||
{
|
||||
"policy.retention.execution",
|
||||
"policy.retention.action.dry-run",
|
||||
"policy.retention.action.apply",
|
||||
"policy.retention.confirm-apply",
|
||||
"policy.retention.outcome",
|
||||
},
|
||||
set(execution_topic.metadata["help_contexts"]),
|
||||
)
|
||||
self.assertIn(
|
||||
"nicht wiederherstellen", execution_topic.translations["de"]["body"]
|
||||
)
|
||||
|
||||
def test_view_policy_administration_contract_is_documented_and_exposed(
|
||||
self,
|
||||
) -> None:
|
||||
topic = next(
|
||||
item
|
||||
for item in manifest.documentation
|
||||
|
||||
Reference in New Issue
Block a user