Page MenuHomePhabricator

[services] Tunnelbroker - Add test for the `updateSessionItemIsOnline` database method
ClosedPublic

Authored by max on Sep 16 2022, 11:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 26, 2:48 AM
Unknown Object (File)
Sat, Oct 26, 2:48 AM
Unknown Object (File)
Sat, Oct 26, 2:48 AM
Unknown Object (File)
Sat, Oct 26, 2:48 AM
Unknown Object (File)
Sat, Oct 26, 2:46 AM
Unknown Object (File)
Mon, Oct 21, 4:42 AM
Unknown Object (File)
Oct 13 2024, 12:04 PM
Unknown Object (File)
Oct 13 2024, 12:04 PM

Details

Summary

This diff introduces a test for the updateSessionItemIsOnline method from D5165.

In this test, we will create a SessionItem entity and push it to the DynamoDB table. The default value for the IsOnline (D5164) field is false. We are checking the default value and updating it to true using the updateSessionItemIsOnline method and checking the value to become true after.

Related Linear task: ENG-1766

Test Plan
  1. Successfully built.
  2. The test was successfully passed.

Diff Detail

Repository
rCOMM Comm
Branch
add-test-for-updateisonline
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

max held this revision as a draft.
max edited the summary of this revision. (Show Details)
max edited the test plan for this revision. (Show Details)
max added a reviewer: tomek.
This revision is now accepted and ready to land.Sep 19 2022, 6:09 AM

Rebased on parent changes.

In D5166#151293, @jon wrote:

Yes, at the moment it can be tested using Docker by calling: yarn run-unit-tests, yarn run-integration-tests (using localstack and rabbitmq Docker images).