Red Hat Bugzilla – Bug 486037
activationkey.create doesn't throw exception on negative usageLimit
Last modified: 2009-02-25 16:16:43 EST
Description of problem:
activationkey.create() from the xmlrpc apis, allows a negative "usageLimit" to be passed in. The docs state "-1" is valid and will be considered as "unlimited". Assumption is, other negative values would throw an exception.
Prior QA api tests were passing in a value of "-45" and expecting this to throw an exception with wording:
Usage Limit cannot be less than 0.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run test: com.redhat.rhn.rpc.api.activationkey.create::testActivationkeyCreateWithNegativeUsageLimit()
2. Observe no exception is thrown.
exception is thrown
no exception thrown, key is set to "unlimited" usage.
Turns out I had a configuration error in api automation setup and was running against an older ISO.
Closing this as it works as intended with current iso.