Skip to content

Bug: Expired is missing from rabbit testing header properties #2785

@marcm-ml

Description

@marcm-ml

Hello,

the expiration property is not respected when using the rabbit test broker and setting the "expiration" flag in the testbroker.publish method.

I think its simply missing here.

header=ContentHeader(
properties=spec.Basic.Properties(
content_type=msg.content_type,
headers=msg.headers,
reply_to=msg.reply_to,
content_encoding=msg.content_encoding,
priority=msg.priority,
correlation_id=msg.correlation_id,
message_id=msg.message_id,
timestamp=msg.timestamp,
message_type=message_type,
user_id=msg.user_id,
app_id=msg.app_id,

Up until this point in the code, the expiration property is propagated but not passed to the aiormq.abc.DeliveredMessage header property

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions