~lynxman/ubuntu/precise/puppet/puppetlabsfixbug12844

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2011-10-24 15:05:12 UTC
  • Revision ID: james.westby@ubuntu.com-20111024150512-yxqwfdp6hcs6of5l
Tags: 2.7.1-1ubuntu3.2
* SECURITY UPDATE: puppet master impersonation via incorrect certificates
  - debian/patches/CVE-2011-3872.patch: refactor certificate handling.
  - Thanks to upstream for providing the patch.
  - CVE-2011-3872

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