Bug #16473
Errors not reported when adding a subscription to a content host
Description
To reproduce use this diff
diff --git a/app/lib/katello/resources/candlepin.rb b/app/lib/katello/resources/candlepin.rb index 0f31718..816f303 100644 --- a/app/lib/katello/resources/candlepin.rb +++ b/app/lib/katello/resources/candlepin.rb @@ -174,6 +174,7 @@ module Katello end def consume_entitlement(uuid, pool, quantity = nil) + fail "hi" uri = join_path(path(uuid), 'entitlements') + "?pool=#{pool}" uri += "&quantity=#{quantity}" if quantity && quantity > 0 response = self.post(uri, "", self.default_headers).body
and add a subscription to a content host. Note that the UI says "Subscription added successfuly" but the subscription was actually not added.
History
#1
Updated by Eric Helms over 5 years ago
- Assignee set to Eric Helms
- Legacy Backlogs Release (now unused) set to 162
#2
Updated by Justin Sherrill over 5 years ago
- Legacy Backlogs Release (now unused) changed from 162 to 114