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

« back to all changes in this revision

Viewing changes to .pc/CVE-2011-3872.patch/spec/unit/face/certificate_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
 
require 'puppet/face'
4
 
 
5
 
require 'puppet/ssl/host'
6
 
 
7
 
describe Puppet::Face[:certificate, '0.0.1'] do
8
 
  it "should have a ca-location option" do
9
 
    subject.should be_option :ca_location
10
 
  end
11
 
 
12
 
  it "should set the ca location when invoked" do
13
 
    Puppet::SSL::Host.expects(:ca_location=).with(:foo)
14
 
    Puppet::SSL::Host.indirection.expects(:save)
15
 
    subject.sign "hello, friend", :ca_location => :foo
16
 
  end
17
 
 
18
 
  it "(#7059) should set the ca location when an inherited action is invoked" do
19
 
    Puppet::SSL::Host.expects(:ca_location=).with(:foo)
20
 
    subject.indirection.expects(:find)
21
 
    subject.find "hello, friend", :ca_location => :foo
22
 
  end
23
 
end