Bug 729070
Summary: | adding pools to an activation key should be blocked when specifying a quantity>1 for a non-multi-entitlement pool | ||
---|---|---|---|
Product: | [Community] Candlepin | Reporter: | John Sefler <jsefler> |
Component: | candlepin | Assignee: | William Poteat <wpoteat> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | John Sefler <jsefler> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 0.5 | CC: | spandey, wpoteat |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Solaris | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-05-30 13:15:32 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 682238 |
Description
John Sefler
2011-08-08 16:33:40 UTC
Verifying Version... [root@jsefler-onprem-62candlepin proxy]# git show-ref | grep master b0ce936b3ad659e6ed5d24216acfa5e050c60851 refs/heads/master b0ce936b3ad659e6ed5d24216acfa5e050c60851 refs/remotes/origin/master [root@jsefler-onprem-62server ~]# subscription-manager register --username=testuser1 --password=password --org=admin The system has been registered with id: 43ac7c92-3456-48d9-9e46-4d1baee84eff [root@jsefler-onprem-62server ~]# subscription-manager list --avail +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ ProductName: Management Add-On ProductId: management-100 PoolId: 8a90f8c631f1db330131f1dcc9c50279 Quantity: 1000 Multi-Entitlement: No Expires: 08/20/2012 MachineType: physical [jsefler@jsefler ~]$ curl -k --request POST --user testuser1:password --data '{"name":"ActivationKeyForPool8a90f8c631f1db330131f1dcc9c50279"}' --header 'accept: application/json' --header 'content-type: application/json' https://jsefler-onprem-62candlepin.usersys.redhat.com:8443/candlepin/owners/admin/activation_keys | python -mjson.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 124 311 103 311 0 63 1653 334 --:--:-- --:--:-- --:--:-- 3875 { "created": "2011-08-22T21:52:19.364+0000", "id": "8a90f8c631f1db330131f37ad7a4156c", "name": "ActivationKeyForPool8a90f8c631f1db330131f1dcc9c50279", "owner": { "displayName": "Admin Owner", "href": "/owners/admin", "id": "8a90f8c631f1db330131f1dba26c0006", "key": "admin" }, "pools": [], "updated": "2011-08-22T21:52:19.364+0000" } [jsefler@jsefler ~]$ curl -k --request POST --user testuser1:password https://jsefler-onprem-62candlepin.usersys.redhat.com:8443/candlepin/activation_keys/8a90f8c631f1db330131f37ad7a4156c/pools/8a90f8c631f1db330131f1dcc9c50279?quantity=5 | python -mjson.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 152 152 152 152 0 0 715 0 --:--:-- --:--:-- --:--:-- 1876 { "displayMessage": "Error: Only pools with multi-entitlement product subscriptions can be added to the activation key with a quantity greater than one." } ^^^ VERIFIED That the attempt to add a pool with a non-multi-entitlement product subscription was indeed blocked. moving to VERIFIED |