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

« back to all changes in this revision

Viewing changes to spec/integration/indirector/file_content/file_server_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
1
#!/usr/bin/env rspec
2
 
#
3
 
#  Created by Luke Kanies on 2007-10-18.
4
 
#  Copyright (c) 2007. All rights reserved.
5
 
 
6
2
require 'spec_helper'
7
3
 
8
4
require 'puppet/indirector/file_content/file_server'
10
6
 
11
7
require 'puppet_spec/files'
12
8
 
13
 
describe Puppet::Indirector::FileContent::FileServer, " when finding files" do
 
9
describe Puppet::Indirector::FileContent::FileServer, " when finding files", :fails_on_windows => true do
14
10
  it_should_behave_like "Puppet::Indirector::FileServerTerminus"
15
11
  include PuppetSpec::Files
16
12
 
17
13
  before do
18
14
    @terminus = Puppet::Indirector::FileContent::FileServer.new
19
15
    @test_class = Puppet::FileServing::Content
 
16
    Puppet::FileServing::Configuration.instance_variable_set(:@configuration, nil)
20
17
  end
21
18
 
22
19
  it "should find plugin file content in the environment specified in the request" do
62
59
  end
63
60
 
64
61
  it "should find file content in files when node name expansions are used" do
65
 
    Puppet::Util::Cacher.expire
66
62
    FileTest.stubs(:exists?).returns true
67
63
    FileTest.stubs(:exists?).with(Puppet[:fileserverconfig]).returns(true)
68
64