~ubuntu-branches/ubuntu/trusty/puppet/trusty

« back to all changes in this revision

Viewing changes to .pc/CVE-2011-3872.patch/spec/integration/network/handler_spec.rb

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-10-22 14:08:22 UTC
  • mfrom: (1.1.25) (3.1.32 sid)
  • Revision ID: package-import@ubuntu.com-20111022140822-odxde5lohc45yhuz
Tags: 2.7.6-1
* New upstream release (CVE-2011-3872)
* Remove cherry-picked "groupadd_aix_warning" patch
* Install all new manpages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env rspec
2
 
require 'spec_helper'
3
 
 
4
 
require 'puppet/network/client'
5
 
 
6
 
describe Puppet::Network::Handler do
7
 
  %w{ca filebucket fileserver master report runner status}.each do |name|
8
 
    it "should have a #{name} client" do
9
 
      Puppet::Network::Handler.handler(name).should be_instance_of(Class)
10
 
    end
11
 
 
12
 
    it "should have a name" do
13
 
      Puppet::Network::Handler.handler(name).name.to_s.downcase.should == name.to_s.downcase
14
 
    end
15
 
 
16
 
    it "should have an interface" do
17
 
      Puppet::Network::Handler.handler(name).interface.should_not be_nil
18
 
    end
19
 
 
20
 
    it "should have a prefix for the interface" do
21
 
      Puppet::Network::Handler.handler(name).interface.prefix.should_not be_nil
22
 
    end
23
 
  end
24
 
end