Page MenuHomePhabricator

[services] Tunnelbroker - Database findMessageItemsByReceiver tests
ClosedPublic

Authored by max on Apr 19 2022, 7:02 AM.
Tags
None
Referenced Files
F2786058: D3781.id12191.diff
Fri, Sep 20, 9:46 PM
F2785708: D3781.diff
Fri, Sep 20, 7:43 PM
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

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.