From dd56fc8c700b298aaf5ca7b75bab8d4fd0732d4c Mon Sep 17 00:00:00 2001 From: TheGeneralist <180094941+thegeneralist01@users.noreply.github.com> Date: Fri, 26 Jun 2026 17:01:43 +0200 Subject: [PATCH] test(collections): update tag-search test to send auth (private entries require auth) --- crates/archivr-server/src/routes.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/archivr-server/src/routes.rs b/crates/archivr-server/src/routes.rs index b158656..f5044fa 100644 --- a/crates/archivr-server/src/routes.rs +++ b/crates/archivr-server/src/routes.rs @@ -1531,11 +1531,12 @@ mod tests { .unwrap(); assert_eq!(assign_resp.status(), StatusCode::CREATED, "assign tag should return 201"); - // Search with ?tag=/science — entry should appear + // Search with ?tag=/science — entry should appear (requires auth since entry is private) let response = app(registry.clone(), auth_path.clone()) .oneshot( Request::builder() .uri("/api/archives/test/entries/search?tag=%2Fscience") + .header("cookie", &session_cookie) .body(Body::empty()) .unwrap(), ) @@ -1555,6 +1556,7 @@ mod tests { .oneshot( Request::builder() .uri("/api/archives/test/entries/search?tag=%2Fart") + .header("cookie", &session_cookie) .body(Body::empty()) .unwrap(), )