Sha256: 5e273ae152e4ec009098f569d4147db79933f6e244079dd7b042ac5098741e84

Contents?: true

Size: 746 Bytes

Versions: 7

Compression:

Stored size: 746 Bytes

Contents

#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../../spec_helper'

require 'puppet/network/handler'

describe Puppet::Network::Handler do
  %w{ca filebucket fileserver master report runner status}.each do |name|
    it "should have a #{name} client" do
      Puppet::Network::Handler.handler(name).should be_instance_of(Class)
    end

    it "should have a name" do
      Puppet::Network::Handler.handler(name).name.to_s.downcase.should == name.to_s.downcase
    end

    it "should have an interface" do
      Puppet::Network::Handler.handler(name).interface.should_not be_nil
    end

    it "should have a prefix for the interface" do
      Puppet::Network::Handler.handler(name).interface.prefix.should_not be_nil
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
puppet-2.6.18 spec/integration/network/handler_spec.rb
puppet-2.6.17 spec/integration/network/handler_spec.rb
puppet-2.6.16 spec/integration/network/handler_spec.rb
puppet-2.6.15 spec/integration/network/handler_spec.rb
puppet-2.6.14 spec/integration/network/handler_spec.rb
puppet-2.6.13 spec/integration/network/handler_spec.rb
puppet-2.6.12 spec/integration/network/handler_spec.rb