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

« back to all changes in this revision

Viewing changes to spec/unit/configurer/downloader_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:
97
97
 
98
98
  describe "when creating the catalog to do the downloading" do
99
99
    before do
100
 
      @dler = Puppet::Configurer::Downloader.new("foo", "/download/path", "source")
 
100
      @path = File.expand_path("/download/path")
 
101
      @dler = Puppet::Configurer::Downloader.new("foo", @path, File.expand_path("source"))
101
102
    end
102
103
 
103
104
    it "should create a catalog and add the file to it" do
104
105
      catalog = @dler.catalog
105
106
      catalog.resources.size.should == 1
106
107
      catalog.resources.first.class.should == Puppet::Type::File
107
 
      catalog.resources.first.name.should == "/download/path"
 
108
      catalog.resources.first.name.should == @path
108
109
    end
109
110
 
110
111
    it "should specify that it is not managing a host catalog" do
121
122
      @dler = Puppet::Configurer::Downloader.new("foo", @dl_name, source_name)
122
123
    end
123
124
 
124
 
    it "should not skip downloaded resources when filtering on tags" do
 
125
    it "should not skip downloaded resources when filtering on tags", :fails_on_windows => true do
125
126
      Puppet[:tags] = 'maytag'
126
127
      @dler.evaluate
127
128