AMQP pushToQueue declares queue with default parameters
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- php
- Domain
- backend, testing-qa
Research direction
Start with src/Codeception/Module/AMQP.php around line 153 and compare pushToQueue with the separate declareQueue method introduced in 2.2.9. Review tests/functional/startCest.php around line 53 and verify that pushing to an already-declared queue no longer triggers an inequivalent durable-parameter error.
Written by the indexing model from the issue text.
Description
https://github.com/Codeception/Codeception/blob/2.2.10/src/Codeception/Module/AMQP.php#L153
$this->connection->channel()->queue_declare($queue);
If the queue is already declared it can cause error like this:
[PhpAmqpLib\Exception\AMQPProtocolChannelException] PRECONDITION_FAILED - inequivalent arg 'durable' for queue 'TEST.start' in vhost 'test_vhost': received 'false' but current is 'true'
Scenario Steps:
8. $I->pushToQueue("TEST.start","test") at tests/functional/startCest.php:53
I think that queue_declare call can be removed from pushToQueue, because separate declareQueue method was introduced in 2.2.9.
(Probably it is best to make this change in master branch)
- Dominant language
- PHP
- Stars
- 4
- Forks
- 9
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Codeception/module-amqp
-
`?array $arguments = null,` should be `array|AMQPTable|null $arguments = null,`Possibly taken @DenuxPlays claimed this 356 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
Codeception/module-amqp#23 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
Codeception/module-amqp#21 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
Codeception/module-amqp#15 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
Codeception/module-amqp#14 · 1 comment ·
All issues in Codeception/module-amqp
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
taskforcesh/bullmq#5238 ·
Maintainers usually reply within 1 day
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects itPossibly taken @bfs2021 claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Automattic/jetpack#55517 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
area/import type/enhancement when/later
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day