-
Notifications
You must be signed in to change notification settings - Fork 83
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
[6.15.z] Add json response to entity creation error message #1137
[6.15.z] Add json response to entity creation error message #1137
Conversation
* Makes the error message information more detailed and informative * Possibility to write more precise assertions Signed-off-by: dosas <dosas@users.noreply.github.com> (cherry picked from commit 95b3ce1)
trigger: test-robottelo |
PRT Result
|
@omkarkhatavkar I cannot see the cause of the error. Could you maybe paste the stacktrace? |
@omkarkhatavkar let me know if I can help you to get this PR fixed. |
trigger: test-robottelo |
PRT Result
|
@dosas here is the stack
|
Thank you.
I do not exactly know what this katello code does but there was a change in this section 2 years ago that was just recently fixed in robottelo I doubt that this error is caused by the change since the error raised is still the same. |
It looks like not related to this PR change. |
Cherrypick of PR: #1119
Description of changes
Add json response to entity creation error message
There are some robottelo tests that would greatly benefit from more precise assertions on error messages, i.e.
tests/foreman/api/test_repository.py::TestRepository::test_negative_update_checksum_with_on_demand_policy (or other tests in this module)
I doubt that the supposed error message should be:
Upstream API documentation, plugin, or feature links
None
Functional demonstration
Example:
before:
after
Additional Information
None