Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4 API: Mock Refresh Token Test #63

Merged
merged 4 commits into from
May 17, 2024
Merged

Conversation

n7studios
Copy link
Contributor

@n7studios n7studios commented May 16, 2024

Summary

Mocks the testRefreshToken test, otherwise the newly issued access and refresh tokens (rightly) mean our existing access and refresh tokens stored in the .env file are invalidated, and therefore later tests fail.

Screenshot 2024-05-16 at 16 11 27

Previously, tests would pass without mocking this call. Possibly a change in doorkeeper 5.7.0 that revokes existing credentials / grants when refreshing an access token.

Testing

Existing tests pass

Checklist

@n7studios n7studios added the bug Something isn't working label May 16, 2024
@n7studios n7studios self-assigned this May 16, 2024
@n7studios n7studios requested review from a team, noelherrick and jenessawhite and removed request for a team May 16, 2024 15:30
@n7studios n7studios marked this pull request as ready for review May 16, 2024 15:30
…into v4-api-rename-access-token-api-key-method
…-key-method

v4 API: Rename Exchange API Key and Secret Method
@n7studios n7studios merged commit 320fcf4 into v4-api May 17, 2024
@n7studios n7studios deleted the v4-api-mock-refresh-token-test branch June 26, 2024 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants