Created attachment 461297 [details]
script to run api calls
Description of problem:
I am trying to use a script to create some pools in on-premises server that are approaching expiration. The script I'm using used to work, but against 0.0.43-1, the pool refresh fails. See exception http://pastebin.test.redhat.com/34921
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Place attached script setup.rb in dir above candlepin checkout.
2. chmod 755 setup.rb
4. curl -u admin:admin -k https://[host:port]/candlepin/pools?owner=[ownerid of donaldduck]
The pools shown are just the ones originally imported during deploy. The ones the script created do not show up. There are exceptions in catalina.out.
I am not able to reproduce the above scenario using ALPHA branch. The code works fine.