
OpenStack Infra has jobs to run this on both Ubuntu Trusty and CentOS7. * Add minitest to Gemfile (dependency to run beaker on centos - see http://projects.theforeman.org/issues/2650 for details) * separate nodepool files to have trusty & centos7 support in OS infra * rabbitmq_spec: add support for RH systems. * mysql_spec: removed .my.cnf dependency Change-Id: Ic4864e6e1a23a09057a332b6b6536e4ef4e3af00 Closes-bug: #1444736
34 lines
765 B
Ruby
34 lines
765 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 command("mysql -e 'show databases;' | grep -q beaker") do
|
|
it { should return_exit_status 0 }
|
|
end
|
|
|
|
end
|
|
end
|