Skip to content

Commit 6bb73ea

Browse files
authored
update rabbitmq version for ci (#292)
* Update ci to 3.13.0-beta.6 * Starting from rabbitmq:3.13.0-beta.5 long strings are not converted to string but to byte[] due to Message Containers rabbitmq-server#5077 * Change the Amqp10ShouldReadTheAmqp019Properties to work with RabbitMQ >= 3.13.0-beta.5 --------- Signed-off-by: Gabriele Santomaggio <[email protected]>
1 parent 2f83071 commit 6bb73ea

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.ci/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"erlang": "26.0.2",
3-
"rabbitmq": "3.13.0-beta.3"
3+
"rabbitmq": "3.13.0-beta.6"
44
}

.github/workflows/build-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
runs-on: ubuntu-latest
4444
services:
4545
rabbitmq:
46-
image: rabbitmq:3.13.0-beta.2-management
46+
image: rabbitmq:3.13.0-beta.6-management
4747
env:
4848
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: -rabbitmq_stream advertised_host localhost
4949
ports:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Test:
5757
make test
5858
```
5959

60-
To execute the tests you need a RabbitMQ `v3.11.9` running with the following plugins enabled:
60+
To execute the tests you need a RabbitMQ `3.13.x` running with the following plugins enabled:
6161
- `rabbitmq_management`
6262
- `rabbitmq_stream`
6363
- `rabbitmq_stream_management`

Tests/FromToAMQPTests.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,14 @@ public async void Amqp10ShouldReadTheAmqp019Properties()
161161
Assert.Equal("Alan Mathison Turing(1912 年 6 月 23 日", message.ApplicationProperties["stream_key4"]);
162162
Assert.Equal(true, message.ApplicationProperties["bool"]);
163163
Assert.Equal(10_000_000_000, message.ApplicationProperties["decimal"]);
164-
Assert.Equal(
165-
$"Alan Mathison Turing(1912 年 6 月 23 日 - 1954 年 6 月 7 日)是英国数学家、计算机科学家、逻辑学家、密码分析家、哲学家和理论生物学家。 [6] 图灵在理论计算机科学的发展中具有很大的影响力,用图灵机提供了算法和计算概念的形式化,可以被认为是通用计算机的模型。[7][8][9] 他被广泛认为是理论计算机科学和人工智能之父{i}",
164+
// Starting from rabbitmq:3.13.0-beta.5 there is new Message Containers feature
165+
// https://github.com/rabbitmq/rabbitmq-server/pull/5077
166+
// In this version the long string are not converted to string but to byte[]
167+
// reason why we changed this test starting from the ci with RabbitMQ version >= 3.13.0-beta.5
168+
var binaryValue = Encoding.UTF8.GetBytes(
169+
$"Alan Mathison Turing(1912 年 6 月 23 日 - 1954 年 6 月 7 日)是英国数学家、计算机科学家、逻辑学家、密码分析家、哲学家和理论生物学家。 [6] 图灵在理论计算机科学的发展中具有很大的影响力,用图灵机提供了算法和计算概念的形式化,可以被认为是通用计算机的模型。[7][8][9] 他被广泛认为是理论计算机科学和人工智能之父{i}");
170+
171+
Assert.Equal(binaryValue,
166172
message.ApplicationProperties["alan"]
167173
);
168174
Assert.Equal(i, message.ApplicationProperties["int"]);

0 commit comments

Comments
 (0)