With this PR we uncovered several flaky tests, because to of the way they were updating context. We went with the easiest solution for now and set the context back to original after the test completes.
Because some tests in the test suite use real resources instead of FakeResource we need to regenerate the REST resources to have the new variables for them to pass.
When using the REST resources there is currently no way to access the rate limit information
Description
Fixes #1218
Please, include a summary of what the PR is for: Commit for adding resources
api_call_limit
which is a hash with the header information fromX-Shopify-Shop-Api-Call-Limit
retry_request_after
which is the header information fromRetry-After
Commit for fixing flacky test
With this PR we uncovered several flaky tests, because to of the way they were updating context. We went with the easiest solution for now and set the context back to original after the test completes.
Commit for regenerating REST resources
Because some tests in the test suite use real resources instead of
FakeResource
we need to regenerate the REST resources to have the new variables for them to pass.Commit for Docs
How has this been tested?
Please, describe the tests that you ran to verify your changes.
Checklist: