|
3 | 3 | describe 'powershell provider:' do #, :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
|
4 | 4 | shared_examples 'should fail' do |manifest, error_check|
|
5 | 5 | it 'should throw an error' do
|
6 |
| - expect { apply_manifest(manifest, :catch_failures => true) }.to raise_error(error_check) |
| 6 | + expect { apply_manifest(manifest, :catch_failures => true, :future_parser => FUTURE_PARSER) }.to raise_error(error_check) |
7 | 7 | end
|
8 | 8 | end
|
9 | 9 |
|
10 | 10 | shared_examples 'apply success' do |manifest|
|
11 | 11 | it 'should succeed' do
|
12 |
| - apply_manifest(manifest, :catch_failures => true) |
| 12 | + apply_manifest(manifest, :catch_failures => true, :future_parser => FUTURE_PARSER) |
13 | 13 | end
|
14 | 14 | end
|
15 | 15 |
|
|
24 | 24 | MANIFEST
|
25 | 25 | it 'should not error on first run' do
|
26 | 26 | # Run it twice and test for idempotency
|
27 |
| - apply_manifest(p1, :catch_failures => true) |
| 27 | + apply_manifest(p1, :catch_failures => true, :future_parser => FUTURE_PARSER) |
28 | 28 | end
|
29 | 29 | it 'should be idempotent' do
|
30 |
| - expect(apply_manifest(p1, :catch_failures => true).exit_code).to be_zero |
| 30 | + expect(apply_manifest(p1, :catch_failures => true, :future_parser => FUTURE_PARSER).exit_code).to be_zero |
31 | 31 | end
|
32 | 32 | end
|
33 | 33 |
|
|
41 | 41 | MANIFEST
|
42 | 42 |
|
43 | 43 | describe file('c:/services.txt') do
|
44 |
| - apply_manifest(p2, :catch_failures => true) |
| 44 | + apply_manifest(p2, :catch_failures => true, :future_parser => FUTURE_PARSER) |
45 | 45 | it { should be_file }
|
46 | 46 | its(:content) { should match /puppet/ }
|
47 | 47 | end
|
|
69 | 69 | }
|
70 | 70 | MANIFEST
|
71 | 71 | describe file('c:/temp/services.csv') do
|
72 |
| - apply_manifest(p2, :catch_failures => true) |
| 72 | + apply_manifest(p2, :catch_failures => true, :future_parser => FUTURE_PARSER) |
73 | 73 | it { should be_file }
|
74 | 74 | its(:content) { should match /puppet/ }
|
75 | 75 | end
|
|
91 | 91 | }
|
92 | 92 | MANIFEST
|
93 | 93 | describe file(outfile) do
|
94 |
| - apply_manifest(pp, :catch_failures => true) |
| 94 | + apply_manifest(pp, :catch_failures => true, :future_parser => FUTURE_PARSER) |
95 | 95 | it { should be_file }
|
96 | 96 | its(:content) { should match /svchost/ }
|
97 | 97 | end
|
|
120 | 120 | }
|
121 | 121 | MANIFEST
|
122 | 122 | it 'should not fail' do
|
123 |
| - apply_manifest(padmin, :catch_failures => true) |
| 123 | + apply_manifest(padmin, :catch_failures => true, :future_parser => FUTURE_PARSER) |
124 | 124 | end
|
125 | 125 | end
|
126 | 126 |
|
|
0 commit comments