Bug 1202917

Summary: GET /katello/api/v2/systems/:id does not return all attributes
Product: Red Hat Satellite Reporter: jaudet
Component: APIAssignee: Justin Sherrill <jsherril>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bkearney
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-25 17:53:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jaudet 2015-03-17 17:02:43 UTC
Description of problem:
An HTTP GET /katello/api/v2/systems/:id returns a hash of information about a system. The "facts" and "type" keys are missing from this hash.

Version-Release number of selected component (if applicable):
Tested against Satellite-6.1.0-RHEL-6-20150311.1 and Satellite-6.1.0-RHEL-7-20150311.1.

How reproducible:
Always.

Steps to Reproduce:
1. Make an HTTP GET call to /katello/api/v2/systems/:id
2. Look at the keys of the JSON response payload.

Actual results:

These are the keys in the returned hash:

    [
        u'activation_keys',
        u'autoheal',
        u'checkin_time',
        u'content_overrides',
        u'content_view',
        u'content_view_id',
        u'created',
        u'customInfo',
        u'description',
        u'distribution',
        u'entitlementStatus',
        u'environment',
        u'errata_counts',
        u'host',
        u'hostCollections',
        u'href',
        u'id',
        u'installedProducts',
        u'katello_agent_installed',
        u'location',
        u'name',
        u'organization_id',
        u'permissions',
        u'products',
        u'registered_by',
        u'release',
        u'release_ver',
        u'service_level',
        u'uuid',
    ]

Expected results:
Same as above, but with the "type" and "facts" keys present.

Additional info:

Comment 2 RHEL Program Management 2015-03-17 17:13:09 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 jaudet 2015-03-17 17:31:55 UTC
An automated test for this issue will be added to QE's test suite shortly. See https://github.com/SatelliteQE/robottelo/pull/1984

Comment 6 Bryan Kearney 2016-08-04 20:09:55 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 8 Justin Sherrill 2016-08-25 17:53:44 UTC
This api is being removed in 6.3. Closing as wontfix