Browse Source

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.
rust-volume-server
Chris Lu 2 days ago
parent
commit
f729d3198f
  1. 2
      seaweed-volume/src/server/handlers.rs
  2. 1
      seaweed-volume/tests/http_integration.rs

2
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"
);
}
}

1
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)
}

Loading…
Cancel
Save