From d9d02718b89d45e3a7774df37afd1943e365fea3 Mon Sep 17 00:00:00 2001 From: Travis Fields Date: Wed, 31 Dec 2014 15:06:33 -0800 Subject: [PATCH] MODULES-1520 add test to assert it does not break --- spec/acceptance/types/mysql_user_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/acceptance/types/mysql_user_spec.rb b/spec/acceptance/types/mysql_user_spec.rb index a0fa4f7..26b4faa 100644 --- a/spec/acceptance/types/mysql_user_spec.rb +++ b/spec/acceptance/types/mysql_user_spec.rb @@ -52,4 +52,14 @@ describe 'mysql_user' do end end end + context 'using resource should throw no errors' do + describe 'find users' do + it { + on default, puppet('resource mysql_user'), {:catch_failures => true} do |r| + expect(r.stdout).to_not match(/Error:/) + expect(r.stdout).to_not match(/must be properly quoted, invalid character:/) + end + } + end + end end