Issue #2444 has been updated by Luke Kanies.

Status changed from Unreviewed to Needs more information
Target version set to 0.25.0

What json library do you have installed?

If you've only got rails installed, then things will likely not work, because 
rails monkey patches json support in an incompatible way to the main lib.
----------------------------------------
Bug #2444: json test failures
http://projects.reductivelabs.com/issues/2444

Author: Markus Roberts
Status: Needs more information
Priority: Normal
Assigned to: 
Category: testing
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.25.0beta2
Keywords: 


Two of the json tests are failing in the 0.25.0beta2 and in master as of 24 
July 2009.  I have not analyzed this further and am simply noting the failures 
here for the record.

<pre>
'Puppet::Network::Format[json] when json is available should be able to render 
an instance to json' FAILED                                                     
                                       
expected: "{\"json_class\":\"JsonIntTest\",\"data\":[\"foo\"]}",                
                   
     got: "{\"data\":[\"foo\"],\"json_class\":\"JsonIntTest\"}" (using ==)      
                   
./spec/integration/network/formats.rb:62:                                       
                   
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'      
                   
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'     
                   
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'      
                   
</pre>

<pre>
@NoMethodError in 'Puppet::Network::Format[json] when json is available should 
be able to render multiple instances to json'                                   
                                        
undefined method `string' for ["one"]:Array                                     
                   
./spec/integration/network/formats.rb:10:in `=='                                
                   
./spec/integration/network/formats.rb:25:in `to_json'                           
                   
/home/markus/projects/puppet/puppet/lib/puppet/network/format.rb:68:in `send'   
                   
/home/markus/projects/puppet/puppet/lib/puppet/network/format.rb:68:in `render' 
                   
./spec/integration/network/formats.rb:69:                                       
                   
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'      
                   
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'     
                   
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'      
                   
</pre>



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to