Bug 729125
| Summary: | adding pools to an activation key should fail when quantity<1 and quantity>totalQuantity for a multi-entitlement pool | ||
|---|---|---|---|
| Product: | [Community] Candlepin (Migrated to Jira) | 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: | jmolet, 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:16:12 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 18:57:09 UTC
Verifying Version... [root@jsefler-onprem-62candlepin proxy]# git branch 0.3 * master [root@jsefler-onprem-62candlepin proxy]# git show-ref | grep master 517e1deb46bc6365da35ff12944815208eedb9d6 refs/heads/master 517e1deb46bc6365da35ff12944815208eedb9d6 refs/remotes/origin/master [jsefler@jseflerT510 ~]$ curl -k --user testuser1:password --request POST https://jsefler-onprem-62candlepin.usersys.redhat.com:8443/candlepin/activation_keys/8a90f8c6320db34301320e52ff5d64c0/pools/8a90f8c6320db34301320db4be0a04dd?quantity=1234567890 | python -mjson.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 89 100 89 0 0 171 0 --:--:-- --:--:-- --:--:-- 225 { "displayMessage": "The quantity must not be greater than the total allowed for the pool" } [jsefler@jseflerT510 ~]$ curl -k --user testuser1:password --request POST https://jsefler-onprem-62candlepin.usersys.redhat.com:8443/candlepin/activation_keys/8a90f8c6320db34301320e52ff5d64c0/pools/8a90f8c6320db34301320db4be0a04dd?quantity=-999 | python -mjson.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 56 100 56 0 0 119 0 --:--:-- --:--:-- --:--:-- 157 { "displayMessage": "The quantity must be greater than 0" } [jsefler@jseflerT510 ~]$ curl -k --user testuser1:password --request POST https://jsefler-onprem-62candlepin.usersys.redhat.com:8443/candlepin/activation_keys/8a90f8c6320db34301320e52ff5d64c0/pools/8a90f8c6320db34301320db4be0a04dd?quantity=-1 | python -mjson.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 56 100 56 0 0 123 0 --:--:-- --:--:-- --:--:-- 162 { "displayMessage": "The quantity must be greater than 0" } [jsefler@jseflerT510 ~]$ curl -k --user testuser1:password --request POST https://jsefler-onprem-62candlepin.usersys.redhat.com:8443/candlepin/activation_keys/8a90f8c6320db34301320e52ff5d64c0/pools/8a90f8c6320db34301320db4be0a04dd?quantity=0 | python -mjson.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 56 100 56 0 0 117 0 --:--:-- --:--:-- --:--:-- 153 { "displayMessage": "The quantity must be greater than 0" } Moving to VERIFIED |