Open tkrisztian95 opened 1 year ago
This is pretty old, but still an issue. Will queue up fixing after #2295 is merged.
@dblock Any updates on this? I can see that https://github.com/apiaryio/dredd/pull/2295 is still open and pending for review.
We (OpenSearch) decided not to go with Dredd and wrote some tooling. Check out https://github.com/opensearch-project/opensearch-api-specification, I think it's really robust - we would love to extract it into its own toolset, maybe someone wants to take it on?
Describe the bug Cannot test HEAD type request examples because it causes an error in the underlying requests lib.
But, there is no request body in the API docs that I'm using.
I think Dredd provides an empty Buffer for the call here https://github.com/apiaryio/dredd/blob/master/packages/dredd/lib/performRequest.js#L72 that's causing the problem. Instead it should be considered that the request is HEAD or not.
To Reproduce Steps to reproduce the behavior. How do you call the dredd command? Which command line options?
Command:
dredd ./head-test.apib https://1234.mock.pstmn.io
API docs:
Output:
Expected behavior Dredd should send out a HEAD type request from the example given in docs. No error is thrown.
What is in your
dredd.yml
?What's your
dredd --version
output?Does
dredd --loglevel=debug
uncover something? If you run Dredd with debugging output, do you see any interesting information relevant to the bug?Can you send us failing test in a Pull Request? We'll gladly help you to contribute; answering yes raises the chances the issue gets fixed.