heroku/kensa — Issue #28: kensa test provision explodes if JSON is not returned
Author: ddollar
Created: 2012-03-08 00:30:06+00:00
State: open

I returned "foo" from the provision call:

$ kensa test provision
/Users/david/.rbenv/versions/1.9.3-p125/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require': iconv will be deprecated in the future, use String#encode instead.

Testing manifest id key
Check if exists [PASS]
Check is a string [PASS]
Check is not blank [PASS]

Testing manifest api key
Check if exists [PASS]
Check is a hash [PASS]
Check contains password [PASS]
Check contains test url [PASS]
Check contains production url [PASS]
Check production url uses SSL [PASS]
Check sso url uses SSL [PASS]
Check contains config_vars array [PASS]
Check containst at least one config var [PASS]
Check all config vars are uppercase strings [PASS]
Check all config vars are prefixed with the addon id [PASS]
Check deprecated fields [PASS]

done.

Testing POST /heroku/resources
Check response [PASS]
Check valid JSON/Users/david/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/kensa-1.4.0/lib/heroku/kensa/okjson.rb:180:in `lex': undefined method `length' for nil:NilClass (NoMethodError)
from /Users/david/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/kensa-1.4.0/lib/heroku/kensa/okjson.rb:41:in `decode'
from /Users/david/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/kensa-1.4.0/lib/heroku/kensa/check.rb:301:in `block in call!'
from /Users/david/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/kensa-1.4.0/lib/heroku/kensa/check.rb:28:in `check'
from /Users/david/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/kensa-1.4.0/lib/heroku/kensa/check.rb:299:in `call!'
from /Users/david/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/kensa-1.4.0/lib/heroku/kensa/check.rb:45:in `call'
from /Users/david/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/kensa-1.4.0/lib/heroku/kensa/client.rb:168:in `block in run_check'
from /Users/david/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/kensa-1.4.0/lib/heroku/kensa/client.rb:165:in `each'
from /Users/david/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/kensa-1.4.0/lib/heroku/kensa/client.rb:165:in `run_check'
from /Users/david/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/kensa-1.4.0/lib/heroku/kensa/client.rb:54:in `test'
from /Users/david/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/kensa-1.4.0/lib/heroku/kensa/client.rb:21:in `run!'
from /Users/david/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/kensa-1.4.0/bin/kensa:17:in `'
from /Users/david/.rbenv/versions/1.9.3-p125/bin/kensa:19:in `load'
from /Users/david/.rbenv/versions/1.9.3-p125/bin/kensa:19:in `

'