diff options
| author | Luke Kanies <luke@madstop.com> | 2008-05-05 21:16:25 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-05-05 21:16:25 -0500 |
| commit | 51ce6746bc4c865b307af77b0967b345bf095aa8 (patch) | |
| tree | b4c9f2ddf36d025ddb2ff728c9f6f9d3899b029c | |
| parent | 62f1f5e1514b4283750558f0019331de8e9460a4 (diff) | |
| download | puppet-51ce6746bc4c865b307af77b0967b345bf095aa8.tar.gz puppet-51ce6746bc4c865b307af77b0967b345bf095aa8.tar.xz puppet-51ce6746bc4c865b307af77b0967b345bf095aa8.zip | |
Fixing the webrick integration tests to use the newly-functional
SSL code.
| -rwxr-xr-x | spec/integration/network/server/webrick.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/integration/network/server/webrick.rb b/spec/integration/network/server/webrick.rb index 120f2946c..ab9e94605 100755 --- a/spec/integration/network/server/webrick.rb +++ b/spec/integration/network/server/webrick.rb @@ -9,7 +9,6 @@ describe Puppet::Network::Server do describe "when using webrick" do before :each do Puppet[:servertype] = 'webrick' - Puppet[:hostcrl] = 'false' @params = { :address => "127.0.0.1", :port => 34343, :handlers => [ :node ], :xmlrpc_handlers => [ :status ] } # Get a safe temporary file @@ -19,6 +18,8 @@ describe Puppet::Network::Server do Puppet.settings[:confdir] = @dir Puppet.settings[:vardir] = @dir + Puppet::SSL::Host.ca_location = :local + ca = Puppet::SSL::CertificateAuthority.new ca.generate(Puppet[:certname]) unless Puppet::SSL::Certificate.find(Puppet[:certname]) end @@ -26,6 +27,11 @@ describe Puppet::Network::Server do after do @tmpfile.delete Puppet.settings.clear + + # This is necessary so the terminus instances don't lie around. + Puppet::SSL::Key.indirection.clear_cache + Puppet::SSL::Certificate.indirection.clear_cache + Puppet::SSL::CertificateRequest.indirection.clear_cache end describe "before listening" do |
