summaryrefslogtreecommitdiffstats
path: root/spec/unit/network/server.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-05-02 13:47:44 -0500
committerLuke Kanies <luke@madstop.com>2008-05-02 13:47:44 -0500
commit6356c043a44c771d707750f96f7660a1093be9ac (patch)
tree509a3b2cdce0ff91ff62b960ac9c4c66de55ff2e /spec/unit/network/server.rb
parent4c590df607f3d2cb6921b8d8269862a4f8f2456c (diff)
downloadpuppet-6356c043a44c771d707750f96f7660a1093be9ac.tar.gz
puppet-6356c043a44c771d707750f96f7660a1093be9ac.tar.xz
puppet-6356c043a44c771d707750f96f7660a1093be9ac.zip
Switched puppetmasterd to use the new-style server plumbing.
The code is much cleaner, and it seems to be mostly functional, but we have to pick a strategy for signing the host's certificate on first startup. Also, I haven't actually done end-to-end testing yet, which needs the certs working first.
Diffstat (limited to 'spec/unit/network/server.rb')
-rw-r--r--spec/unit/network/server.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/network/server.rb b/spec/unit/network/server.rb
index 5c1c63520..941474bc5 100644
--- a/spec/unit/network/server.rb
+++ b/spec/unit/network/server.rb
@@ -98,6 +98,16 @@ describe Puppet::Network::Server do
@server = Puppet::Network::Server.new(:address => "127.0.0.1", :port => 31337)
end
+ it "should listen when started" do
+ @server.expects(:listen)
+ @server.start
+ end
+
+ it "should unlisten when stopped" do
+ @server.expects(:unlisten)
+ @server.stop
+ end
+
describe "when managing indirection registrations" do
before do
Puppet::Indirector::Indirection.stubs(:model).returns mock('indirection')