-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
[FEATURE] Add a __main__.py to schemathesis.cli #2142
Comments
Is there anything that prevents decoding base64 in your circumstances? I.e. if the value is nested too deep, etc.
Where do you look at them? Is it your console, or some logs? |
AFAIK if the content-type is application/json, the body is always a string and it should stay untouched. Why is it base64-encoded? Anyway, this feature request is independent from that. st.exe cannot be executed in enterprise environments with a list of allowed exes. |
Even though I'd appreciate answers to my original questions about the troubles with decoding base64 to better understand your use case and, therefore, give a more informed answer, there are a couple of reasons for using base64:
Therefore, preserving the original bytes as they are is reasonable. The runner events, of course, can use Support for |
Thank you very much for your thorough explanation. Now I understand why the response body is base64-encoded. Of course I can decode it myself, but it requires some extra work. I noticed that with cassette files base64-encoding is opt-in, but with the runner there is no opt-out. That bothered me. I think opt-in provides more flexibility, but it requires that the user is aware of the caveats you mentioned. Maybe you should add that info to the documentation.
Awesome! Thank you very much. |
Thank you for your response! Maybe it could be some extra helper to decode the body + docs on this |
Is your feature request related to a problem? Please describe
In some enterprise environments there is a list of allowed executables. In such an environment the easiest (and sometimes the only) way to use schemathesis is by executing the
schemathesis.cli
module with python -m. However, this is currently not possible, because this module does not have a__main__.py
file.Describe the solution you'd like
A
__main__.py
file in the moduleschemathesis.cli
with the following contents:Describe alternatives you've considered
I tried using the runner, but the request body and the response body are base64-encoded and I want so see them. Currently, the only option is to use the CLI to generate a cassette.
Additional context
The text was updated successfully, but these errors were encountered: