From f729d3198f93c4d9fd8f689d91a26674b660c787 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 18 Mar 2026 11:43:06 -0700 Subject: [PATCH] fix redirect test and add state_file_path to integration test Update redirect unit test to expect internal url (matching the previous fix). Add missing state_file_path field to the integration test VolumeServerState constructor. --- seaweed-volume/src/server/handlers.rs | 2 +- seaweed-volume/tests/http_integration.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/seaweed-volume/src/server/handlers.rs b/seaweed-volume/src/server/handlers.rs index 1c3574288..5094dc787 100644 --- a/seaweed-volume/src/server/handlers.rs +++ b/seaweed-volume/src/server/handlers.rs @@ -3901,7 +3901,7 @@ mod tests { assert_eq!(response.status(), StatusCode::MOVED_PERMANENTLY); assert_eq!( response.headers().get(header::LOCATION).unwrap(), - "https://volume.public:8080/3,01637037d6?collection=photos&proxied=true" + "https://volume.internal:8080/3,01637037d6?collection=photos&proxied=true" ); } } diff --git a/seaweed-volume/tests/http_integration.rs b/seaweed-volume/tests/http_integration.rs index 6012d68aa..a7bbe2239 100644 --- a/seaweed-volume/tests/http_integration.rs +++ b/seaweed-volume/tests/http_integration.rs @@ -114,6 +114,7 @@ fn test_state_with_guard( read_buffer_size_bytes: 1024 * 1024, security_file: String::new(), cli_white_list: vec![], + state_file_path: String::new(), }); (state, tmp) }