Skip to content

feat(amqp10): implement queue declaration - #237

Open
sharathb5 wants to merge 4 commits into
feature-amqp10from
190-provider-interface-implement-declarequeue
Open

sharathb5 wants to merge 4 commits into
feature-amqp10from
190-provider-interface-implement-declarequeue

Conversation

@sharathb5

Copy link
Copy Markdown
Contributor

Add AMQP 1.0 queue declaration with compatible queue options and coverage.

Signed-off-by: Sharath Bhattiprolu <sharathjb23@gmail.com>
@sharathb5 sharathb5 linked an issue Oct 8, 2026 that may be closed by this pull request
@sharathb5
sharathb5 changed the base branch from main to feature-amqp10 October 8, 2026 17:14
Signed-off-by: Sharath Bhattiprolu <sharathjb23@gmail.com>
@sharathb5
sharathb5 marked this pull request as ready for review October 8, 2026 17:33
Comment thread internal/provider/connectors/rabbitmq/amqp10/amqp10_provider.go Outdated
Comment thread internal/provider/connectors/rabbitmq/amqp10/amqp10_provider.go
Comment thread internal/provider/connectors/rabbitmq/amqp10/amqp10_provider.go Outdated
Signed-off-by: Sharath Bhattiprolu <sharathjb23@gmail.com>
client *amqp.AMQPManagementClient
}

func newRabbitQueueManagementClient(connectionConfig *pb.ConnectionConfiguration) (*rabbitQueueManagementClient, error) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the mgmt client duplicated here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok I removed the integration-only client wrapper and now use the shared AMQPManagementClient.Request method for queue reads and cleanup.

require.Nil(t, provider10.Subscribe(ctx10, source10, nil))

properties091 := waitForQueueProperties(t, management, queueName091)
properties10 := waitForQueueProperties(t, management, queueName10)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be run again, but on the second run, change the queue properties to force a 403 error? You won't really be able to test for that error, but you could still it in the rabbit logs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reran the declaration through a fresh AMQP 1.0 provider and changed MessageTTL from 3210 to 3211. the provider returned nil and the queue retained its original properties. The log did not show a numeric 403.

Signed-off-by: Sharath Bhattiprolu <sharathjb23@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provider Interface: implement declareQueue

2 participants