Project

General

Profile

Actions

Bug #10357

closed

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

Added by Bryan Kearney over 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Organizations and Locations
Target version:
Difficulty:
Triaged:
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 2 (1 open1 closed)

Related to Hammer CLI - Feature #13276: Realms for organizations and locationsNewActions
Has duplicate Foreman - Bug #12445: GET /katello/api/organizations/:id returns an incomplete set of attributesDuplicateEric Helms11/11/2015Actions
Actions #1

Updated by Dominic Cleal over 9 years ago

  • Category set to Organizations and Locations
Actions #2

Updated by Dominic Cleal about 9 years ago

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

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
Actions #4

Updated by Dominic Cleal almost 9 years ago

  • Translation missing: en.field_release set to 104
Actions #5

Updated by Ondřej Pražák almost 9 years ago

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

Updated by Ondřej Pražák almost 9 years ago

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

Also available in: Atom PDF