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, May 19, 10:59 AM
Unknown Object (File)
Sat, May 18, 7:03 AM
Unknown Object (File)
Sat, May 18, 7:03 AM
Unknown Object (File)
Sat, May 18, 7:03 AM
Unknown Object (File)
Sat, May 18, 7:03 AM
Unknown Object (File)
Sat, May 18, 7:01 AM
Unknown Object (File)
Sat, May 18, 6:50 AM
Unknown Object (File)
Sat, May 18, 5:35 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).