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)
Sun, Dec 15, 10:16 AM
Unknown Object (File)
Sun, Dec 15, 10:16 AM
Unknown Object (File)
Sun, Dec 15, 10:16 AM
Unknown Object (File)
Sun, Dec 15, 10:16 AM
Unknown Object (File)
Sun, Dec 15, 10:11 AM
Unknown Object (File)
Nov 16 2024, 4:39 AM
Unknown Object (File)
Nov 16 2024, 4:25 AM
Unknown Object (File)
Oct 26 2024, 2:48 AM

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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).