Bug #10357
closedGET /api/v2/locations/:id does not return information about realms
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1216234
Description of problem:
A location can be associated with zero or more realms. The API documentation makes mention of this in the documentation for POST /api/v2/locations and PUT /api/v2/locations/:id, and the UI exposes this capability too. (See the relevant API documentation page at https://sat.example.com/apidoc/v2/locations.html and search for "realm".) However, a GET request to /api/v2/locations/:id will return information about associated realms.
Version-Release number of selected component (if applicable):
Tested against Satellite-6.1.0-RHEL-6-20150424.0 and Satellite-6.1.0-RHEL-7-20150424.0.
How reproducible:
100%
Steps to Reproduce:
1. Issue an HTTP GET request to https://sat.example.com/api/v2/locations/:id
2. Examine the response.
3. Discover that realms are not mentioned.
Actual results:
[
u'compute_resources',
u'config_templates',
u'created_at',
u'description',
u'domains',
u'environments',
u'hostgroups',
u'id',
u'media',
u'name',
u'organizations',
u'parameters',
u'select_all_types',
u'smart_proxies',
u'subnets',
u'title',
u'updated_at',
u'users',
]
Expected results:
Same as above, but with realms mentioned.
Additional info:
Updated by Dominic Cleal over 9 years ago
- Category set to Organizations and Locations
Updated by Dominic Cleal about 9 years ago
- Has duplicate Bug #12445: GET /katello/api/organizations/:id returns an incomplete set of attributes added
Updated by The Foreman Bot about 9 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Pražák
- Pull request https://github.com/theforeman/foreman/pull/2903 added
Updated by Dominic Cleal almost 9 years ago
- Translation missing: en.field_release set to 104
Updated by Ondřej Pražák almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 502feabe1259186625453a9dcc2165ccd0292741.
Updated by Ondřej Pražák almost 9 years ago
- Related to Feature #13276: Realms for organizations and locations added