Page MenuHomePhabricator

[services] Tunnelbroker - AMQP tests
ClosedPublic

Authored by max on Apr 7 2022, 9:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 4:31 PM
Unknown Object (File)
Sat, Nov 16, 10:07 AM
Unknown Object (File)
Wed, Nov 13, 2:08 AM
Unknown Object (File)
Sat, Nov 9, 5:49 PM
Unknown Object (File)
Sat, Nov 9, 5:49 PM
Unknown Object (File)
Sat, Nov 9, 5:48 PM
Unknown Object (File)
Sat, Nov 9, 5:46 PM
Unknown Object (File)
Sat, Nov 9, 1:40 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.