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)
Thu, Sep 12, 2:59 AM
Unknown Object (File)
Mon, Sep 9, 5:06 PM
Unknown Object (File)
Mon, Sep 9, 5:06 PM
Unknown Object (File)
Mon, Sep 9, 5:06 PM
Unknown Object (File)
Mon, Sep 9, 5:05 PM
Unknown Object (File)
Mon, Sep 9, 5:03 PM
Unknown Object (File)
Sun, Sep 8, 10:23 PM
Unknown Object (File)
Sat, Sep 7, 9:58 AM

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
Branch
tunnelbroker-tests-database-find-message-by-receiever
Lint
No Lint Coverage
Unit
No Test Coverage

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.