Skip to content

Commit

Permalink
test(amqp): update rabbitmq (#971)
Browse files Browse the repository at this point in the history
* test(amqp): update rabbitmq

Co-authored-by: Timon Back <[email protected]>

* test(e2e): fix filter for messages with title "GenericPayload"

Co-authored-by: Timon Back <[email protected]>

---------

Co-authored-by: Timon Back <[email protected]>
  • Loading branch information
sam0r040 and timonback authored Sep 13, 2024
1 parent d4c7115 commit 58c0390
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions springwolf-examples/e2e/tests/publishing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function testPublishingEveryChannelItem() {
const protocol = Object.keys(operation.bindings)[0];
const channelName = operation.channel.$ref.split("/").pop();
const messageName = messageReference.$ref.split("/").pop();
const messageTitle = asyncApiDoc.components.messages[messageName]?.title;
const messageTitle: string =
asyncApiDoc.components.messages[messageName]?.title;
const payloadName = messageName;

if (
Expand All @@ -70,7 +71,7 @@ function testPublishingEveryChannelItem() {
messageTitle === "MonetaryAmount" || // Issue with either MonetaryAmount of ModelConverters
messageTitle === "Message" || // Unable to instantiate ExamplePayloadProtobufDto$Message class
messageTitle === "VehicleBase" || // Unable to publish abstract class for discriminator demo
messageTitle === "GenericPayloadDto" || // Unable to publish generic payload (amqp)
messageTitle.startsWith("GenericPayload") || // Unable to publish generic payload (amqp)
channelName === "#" || // Publishing through amqp exchange is not supported, see GH-366
channelName === "example-topic-routing-key" // Publishing through amqp exchange is not supported, see GH-366
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ services:
- amqp

amqp:
image: rabbitmq:3.8-management-alpine
image: rabbitmq:3.9-management-alpine
ports:
# AMQP protocol port
- '5672:5672'
# HTTP management UI
- '15672:15672'

0 comments on commit 58c0390

Please sign in to comment.