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

fix(debug_mode): Fix FASTLY_DEBUG_MODE when used in combination with go-vcr. #561

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kpfleming
Copy link
Contributor

While running tests, if go-vcr was enabled (VCR_DISABLE was not set to '1'), and FASTLY_DEBUG_MODE was set to 'true', and no go-vcr cassettes existed for the tests being run, then any tests which sent HTTP request with bodies (PUT, PATCH, etc.) would fail as the combination of these features would result in an empty body being sent as part of the request.

This was discovered while running tests for new endpoints, so no cassettes existed, and FASTLY_DEBUG_MODE was enabled in order to monitor the actual HTTP requests and responses.

…go-vcr.

While running tests, if go-vcr was enabled (VCR_DISABLE was not set to
'1'), and FASTLY_DEBUG_MODE was set to 'true', and no go-vcr cassettes
existed for the tests being run, then any tests which sent HTTP
request with bodies (PUT, PATCH, etc.) would fail as the combination
of these features would result in an empty body being sent as part of
the request.

This was discovered while running tests for new endpoints, so no
cassettes existed, and FASTLY_DEBUG_MODE was enabled in order to
monitor the actual HTTP requests and responses.
@kpfleming
Copy link
Contributor Author

CC @Integralist

This was a nasty one, I spent nearly two hours today trying to figure out why I couldn't get tests to pass...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant