Bug 1066088 - [RFE] expose an option to the servicelevels api to return exempt service levels
Summary: [RFE] expose an option to the servicelevels api to return exempt service levels
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: William Poteat
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel511
TreeView+ depends on / blocked
 
Reported: 2014-02-17 16:30 UTC by John Sefler
Modified: 2015-05-14 14:53 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-09-29 17:49:43 UTC
Embargoed:


Attachments (Terms of Use)

Description John Sefler 2014-02-17 16:30:18 UTC
Description of problem:
Currently there is a Candlepin API to return the servicelevels available to a given org key...

http://candlepinproject.org/apidoc/get/owners/owner_key/servicelevels/

For testing purposes, it would be helpful to accept an "exempt=true|false" parameter.


Version-Release number of selected component (if applicable):
[root@jsefler-7 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.3-1


How reproducible:


Steps to Reproduce:

Actual results:
With the TESTDATA deployed...
[root@jsefler-7 ~]# curl --stderr /dev/null --insecure --user testuser1:password --request GET https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/owners/admin/servicelevels | python -m simplejson/tool
[
    "Full-Service",
    "None",
    "Premium",
    "Standard",
    "Super",
]

Expected results:
[root@jsefler-7 ~]# curl --stderr /dev/null --insecure --user testuser1:password --request GET https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/owners/admin/servicelevels?exempt=true | python -m simplejson/tool
[
    "Exempt SLA",
]

^^^ This ficticious list should contain all of the "support_level" pool attribute values from pools available to the {owner_key} that have been defined with a "support_level_exempt" = "true" pool attribute value.

Comment 1 William Poteat 2014-02-17 19:43:40 UTC
Pull request 

https://github.com/candlepin/candlepin/pull/508

Comment 2 John Sefler 2014-06-03 20:44:18 UTC
Verifying Version ...
[root@jsefler-5 ~]# curl --stderr /dev/null --insecure --user testuser1:password --request GET https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/status | python -m simplejson/tool | grep version
    "version": "0.9.12"


[root@jsefler-5 ~]# curl --stderr /dev/null --insecure --user testuser1:password --request GET https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/owners/admin/servicelevels?exempt=false | python -m simplejson/tool
[
    "Full-Service", 
    "None", 
    "Premium", 
    "Standard", 
    "Super"
]

[root@jsefler-5 ~]# curl --stderr /dev/null --insecure --user testuser1:password --request GET https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/owners/admin/servicelevels?exempt=true | python -m simplejson/tool
[
    "Layered"
]

VERIFIED: /servicelevels new option exempt=true or false

Comment 3 Bryan Kearney 2014-09-29 17:49:43 UTC
Cleaning up old bugs. These were verified but never closed.


Note You need to log in before you can comment on or make changes to this bug.