v0.3.15-pre.007
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-raw-transaction-ingest-desk/tests/desktop_contract.rs
|
||||
// version: 3
|
||||
// version: 4
|
||||
|
||||
//! Desktop scaffold contract canaries for Raw Transaction Ingest Desk.
|
||||
|
||||
@@ -169,3 +169,18 @@ fn pre_006_frontend_projects_profile_network_generation_and_safe_route_reasons()
|
||||
assert!(!main.contains(forbidden), "frontend exposes forbidden physical marker: {forbidden}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pre_007_start_preflight_is_backend_owned_generation_bound_and_does_not_launch_worker() {
|
||||
let dto = read_text(app_root().join("src/dto_route.rs").as_path());
|
||||
for required in
|
||||
["RawIngestCommitment", "RawIngestRouteStartRequestDto", "inventory_generation", "profile_id", "route_id", "RawIngestRouteStartValidationDto"]
|
||||
{
|
||||
assert!(dto.contains(required), "missing pre.007 Start DTO marker: {required}");
|
||||
}
|
||||
let tauri = read_text(app_root().join("src/tauri.rs").as_path());
|
||||
assert!(tauri.contains("validate_route_start"));
|
||||
for forbidden in ["start_worker", "stop_worker", "start_with_runtime_resources", "Store::open"] {
|
||||
assert!(!tauri.contains(forbidden), "pre.007 Tauri surface contains premature runtime marker {forbidden}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user