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

Is it possible to validate http requests with a request body? #361

Closed
AhmadAbdelghany opened this issue Jun 19, 2018 · 2 comments
Closed
Labels
migrate Ticket marked for re-write into new format wontfix

Comments

@AhmadAbdelghany
Copy link

In my goss.yaml, I have validating that nginx server is serving the 'endpoint':

http:
  http://0.0.0.0:80/endpoint:
    status: 200

As expected, it generates:
HTTP: http://0.0.0.0:80/endpoint: status: matches expectation: [200]

Is there a way to test that nginx is enforcing max request body limits by returning "413 Entity Too Large" when request body exceeds the limit? In other words, is it possible to verify something like:

http:
  http://0.0.0.0:80/endpoint -d {{readFile "body-too-large.json"}}:
    status: 413
@AhmadAbdelghany AhmadAbdelghany changed the title Is it possible to validate requests with a request body? Is it possible to validate http requests with a request body? Jun 19, 2018
@aelsabbahy aelsabbahy added the migrate Ticket marked for re-write into new format label Dec 27, 2019
@stale
Copy link

stale bot commented Jul 9, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 9, 2020
@aelsabbahy
Copy link
Member

Consolidating chat to this ticket: #484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migrate Ticket marked for re-write into new format wontfix
Projects
None yet
Development

No branches or pull requests

2 participants