Issue #1259 has been updated by Fujin.

Status changed from Unreviewed to Accepted
Target version set to 0.24.5

There appears to be a confine which should be stopping these tests from running 
without Mongrel..
<pre>
describe "when using mongrel" do
    confine "Mongrel is not available" => Puppet.features.mongrel?
</pre>

But the ArgumentError that is being raised is located elsewhere - not sure as 
to why this is being raised!
<pre>
lib/puppet/network/http.rb:            raise ArgumentError, "Mongrel is not 
installed on this platform" unless Puppet.features.mongrel?
</pre>

It'd be good to make sure these tests are pending or ignored when Mongrel is 
not available, like the confine dictates.. Marking as 0.24.5, maybe someone 
with a little more knowledge can point out why the error in 
lib/puppet/network/http.rb is being raised? :)
----------------------------------------
Bug #1259: Puppet::Indirector::REST and Puppet::Network::Server tests fail 
without mongrel
http://reductivelabs.com/redmine/issues/show/1259

Author: porridge
Status: Accepted
Priority: Normal
Assigned to: community
Category: testing
Target version: 0.24.5
Complexity: Unknown
Patch: None


I do not know whether mongrel should be a requisite dependancy for running 
test, or whether these should be skipped when it is not available. But either 
way something needs to be changed, either the documentation or tests. See also 
#1237 for a related, but different problem (there the tests do not even load).

<pre>
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when finding 
a model instance over REST when a matching model instance can be found should 
not fail'
Mongrel is not installed on this platform
/home/porridge/Desktop/coding/puppet-git/spec/../lib/puppet/network/http.rb:5:in
 @server_class_by_type'
/home/porridge/Desktop/coding/puppet-git/spec/../lib/puppet/network/server.rb:158:in
 @http_server_class_by_type'
/home/porridge/Desktop/coding/puppet-git/spec/../lib/puppet/network/server.rb:138:in
 @http_server_class'
/home/porridge/Desktop/coding/puppet-git/spec/../lib/puppet/network/server.rb:59:in
 @initialize'
/home/porridge/Desktop/coding/puppet-git/spec/integration/indirector/rest.rb:282:in
 @new'
/home/porridge/Desktop/coding/puppet-git/spec/integration/indirector/rest.rb:282:

--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when finding 
a model instance over REST when a matching model instance can be found should 
return an instance of the model class'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when finding 
a model instance over REST when a matching model instance can be found should 
return the instance of the model class associated with the provided lookup key'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when finding 
a model instance over REST when a matching model instance can be found should 
set an expiration on model instance'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when finding 
a model instance over REST when no matching model instance can be found should 
return nil'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when finding 
a model instance over REST when an exception is encountered in looking up a 
model instance should raise an exception'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when 
searching for model instances over REST when matching model instances can be 
found should not fail'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when 
searching for model instances over REST when matching model instances can be 
found should return all matching results'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when 
searching for model instances over REST when matching model instances can be 
found should return model instances'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when 
searching for model instances over REST when matching model instances can be 
found should return the instance of the model class associated with the 
provided lookup key'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when 
searching for model instances over REST when matching model instances can be 
found should set an expiration on model instances'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when 
searching for model instances over REST when no matching model instance can be 
found should return nil'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when 
searching for model instances over REST when an exception is encountered in 
looking up a model instance should raise an exception'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when 
destroying a model instance over REST when a matching model instance can be 
found should not fail'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when 
destroying a model instance over REST when a matching model instance can be 
found should return success'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when 
destroying a model instance over REST when no matching model instance can be 
found should return failure'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when 
destroying a model instance over REST when an exception is encountered in 
destroying a model instance should raise an exception'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when saving a 
model instance over REST when a successful save can be performed should not 
fail'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when saving a 
model instance over REST when a successful save can be performed should return 
an instance of the model class'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when saving a 
model instance over REST when a successful save can be performed should return 
a matching instance of the model class'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when saving a 
model instance over REST when a save cannot be completed should return failure'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Indirector::REST when using mongrel when saving a 
model instance over REST when an exception is encountered in performing a save 
should raise an exception'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Network::Server when using mongrel before 
listening should not be reachable at the specified address and port'
Mongrel is not installed on this platform
/home/porridge/Desktop/coding/puppet-git/spec/../lib/puppet/network/http.rb:5:in
 @server_class_by_type'
/home/porridge/Desktop/coding/puppet-git/spec/../lib/puppet/network/server.rb:158:in
 @http_server_class_by_type'
/home/porridge/Desktop/coding/puppet-git/spec/../lib/puppet/network/server.rb:138:in
 @http_server_class'
/home/porridge/Desktop/coding/puppet-git/spec/../lib/puppet/network/server.rb:59:in
 @initialize'
/home/porridge/Desktop/coding/puppet-git/spec/integration/network/server/mongrel.rb:12:in
 @new'
/home/porridge/Desktop/coding/puppet-git/spec/integration/network/server/mongrel.rb:12:


--
[[ArgumentError]] in 'Puppet::Network::Server when using mongrel when listening 
should be reachable on the specified address and port'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Network::Server when using mongrel when listening 
should not allow multiple servers to listen on the same address and port'
Mongrel is not installed on this platform
--
[[ArgumentError]] in 'Puppet::Network::Server when using mongrel after 
unlistening should not be reachable on the port and address assigned'
Mongrel is not installed on this platform
</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