From c746ab63c94a31fe5f31a21dc6aed6f7fccde360 Mon Sep 17 00:00:00 2001 From: "sorokin.oleg.edu" Date: Sun, 6 Sep 2026 05:28:25 +0300 Subject: [PATCH] test(server): expect schema five from current exports --- crates/oa-server/tests/http.rs | 2 +- crates/oa-server/tests/http/data_contracts.rs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/oa-server/tests/http.rs b/crates/oa-server/tests/http.rs index 32dcd1be..f3c9663b 100644 --- a/crates/oa-server/tests/http.rs +++ b/crates/oa-server/tests/http.rs @@ -2002,7 +2002,7 @@ async fn current_migration_reports_and_invalid_typed_transaction_preserve_http_s .text() .await .unwrap(); - assert!(source.starts_with("arcadia 4;")); + assert!(source.starts_with("arcadia 5;")); assert_eq!(oa_core::language::parse(&source).unwrap(), stored.model); let no_op = server .client diff --git a/crates/oa-server/tests/http/data_contracts.rs b/crates/oa-server/tests/http/data_contracts.rs index 7b59d154..bee0aeb8 100644 --- a/crates/oa-server/tests/http/data_contracts.rs +++ b/crates/oa-server/tests/http/data_contracts.rs @@ -185,7 +185,7 @@ async fn published_data_contract_queries_atomic_edits_identity_and_restart() { .text() .await .unwrap(); - assert!(source.starts_with("arcadia 4;")); + assert!(source.starts_with("arcadia 5;")); assert_eq!(oa_core::language::parse(&source).unwrap(), removed.model); server.stop().await; let server = TestServer::start(directory.path(), None).await; @@ -218,7 +218,7 @@ async fn authored_schema3_bundle_upgrade_reports_data_defaults_and_preserves_fil let resource = summary["resource_id"].as_str().unwrap().parse().unwrap(); let stored = server.get(resource).await; let report = stored.migration.as_ref().unwrap(); - assert_eq!((report.from_schema, report.to_schema), (3, 4)); + assert_eq!((report.from_schema, report.to_schema), (3, 5)); assert_eq!(report.generated_interface_allocations.len(), 1); assert!(!report.semantic_defaults.is_empty()); let validated: Value = server @@ -241,7 +241,7 @@ async fn authored_schema3_bundle_upgrade_reports_data_defaults_and_preserves_fil 1 ); assert_eq!(stored.source_project.files.len(), 2); - assert!(stored.source_project.files["legacy.arcadia"].contains("arcadia 4;")); + assert!(stored.source_project.files["legacy.arcadia"].contains("arcadia 5;")); for text in [ "// Event rationale", "// Interface rationale", @@ -283,9 +283,9 @@ async fn existing_schema3_coupled_envelope_upgrades_in_memory_until_explicit_sav let server = TestServer::start(directory.path(), None).await; let opened = server.get(resource).await; assert_eq!(opened.revision, 17); - assert_eq!(opened.model.schema_version, 4); + assert_eq!(opened.model.schema_version, 5); assert_eq!(opened.migration.as_ref().unwrap().from_schema, 3); - assert!(opened.source_project.files["project.arcadia"].contains("arcadia 4;")); + assert!(opened.source_project.files["project.arcadia"].contains("arcadia 5;")); assert_pair(&opened); assert_eq!(std::fs::read(&filename).unwrap(), original); assert_eq!( @@ -717,7 +717,7 @@ async fn qualified_call_reply_values_reject_invalid_edits_and_survive_identity_s .text() .await .unwrap(); - assert!(source.starts_with("arcadia 4;")); + assert!(source.starts_with("arcadia 5;")); assert_eq!(oa_core::language::parse(&source).unwrap(), changed.model); let saved = std::fs::read(&filename).unwrap(); server.stop().await;