]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Fixes for PE3.3.
authorAshley Penney <ashley.penney@puppetlabs.com>
Tue, 3 Jun 2014 15:11:08 +0000 (11:11 -0400)
committerAshley Penney <ashley.penney@puppetlabs.com>
Tue, 3 Jun 2014 15:11:08 +0000 (11:11 -0400)
spec/acceptance/fqdn_rotate_spec.rb
spec/acceptance/parseyaml_spec.rb

index b7f8bf8ab9f47e43a3d051d50b77a132d430f614..fc8bea24ea3358cce4450c8c78c9a943fe631929 100755 (executable)
@@ -14,6 +14,7 @@ describe 'fqdn_rotate function', :unless => UNSUPPORTED_PLATFORMS.include?(fact(
       shell("if [ -f #{facts_d}/fqdn.txt ] ; then rm #{facts_d}/fqdn.txt ; fi")
     end
     it 'fqdn_rotates floats' do
+      shell("mkdir -p #{facts_d}")
       shell("echo 'fqdn=fakehost.localdomain' > #{facts_d}/fqdn.txt")
       pp = <<-EOS
       $a = ['a','b','c','d']
index 4b4bf3df3df036c49bef5be2e29a8678777bb730..5819837cfa1aaab11a66c4a42ab7e080d777b473 100755 (executable)
@@ -26,7 +26,7 @@ describe 'parseyaml function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('o
       EOS
 
       apply_manifest(pp, :expect_failures => true) do |r|
-        expect(r.stderr).to match(/syntax error/)
+        expect(r.stderr).to match(/(syntax error|did not find expected key)/)
       end
     end