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)
Sat, Mar 15, 1:18 PM
Unknown Object (File)
Sat, Mar 1, 11:08 AM
Unknown Object (File)
Feb 5 2025, 2:59 PM
Unknown Object (File)
Feb 5 2025, 1:27 PM
Unknown Object (File)
Feb 3 2025, 10:48 AM
Unknown Object (File)
Feb 3 2025, 10:48 AM
Unknown Object (File)
Feb 3 2025, 10:48 AM
Unknown Object (File)
Jan 28 2025, 6:38 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

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

We should probably use past tense here

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