Skip to content

Commit 0dcccaa

Browse files
Update tests and the change log
1 parent 167d66f commit 0dcccaa

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
## v0.74.0 (in development)
44

5-
No changes yet.
5+
### Breaking Changes
6+
7+
* `ExchangeFederationParams#queue_type` and `OwnedExchangeFederationParams#queue_type` are now
8+
optional (`Option<QueueType>` intead of `QueueType`) for RabbitMQ 3.12.x compatibility.
9+
10+
The [`queue-type`](https://www.rabbitmq.com/docs/federation-reference) parameter was introduced
11+
in the 3.13 series.
612

713

814
## v0.73.0 (Dec 30, 2025)

tests/async_queue_federation_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async fn test_async_exchange_federation_upstream_fetch_and_update_workflow() {
192192
if let Some(ref mut exchange_fed) = modified_params.exchange_federation {
193193
exchange_fed.exchange = Some("updated-exchange".to_string());
194194
exchange_fed.max_hops = Some(3);
195-
exchange_fed.queue_type = QueueType::Classic;
195+
exchange_fed.queue_type = Some(QueueType::Classic);
196196
}
197197

198198
// Step 5: Convert back to FederationUpstreamParams and update

tests/blocking_queue_federation_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ fn test_blocking_exchange_federation_upstream_fetch_and_update_workflow() {
170170
if let Some(ref mut exchange_fed) = modified_params.exchange_federation {
171171
exchange_fed.exchange = Some("updated-exchange".to_string());
172172
exchange_fed.max_hops = Some(3);
173-
exchange_fed.queue_type = QueueType::Classic;
173+
exchange_fed.queue_type = Some(QueueType::Classic);
174174
}
175175

176176
let updated_upstream_params = FederationUpstreamParams::from(&modified_params);

tests/unit_federation_conversion_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ fn test_federation_upstream_to_params_conversion_exchange_federation() {
254254
let exchange_fed = owned_params.exchange_federation.as_ref().unwrap();
255255
assert_eq!(exchange_fed.exchange.as_ref().unwrap(), "fed.ex.upstream");
256256
assert_eq!(exchange_fed.max_hops.unwrap(), 2);
257-
assert_eq!(exchange_fed.queue_type, QueueType::Quorum);
257+
assert_eq!(exchange_fed.queue_type, Some(QueueType::Quorum));
258258
assert_eq!(exchange_fed.ttl.unwrap(), 3600000);
259259
assert_eq!(exchange_fed.message_ttl.unwrap(), 7200000);
260260
assert_eq!(

0 commit comments

Comments
 (0)