Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

1540 unit test token 401

Hasib Prince requested to merge 1540-unit_test_token_401 into main

Description

Unit tests are added to increase reliability of token management as tokens get expired frequently.

Technical details

When app faces status 401 (Unauthorized user), it triggers an event from GplayHttpClient to refresh the token. Now unit tests are added to validate event is triggered with correct value when 401 (Unauthorized user) is faced during any gplay api is called. And tested refreshing token process by asserting expected value is set in livedata (authObjectList) of LoginViewModel.

Tests

Issues

backlog/-/issues/1540

10 commandments of code reviews

👪 ❤️ https://gitlab.e.foundation/internal/wiki/-/wikis/mobile-team/guidelines/Code-review

Merge request reports

Loading