1 require 'spec_helper_acceptance'
3 describe 'openstacklib mysql' do
5 context 'default parameters' do
7 it 'should work with no errors' do
9 Exec { logoutput => 'on_failure' }
11 class { '::mysql::server': }
13 ::openstacklib::db::mysql { 'beaker':
14 password_hash => mysql_password('keystone'),
15 allowed_hosts => '127.0.0.1',
19 # Run it twice and test for idempotency
20 apply_manifest(pp, :catch_failures => true)
21 apply_manifest(pp, :catch_changes => true)
24 describe port(3306) do
25 it { is_expected.to be_listening.with('tcp') }
28 describe 'test database listing' do
29 it 'should list beaker database' do
30 expect(shell("mysql -e 'show databases;'|grep -q beaker").exit_code).to be_zero