-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: updating mocks for tests to test mender-connect JWT request ha…
…ndling The thing to fix is to make `mender-connect` request a new JWT token on its own, so its not dependent on `mender-update` to do so. Previously **FetchJWTToken()** wasn’t called which wouldn’t let it call the JWT token independently, which made it dependent on **mender-update**. The PR (another PR) proposed to fix this issue uses **FetchJWTToken()** to fetch the token, to then for **WaitForJwtTokenStateChange()** to retrieve it in it’s waiting. The old mocks for the tests seemed to be more tailored to test the functionality with **GetJWTToken()**. This PR proposes a change in the mocks to better test the new implementation (where the 'new implementation' is the one proposed in the other PR for ticket MEN-6877) Changelog: None Ticket: MEN-6877 Signed-off-by: Sebastian Opsahl <sebastian.opsahl@northern.tech>
- Loading branch information
Showing
2 changed files
with
59 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters