~ubuntu-branches/ubuntu/wily/puppet/wily-proposed

« back to all changes in this revision

Viewing changes to spec/integration/parser/catalog_spec.rb

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2014-10-24 13:47:15 UTC
  • mfrom: (3.1.64 sid)
  • Revision ID: package-import@ubuntu.com-20141024134715-6ig54u0c4gar36ss
Tags: 3.7.2-1
* Imported upstream release 3.7.2
* Declare compliance with Debian Policy 3.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        expect(resources_in(agent_catalog)).to_not include(*exported_resources)
76
76
      end
77
77
    end
 
78
  end
 
79
 
 
80
  describe 'using classic parser' do
 
81
    before :each do
 
82
      Puppet[:parser] = 'current'
 
83
    end
 
84
    it_behaves_like 'when compiled' do
 
85
    end
78
86
 
79
87
    it "compiles resource creation from appended array as two separate resources" do
80
88
      # moved here from acceptance test "jeff_append_to_array.rb"
92
100
    end
93
101
  end
94
102
 
95
 
  describe 'using classic parser' do
96
 
    before :each do
97
 
      Puppet[:parser] = 'current'
98
 
    end
99
 
    it_behaves_like 'when compiled' do
100
 
    end
101
 
  end
102
 
 
103
103
  describe 'using future parser' do
104
104
    before :each do
105
105
      Puppet[:parser] = 'future'
113
113
  end
114
114
 
115
115
  def master_and_agent_catalogs_for(manifest)
116
 
    master_catalog = Puppet::Resource::Catalog::Compiler.new.filter(compile_to_catalog(manifest))
 
116
    compiler = Puppet::Resource::Catalog::Compiler.new
 
117
    master_catalog = compiler.filter(compile_to_catalog(manifest))
117
118
    agent_catalog = Puppet::Resource::Catalog.convert_from(:pson, master_catalog.render(:pson))
118
 
 
119
119
    [master_catalog, agent_catalog]
120
120
  end
121
121