Page MenuHomePhabricator

[services] Tunnelbroker - Database findMessageItemsByReceiver tests
ClosedPublic

Authored by max on Apr 19 2022, 7:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 6:09 AM
Unknown Object (File)
Fri, Nov 15, 6:09 AM
Unknown Object (File)
Fri, Nov 15, 6:09 AM
Unknown Object (File)
Fri, Nov 15, 6:09 AM
Unknown Object (File)
Fri, Nov 15, 6:09 AM
Unknown Object (File)
Sun, Nov 3, 3:20 PM
Unknown Object (File)
Sun, Nov 3, 3:20 PM
Unknown Object (File)
Sun, Nov 3, 3:20 PM

Details

Summary

Database (DynamoDB) findMessageItemsByReceiver function tests:

  • Check if the table is available,
  • Create and fulfill database MessageItem entity,
  • Put the item into the database table,
  • Find the records by the ToDeviceID field key using findMessageItemsByReceiver function (D3239),
  • Compare first record fields of created item and item from database record,
  • Remove the testing record from the database.
Test Plan

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Apr 19 2022, 10:53 AM
Harbormaster failed remote builds in B8309: Diff 11606!
tomek added inline comments.
services/tunnelbroker/test/DatabaseManagerTest.cpp
26 ↗(On Diff #11606)

We should probably use past tense here

This revision is now accepted and ready to land.Apr 20 2022, 10:02 AM

Rebase on master, test name changed to follow the codebase.

max added inline comments.
services/tunnelbroker/test/DatabaseManagerTest.cpp
26 ↗(On Diff #11606)

We should probably use past tense here

I've switched to the updated test name following our names convention.