Bug #14386
closedNo list provided for download policy error message
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1320311
Description of problem:
When providing an invalid download_policy value, the error message returned is:
"displayMessage": "Validation failed: Download policy is not included in the list"
Version-Release number of selected component (if applicable):
Satellite 6.2 Beta Snap 4
How reproducible:
Always
Steps to Reproduce:
1. Create or enable a repository
2. submit a put request to /katello/api/repositories/<repo id>
with an invalid value for download_policy
Actual results:
{
"displayMessage": "Validation failed: Download policy is not included in the list",
"errors": {
"download_policy": [
"is not included in the list"
]
}
}
Expected results:
{
"displayMessage": "Validation failed: Download policy is not included in the list: ['immediate', 'download_policy', 'background']",
"errors": {
"download_policy": [
"is not included in the list: ['immediate', 'download_policy', 'background']"
]
}
}
Updated by Zach Huntington-Meath almost 9 years ago
- Assignee set to Zach Huntington-Meath
Updated by The Foreman Bot almost 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/5924 added
Updated by Zach Huntington-Meath almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|f3730a3c57919c8d1cde49fb8d53b813b5b4a3f9.
Updated by Eric Helms almost 9 years ago
- Translation missing: en.field_release set to 86