Project

General

Profile

Actions

Bug #12445

closed

GET /katello/api/organizations/:id returns an incomplete set of attributes

Added by Ondřej Pražák over 8 years ago. Updated over 8 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
Category:
API
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1230873
Description of problem:
An organization can be associated with zero or more realms. Unfortunately, the API does not provide information about this organization → realm relationship.

Version-Release number of selected component (if applicable):
Tested against Satellite 6.1.0 GA 8. Foreman-debug is attached.

How reproducible:
100%

Steps to Reproduce:
1. Create an organization and associate it with a realm.
2. Get information about the organization with an HTTP GET request to /katello/api/v2/organizations/:id
3. Inspect the returned JSON payload. No mention of associated realms is made.

Actual results:

>>> from nailgun import entities
>>> org = entities.Organization().create(create_missing=True)
>>> org_attrs = org.read_json()
>>> org_attrs.keys()
[
u'compute_resources',
u'config_templates',
u'created_at',
u'default_content_view_id',
u'default_info',
u'description',
u'domains',
u'environments',
u'hostgroups',
u'id',
u'label',
u'library_id',
u'locations',
u'media',
u'name',
u'owner_details',
u'parameters',
u'redhat_docker_registry_url',
u'redhat_repository_url',
u'select_all_types',
u'service_level',
u'service_levels',
u'smart_proxies',
u'subnets',
u'title',
u'updated_at',
u'users',
]

Expected results:
Information about realms is included.

Additional info:
n/a


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #10357: GET /api/v2/locations/:id does not return information about realmsClosedOndřej Pražák05/04/2015Actions
Actions #1

Updated by Dominic Cleal over 8 years ago

  • Is duplicate of Bug #10357: GET /api/v2/locations/:id does not return information about realms added
Actions #2

Updated by Dominic Cleal over 8 years ago

  • Status changed from New to Duplicate

#10357 covers this already, it's the same implementation.

Actions

Also available in: Atom PDF