Puppet: System Administration Automated

Support

Ticket #1265 (closed defect: fixed)

Opened 6 months ago

Last modified 6 months ago

CA client has a failing test

Reported by: luke Assigned to: jamtur01
Priority: normal Milestone: 0.24.5
Component: testing Version: 0.24.4
Severity: normal Keywords: testing, ca
Cc: Triage Stage: Ready for checkin
Attached Patches: None Complexity: Easy

Description

There's a failing test in the CA client:

luke@phage(0) $ ./network/client/ca.rb 
Loaded suite ./network/client/ca
Started
F..
Finished in 1.568501 seconds.

  1) Failure:
test_ca_server(TestClientCA)
    [./network/client/ca.rb:41:in `test_ca_server'
     /Users/luke/git/puppet/lib/../vendor/gems/mocha-0.5.6/lib/mocha/test_case_adapter.rb:19:in `__send__'
     /Users/luke/git/puppet/lib/../vendor/gems/mocha-0.5.6/lib/mocha/test_case_adapter.rb:19:in `run']:
<ArgumentError> exception expected but was
Class: <Mocha::ExpectationError>
Message: <"#<Mock:0x127bc0c>.value(:configtimeout) - expected calls: 0, actual calls: 1\nSimilar expectations:\n#<Mock:0x127bc0c>.value(:ca_server)\n#<Mock:0x127bc0c>.value(:ca_port)\n#<Mock:0x127bc0c>.value(:http_proxy_host)\n#<Mock:0x127bc0c>.value(:http_proxy_port)\n#<Mock:0x127bc0c>.value(:http_keepalive)">
---Backtrace---
(eval):1:in `value'
/Users/luke/git/puppet/lib/puppet/util/settings.rb:19:in `[]'
/Users/luke/git/puppet/lib/puppet.rb:92:in `[]'
/Users/luke/git/puppet/lib/puppet/network/xmlrpc/client.rb:126:in `initialize'
/Users/luke/git/puppet/lib/puppet/network/client.rb:94:in `new'
/Users/luke/git/puppet/lib/puppet/network/client.rb:94:in `initialize'
/Users/luke/git/puppet/lib/puppet/network/client/ca.rb:13:in `initialize'
./network/client/ca.rb:41:in `new'
./network/client/ca.rb:41:in `test_ca_server'
./network/client/ca.rb:41:in `test_ca_server'
---------------

3 tests, 9 assertions, 1 failures, 0 errors
[0.24.x ~/puppet/test]
luke@phage(0) $

Change History

05/27/08 01:07:42 changed by luke

  • owner changed from luke to jamtur01.
  • stage changed from Accepted to Ready for checkin.

Fixed in [8a22b59] and pushed to my personal repo in tickets/1265.

05/27/08 04:15:02 changed by jamtur01

  • status changed from new to closed.
  • resolution set to fixed.

Pushed to 0.24.x stable