Bug #14712
closedGET/POST/PUT /api/v2/host_collections/ do not return 'host_ids' attribute
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1325989
Description of problem:
As per 6.2 changes, host_collections now accept host ids instead of system ids. Creation of host collection with hosts associated is successful, however it seems not possible to validate it through API - none of GET/POST/PUT requests return 'host_ids' attribute.
Version-Release number of selected component (if applicable):
Satellite 6.2 Beta Snap7.1
How reproducible:
Always
Steps to Reproduce:
1. Create host collection with hosts specified ('host_ids' attribute). E.g.:
HTTP POST to https://example.com/katello/api/v2/host_collections with data {"organization_id": 6, "host_ids": [4, 5], "name": "test_host_collection"}
2. Capture the response. Examine the JSON payload and discover that the "host_ids" attribute is not mentioned.
3. Issue HTTP GET and HTTP PUT requests to previously created host_collection. Check the "host_ids" attribute presence.
Actual results:
'host_ids' attribute is absent in GET/POST/PUT responses.
Expected results:
'host_ids' attribute is present and contains a list of associated hosts ids.
Additional info:
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Assignee set to Brad Buckingham
- Pull request https://github.com/Katello/katello/pull/5983 added
Updated by Brad Buckingham over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|88e2e81e9bfcbcab92ba8ff2c6ca9eecf123c9a6.
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release set to 86