Project

General

Profile

Bug #15728

Test fails with new json release (2.0) which fixes parse error

Added by David Davis about 3 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

The test uses 'true' as the response body which is now valid json in the 2.0 version of the ruby json gem. It raised a parse error before which was actually in correct.

Here's the test failure:

  1) Error:
Base::TestBase#test_process_response_returns_string:
RuntimeError: can't modify frozen TrueClass
    /home/vagrant/.rvm/gems/ruby-2.2.4/gems/rest-client-1.8.0/lib/restclient/abstract_response.rb:27:in `response_set_vars'
    /home/vagrant/.rvm/gems/ruby-2.2.4/gems/rest-client-1.8.0/lib/restclient/response.rb:16:in `create'
    /home/vagrant/Projects/runcible/lib/runcible/base.rb:147:in `rest_client_response'
    /home/vagrant/Projects/runcible/lib/runcible/base.rb:135:in `process_response'
    test/unit/base_test.rb:38:in `test_process_response_returns_string'

History

#1 Updated by The Foreman Bot about 3 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to David Davis
  • Pull request https://github.com/Katello/runcible/pull/180 added

#2 Updated by David Davis almost 2 years ago

  • Assignee deleted (David Davis)
  • Status changed from Ready For Testing to New

Also available in: Atom PDF