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

1540 unit test token 401

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