Project

General

Profile

Bug #10357

GET /api/v2/locations/:id does not return information about realms

Added by Bryan Kearney over 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Organizations and Locations
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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:


Related issues

Related to Hammer CLI - Feature #13276: Realms for organizations and locationsNew2016-01-19
Has duplicate Foreman - Bug #12445: GET /katello/api/organizations/:id returns an incomplete set of attributesDuplicate2015-11-11

Associated revisions

Revision 502feabe (diff)
Added by Ondřej Pražák over 3 years ago

Fixes #10357 - Realms for organizations and locations can be retrieved through API

Revision b6311d57 (diff)
Added by Ondřej Pražák over 3 years ago

Fixes #10357 - Realms for organizations and locations can be retrieved through API

(cherry picked from commit 502feabe1259186625453a9dcc2165ccd0292741)

History

#1 Updated by Dominic Cleal over 4 years ago

  • Category set to Organizations and Locations

#2 Updated by Dominic Cleal almost 4 years ago

  • Has duplicate Bug #12445: GET /katello/api/organizations/:id returns an incomplete set of attributes added

#3 Updated by The Foreman Bot almost 4 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

#4 Updated by Dominic Cleal over 3 years ago

  • Legacy Backlogs Release (now unused) set to 104

#5 Updated by Ondřej Pražák over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#6 Updated by Ondřej Pražák over 3 years ago

  • Related to Feature #13276: Realms for organizations and locations added

Also available in: Atom PDF