diff --git a/epiphany-core/src/cultmesh_integration.rs b/epiphany-core/src/cultmesh_integration.rs index bc6d1713..4de9eeee 100644 --- a/epiphany-core/src/cultmesh_integration.rs +++ b/epiphany-core/src/cultmesh_integration.rs @@ -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, - runtime_id: impl Into, - policy: EpiphanyCultMeshManagedServicePolicyEntry, -) -> Result { - 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, runtime_id: impl Into, @@ -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!( diff --git a/epiphany-core/src/lib.rs b/epiphany-core/src/lib.rs index d2f6057a..33ba052a 100644 --- a/epiphany-core/src/lib.rs +++ b/epiphany-core/src/lib.rs @@ -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;