Tobias Urdin c0ffd3502d Update puppetlabs-mysql dependency to min 6.0.0
And change the upper constraint to be the latest
8.0.0 release. See all other patches on this topic.

Change-Id: I30f0367c9eeafe7e8b45c348c3df5630f29fa6a2
2019-02-13 12:17:21 +00:00

36 lines
834 B
Ruby

require 'spec_helper_acceptance'
describe 'openstacklib mysql' do
context 'default parameters' do
it 'should work with no errors' do
pp= <<-EOS
Exec { logoutput => 'on_failure' }
class { '::mysql::server': }
::openstacklib::db::mysql { 'beaker':
password_hash => mysql::password('keystone'),
allowed_hosts => '127.0.0.1',
}
EOS
# Run it twice and test for idempotency
apply_manifest(pp, :catch_failures => true)
apply_manifest(pp, :catch_changes => true)
end
describe port(3306) do
it { is_expected.to be_listening.with('tcp') }
end
describe 'test database listing' do
it 'should list beaker database' do
expect(shell("mysql -e 'show databases;'|grep -q beaker").exit_code).to be_zero
end
end
end
end