summaryrefslogtreecommitdiff
path: root/spec/acceptance
diff options
context:
space:
mode:
authorDavid Schmitt <david.schmitt@puppet.com>2016-11-29 14:52:25 +0000
committerGitHub <noreply@github.com>2016-11-29 14:52:25 +0000
commitcb59da2359f956e3dccec228e16f6b3aaa6758c4 (patch)
tree20e5a93377af1e52ac074064065710dfa2aaa682 /spec/acceptance
parent85bdbcf79232f89203b65b9fa1a2e7bc7ddc067a (diff)
parente501cb1b646e9741fb6f2510a1a3a434041a4d33 (diff)
Merge pull request #693 from HelenCampbell/moreErrorDetail
(MODULES-3393) Deprecation - Use puppet stacktrace if available
Diffstat (limited to 'spec/acceptance')
-rw-r--r--spec/acceptance/deprecation_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/acceptance/deprecation_spec.rb b/spec/acceptance/deprecation_spec.rb
index ea13700..7a0b34c 100644
--- a/spec/acceptance/deprecation_spec.rb
+++ b/spec/acceptance/deprecation_spec.rb
@@ -82,4 +82,21 @@ describe 'deprecation function' do
it { is_expected.to be_file }
end
end
+
+ context 'puppet 3 test', if: get_puppet_version =~ /^3/ do
+ before :all do
+ @result = on(default, puppet('apply', '--parser=future', '-e', add_file_manifest), acceptable_exit_codes: (0...256))
+ end
+ after :all do
+ apply_manifest(remove_file_manifest)
+ end
+
+ it "should return a deprecation error" do
+ expect(@result.stderr).to match(/Warning: message/)
+ end
+ it "should pass without error" do
+ expect(@result.exit_code).to eq(0)
+ end
+ end
+
end