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.
Pull request https://github.com/candlepin/candlepin/pull/508
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
Cleaning up old bugs. These were verified but never closed.