Project

General

Profile

Actions

Bug #15728

open

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

Added by David Davis over 7 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Difficulty:
Triaged:
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'
Actions #1

Updated by The Foreman Bot over 7 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
Actions #2

Updated by David Davis over 6 years ago

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

Also available in: Atom PDF