Skip to content

Commit 5bb20a0

Browse files
author
Travis Fields
committed
Merge branch '1.0.x' to capture FutureParser tests and removal of tests/init.pp
2 parents 325eef1 + af63f40 commit 5bb20a0

File tree

3 files changed

+10
-21
lines changed

3 files changed

+10
-21
lines changed

spec/acceptance/exec_powershell_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
describe 'powershell provider:' do #, :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
44
shared_examples 'should fail' do |manifest, error_check|
55
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)
77
end
88
end
99

1010
shared_examples 'apply success' do |manifest|
1111
it 'should succeed' do
12-
apply_manifest(manifest, :catch_failures => true)
12+
apply_manifest(manifest, :catch_failures => true, :future_parser => FUTURE_PARSER)
1313
end
1414
end
1515

@@ -24,10 +24,10 @@
2424
MANIFEST
2525
it 'should not error on first run' do
2626
# 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)
2828
end
2929
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
3131
end
3232
end
3333

@@ -41,7 +41,7 @@
4141
MANIFEST
4242

4343
describe file('c:/services.txt') do
44-
apply_manifest(p2, :catch_failures => true)
44+
apply_manifest(p2, :catch_failures => true, :future_parser => FUTURE_PARSER)
4545
it { should be_file }
4646
its(:content) { should match /puppet/ }
4747
end
@@ -69,7 +69,7 @@
6969
}
7070
MANIFEST
7171
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)
7373
it { should be_file }
7474
its(:content) { should match /puppet/ }
7575
end
@@ -91,7 +91,7 @@
9191
}
9292
MANIFEST
9393
describe file(outfile) do
94-
apply_manifest(pp, :catch_failures => true)
94+
apply_manifest(pp, :catch_failures => true, :future_parser => FUTURE_PARSER)
9595
it { should be_file }
9696
its(:content) { should match /svchost/ }
9797
end
@@ -120,7 +120,7 @@
120120
}
121121
MANIFEST
122122
it 'should not fail' do
123-
apply_manifest(padmin, :catch_failures => true)
123+
apply_manifest(padmin, :catch_failures => true, :future_parser => FUTURE_PARSER)
124124
end
125125
end
126126

spec/spec_helper_acceptance.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44

55
UNSUPPORTED_PLATFORMS = ['debian', 'ubuntu', 'Solaris']
6+
FUTURE_PARSER = ENV['FUTURE_PARSER'] == 'true' || false
67

78
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
89
is_foss = (ENV['IS_PE'] == 'no' || ENV['IS_PE'] == 'false') ? true : false
910
if hosts.first.is_pe? && !is_foss
1011
install_pe
1112
else
12-
version = ENV['PUPPET_VERSION'] || '3.6.2'
13+
version = ENV['PUPPET_VERSION'] || '3.7.1'
1314
download_url = ENV['WIN_DOWNLOAD_URL'] || 'http://downloads.puppetlabs.com/windows/'
1415
hosts.each do |host|
1516
if host['platform'] =~ /windows/i

tests/init.pp

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)