Bug #32732
openapi request to bulk/destroy,
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1942399
Description of problem:
When api request to bulk/destroy with same list in included and excluded parameter is sent, I would expect operation to pass with no operation done. If the behaviour is correct please change the error message.
Version-Release number of selected component (if applicable):
6.9 snap 16
How reproducible:
Always
Steps to Reproduce:
Request
https://<hostname>/api/v2/hosts/bulk/destroy with options {'auth': ('<user>', '<password>'), 'verify': False, 'headers': {'content-type': 'application/json'}}, no params and data {"organization_id": 80, "included": {"ids": [26, 27, 28]}, "excluded": {"ids": [26, 27, 28]}}.
Response
nailgun.client - WARNING - Received HTTP 403 response: {"displayMessage":"Action unauthorized to be performed on selected hosts.","errors":["Action unauthorized to be performed on selected hosts."]}
Actual results:
Error message that don't make much sense.
Expected results:
Success, but no action.
Or improved error message.
Additional info:
Not a regression.
SatelliteQE can modify the test_positive_bulk_destroy test to easily verify this.
Updated by Ondřej Pražák almost 3 years ago
- Category changed from Inventory to API