Merge pull request #794 from DavidS/fm-4563-share-tmpdir

(FM-4563) fix tmpdir to be shared across examples
This commit is contained in:
TP Honey 2016-01-19 11:40:53 +00:00
commit bc1c44afa4

View file

@ -2,12 +2,14 @@ require 'spec_helper_acceptance'
describe 'mysql class' do
describe 'advanced config' do
let(:tmpdir) { default.tmpdir('mysql') }
before(:all) do
@tmpdir = default.tmpdir('mysql')
end
let(:pp) do
<<-EOS
class { 'mysql::server':
config_file => '#{tmpdir}/my.cnf',
includedir => '#{tmpdir}/include',
config_file => '#{@tmpdir}/my.cnf',
includedir => '#{@tmpdir}/include',
manage_config_file => 'true',
override_options => { 'mysqld' => { 'key_buffer_size' => '32M' }},
package_ensure => 'present',