Bug 1023568

Summary: [RFE] bind requests using activation keys that do not specify a quantity should automatically use the quantity needed to achieve compliance
Product: [Community] Candlepin Reporter: John Sefler <jsefler>
Component: candlepinAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.9   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-29 19:05:12 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:
Bug Depends On:    
Bug Blocks: 863175    

Description John Sefler 2013-10-25 19:02:22 UTC
Description of problem:
To complement bug 1008647 activation keys that are made without specifying an exact subscription quantity should no longer assume a quantity of 1.  Instead candlepin  should attach the necessary amount to achieve compliance for the installed products the key's subscription provides. 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Carter Kozak 2013-10-25 19:04:42 UTC
commit a121556d1039400c483d8414fcdb1f5374f31df6
Author: ckozak <ckozak>
Date:   Wed Oct 23 15:00:53 2013 -0400

    ActKeys can take null quantity, pick quantity upon activation

Comment 2 John Sefler 2014-01-27 19:19:08 UTC
Automated test coverage for this case has been implemented in QE class ActivationKeyTests methods:

RegisterWithActivationKeyContainingPool_Test(...)
RegisterWithActivationKeyContainingPoolWithQuantity_Test(...)

Above tests are passing against version...
[root@jsefler-7 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.2-1            <================
subscription-manager: 1.10.11-1.git.11.509d491.el7
python-rhsm: 1.10.11-1.git.0.17362f9.el7

Moving to VERIFIED

Comment 4 Bryan Kearney 2014-09-29 19:05:12 UTC
These bugs were fixed during 7.0 but not moved to CLOSED. They have been delivered