diff options
author | Adam Jacob <adam@opscode.com> | 2009-08-02 23:11:00 -0700 |
---|---|---|
committer | Adam Jacob <adam@opscode.com> | 2009-08-20 13:31:58 -0700 |
commit | 8517f537679380e8462d6f3883bf7d890498bc94 (patch) | |
tree | 555262a045295c190b132a214a4c966a84266aa1 /features | |
parent | e0ff0ed1a1217bd0238c8a0b5d73433c2281f2c9 (diff) | |
download | chef-8517f537679380e8462d6f3883bf7d890498bc94.tar.gz |
Removing further non-back-compat changes
Diffstat (limited to 'features')
-rw-r--r-- | features/support/env.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/features/support/env.rb b/features/support/env.rb index 702c7fd47c..8690680783 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -62,7 +62,7 @@ end def delete_databases c = Chef::REST.new(Chef::Config[:couchdb_url], nil, nil) - %w{chef_integration}.each do |db| + %w{chef_integration chef_integration_safe}.each do |db| begin c.delete_rest("#{db}/") rescue @@ -80,12 +80,11 @@ def create_databases Chef::Role.sync_from_disk_to_couchdb end - def create_validation # TODO: Create the validation certificate here - File.open("#{Dir.tmpdir}/validation.pem", "w") do |f| - f.print response["private_key"] - end +# File.open("#{Dir.tmpdir}/validation.pem", "w") do |f| +# f.print response["private_key"] +# end end def prepare_replicas @@ -95,9 +94,7 @@ def prepare_replicas c.delete_rest("chef_integration") end -at_exit do - c = Chef::REST.new(Chef::Config[:couchdb_url], nil, nil) - c.delete_rest("chef_integration_safe") +def cleanup File.unlink(File.join(Dir.tmpdir, "validation.pem")) end @@ -106,6 +103,7 @@ end ### setup_logging setup_nanite +cleanup delete_databases create_databases create_validation |