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
MGMT-15684: Return appropriate HTTP error code for invalid manifest file path #5634
Conversation
…ile path When validating the manifest file path, the assisted service presently returns a 400 (Bad Request) HTTP error code in the case of a request that contains invalid manifest file paths. It has been pointed out that this should be a 422 (Unprocessable Entity) error code instead. This PR changes the returned error code and updates tests to match.
@paul-maidment: This pull request references MGMT-15684 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.15.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: paul-maidment The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5634 +/- ##
==========================================
+ Coverage 67.68% 67.74% +0.06%
==========================================
Files 232 233 +1
Lines 34157 34211 +54
==========================================
+ Hits 23118 23176 +58
+ Misses 8978 8976 -2
+ Partials 2061 2059 -2
|
/lgtm |
@paul-maidment: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
When validating the manifest file path, the assisted service presently returns a 400 (Bad Request) HTTP error code in the case of a request that contains invalid manifest file paths.
It has been pointed out that this should be a 422 (Unprocessable Entity) error code instead.
This PR changes the returned error code and updates tests to match.
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist