Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(storage): update upgrade e2e expectations to new scope and key names

Steven Enamakelc73ee1205de5
diff --git a/tests/storage_desktop_upgrade_e2e.rs b/tests/storage_desktop_upgrade_e2e.rs
index 45e883f821..f0e59f4463 100644
--- a/tests/storage_desktop_upgrade_e2e.rs
+++ b/tests/storage_desktop_upgrade_e2e.rs
@@ -384,7 +384,7 @@ fn desktop_workspace(workspace: &Path) -> Fixture {
fn module_storage(backend: &dyn StorageBackend, module: &str) -> ScopedStorage {
backend
- .for_scope(&Scope::new(format!("module:{module}@local")).unwrap())
+ .for_scope(&Scope::local().module(module).unwrap())
.unwrap()
}
@@ -499,15 +499,15 @@ async fn a_desktop_upgrade_is_lossless_and_leaves_the_legacy_files_untouched(cas
// tinymcp: both servers (plus their name claims), the audit log and the
// env secret, which is never a document.
let mcp = module_storage(backend.as_ref(), "tinymcp");
- assert_eq!(count(&mcp, "mcp_servers").await, fixture.mcp_servers);
- assert_eq!(count(&mcp, "mcp_server_names").await, fixture.mcp_servers);
+ assert_eq!(count(&mcp, "mcp.servers").await, fixture.mcp_servers);
+ assert_eq!(count(&mcp, "mcp.server_names").await, fixture.mcp_servers);
assert_eq!(
- mcp.streams().len("mcp_audit").await.unwrap(),
+ mcp.streams().len("mcp.audit").await.unwrap(),
fixture.mcp_audit as u64
);
let stored = mcp
.documents()
- .get("mcp_servers", "srv-1")
+ .get("mcp.servers", "srv-1")
.await
.unwrap()
.unwrap();
@@ -536,7 +536,7 @@ async fn a_desktop_upgrade_is_lossless_and_leaves_the_legacy_files_untouched(cas
{
let wallet = module_storage(backend.as_ref(), "tinywallet");
assert_eq!(
- wallet.streams().len("x402.payments").await.unwrap(),
+ wallet.streams().len("wallet.payments").await.unwrap(),
fixture.x402_payments as u64
);
}
@@ -547,7 +547,7 @@ async fn a_desktop_upgrade_is_lossless_and_leaves_the_legacy_files_untouched(cas
let tinybox = module_storage(backend.as_ref(), "tinybox");
let index = tinybox
.documents()
- .get("tinybox_jail_index", "jails")
+ .get("box.jail_index", "jails")
.await
.unwrap()
.expect("the jail index was imported");
@@ -562,7 +562,7 @@ async fn a_desktop_upgrade_is_lossless_and_leaves_the_legacy_files_untouched(cas
assert!(
juice
.blobs()
- .get(&format!("tinyjuice_ccr/{token}"))
+ .get(&format!("juice/ccr/{token}"))
.await
.unwrap()
.is_some(),