-
Notifications
You must be signed in to change notification settings - Fork 122
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
Response Body modification in HTTP Status code experiment #556
Conversation
…n body and status; Removed unneccesary logging Signed-off-by: Akash Shrivastava <akash.shrivastava@harness.io>
Signed-off-by: Akash Shrivastava <akash.shrivastava@harness.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good! Thanks for command execution changes @avaakash 🚀
| // sleep 10 is added for proxy-server to be ready for creating proxy and adding toxics | ||
| chaosCommand := fmt.Sprintf("%s && sleep 10 && %s && %s", startProxyServerCommand, createProxyCommand, createToxicCommand) | ||
| // sleep 2 is added for proxy-server to be ready for creating proxy and adding toxics | ||
| chaosCommand := fmt.Sprintf("%s && sleep 2 && %s && %s", startProxyServerCommand, createProxyCommand, createToxicCommand) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should remove the sleep and provide some cmd that would check the proxy server is ready in the future.
…s#556) * added response body in status code; Added content encoding and type in body and status; Removed unnecessary logging Signed-off-by: Akash Shrivastava <akash.shrivastava@harness.io> Signed-off-by: Saptarshi Sarkar <saptarshi.programmer@gmail.com>
Signed-off-by: Akash Shrivastava akash.shrivastava@harness.io
What this PR does / why we need it:
This PR adds the ability to modify the response body in the HTTP status code experiment.
It also adds support to provide the content type and encoding for the body in modify body and status code experiments.
Checklist:
breaking-changestagrequires-upgradetag