Page MenuHomePhabricator

[services] Tunnelbroker - AMQP tests
ClosedPublic

Authored by max on Apr 7 2022, 9:05 AM.
Tags
None
Referenced Files
F3394724: D3653.id11584.diff
Sat, Nov 30, 9:31 PM
F3394539: D3653.id11184.diff
Sat, Nov 30, 8:25 PM
F3394211: D3653.diff
Sat, Nov 30, 6:16 PM
Unknown Object (File)
Thu, Nov 28, 4:51 AM
Unknown Object (File)
Thu, Nov 28, 4:48 AM
Unknown Object (File)
Thu, Nov 28, 3:50 AM
Unknown Object (File)
Thu, Nov 28, 3:37 AM
Unknown Object (File)
Wed, Nov 20, 4:31 PM

Details

Summary

AMQPManager - is an internal class for use with the RabbitMQ message broker. It performs connect and re-connect, sends and receive messages from the queue.
When the AMQPManager receives the message it pushes it to the DeliveryBroker local queue.

AMQP tests that we perform:

  • Send by AMQPManager and Listen -> Receive message by DeliveryBroker.
Test Plan

Run yarn test-tunnelbroker-service all tests are run and succeed.

Diff Detail

Repository
rCOMM Comm
Branch
tunnelbroker-tests-amqp
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Apr 7 2022, 9:08 AM
Harbormaster failed remote builds in B7980: Diff 11184!

Why do you put a dot . at the end of your diffs' titles? I haven't noticed anybody else on the team doing this (but maybe I missed something). Can we be consistent about this?

services/tunnelbroker/test/AmqpManagerTest.cpp
24–27

We probably shouldn't use randomly generated data for tests.

This revision now requires changes to proceed.Apr 8 2022, 12:19 AM
max retitled this revision from [services] Tunnelbroker - AMQP tests. to [services] Tunnelbroker - AMQP tests.Apr 18 2022, 5:21 AM

Added tests with static variables along with generated ones following D3654#102087

In D3653#100486, @karol-bisztyga wrote:

Why do you put a dot . at the end of your diffs' titles? I haven't noticed anybody else on the team doing this (but maybe I missed something). Can we be consistent about this?

Ok, let's do it. Changed it.

Verbose output for generated values in case of failure was added.

Remove == equality to EQ only.

tomek added inline comments.
services/tunnelbroker/test/AmqpManagerTest.cpp
22 ↗(On Diff #11587)

Please find test names that explain what is actually being tested, e.g. TestIfPopReturnsTheSameMassageThatWasSend - probably a little too long but clearly explains what is being tested. It is important, because we should be able to know what would be a reason of failed test without spending too much time reading it.

This revision is now accepted and ready to land.Apr 19 2022, 7:07 AM
This revision was automatically updated to reflect the committed changes.