Delete test-only generic service writer

This commit is contained in:
Meta Vens 2026-08-23 08:11:01 +02:00
commit ab5b16ec3f
2 changed files with 0 additions and 28 deletions

View file

@ -1491,26 +1491,6 @@ pub fn load_epiphany_cultmesh_daemon_service_lifecycle_receipts(
.collect())
}
#[cfg(test)]
pub fn write_epiphany_cultmesh_managed_service_policy(
store_path: impl AsRef<Path>,
runtime_id: impl Into<String>,
policy: EpiphanyCultMeshManagedServicePolicyEntry,
) -> Result<EpiphanyCultMeshManagedServicePolicyEntry> {
if policy.service_id == EPIPHANY_SEMANTIC_PROJECTOR_SERVICE_ID {
return Err(anyhow!(
"reserved semantic projector policy requires its specialized writer"
));
}
if policy.service_id == EPIPHANY_WORKSPACE_COVERAGE_PROJECTOR_SERVICE_ID {
return Err(anyhow!(
"reserved workspace coverage projector policy requires its specialized writer"
));
}
validate_managed_service_policy(&policy)?;
write_validated_managed_service_policy(store_path, runtime_id, policy)
}
pub fn write_epiphany_cultmesh_semantic_projector_service_policy(
store_path: impl AsRef<Path>,
runtime_id: impl Into<String>,
@ -3339,9 +3319,6 @@ mod tests {
private_state_exposed: false,
notes: vec![],
};
assert!(
write_epiphany_cultmesh_managed_service_policy(&store, "local", exact.clone()).is_err()
);
let mut forged = exact.clone();
forged.command = "arbitrary.exe".into();
assert!(
@ -3476,9 +3453,6 @@ mod tests {
private_state_exposed: false,
notes: vec![],
};
assert!(
write_epiphany_cultmesh_managed_service_policy(&store, "local", exact.clone()).is_err()
);
let mut arbitrary_binary = exact.clone();
arbitrary_binary.command = "arbitrary-projector.exe".into();
assert!(

View file

@ -252,8 +252,6 @@ pub use cultmesh_integration::write_epiphany_cultmesh_daemon_restart_policy;
pub use cultmesh_integration::write_epiphany_cultmesh_daemon_scheduler_receipt;
pub use cultmesh_integration::write_epiphany_cultmesh_daemon_service_lifecycle_receipt;
pub use cultmesh_integration::write_epiphany_cultmesh_daemon_status;
#[cfg(test)]
pub use cultmesh_integration::write_epiphany_cultmesh_managed_service_policy;
pub use cultmesh_integration::write_epiphany_cultmesh_semantic_projector_service_policy;
pub use cultmesh_integration::write_epiphany_cultmesh_swarm_brake;
pub use cultmesh_integration::write_epiphany_cultmesh_workspace_coverage_projector_service_policy;