fix mysql connection

Change-Id: I381d30601613d7376d64b14cf471e128af90f40a
This commit is contained in:
melissaml 2018-03-05 13:17:31 +08:00
parent 0cec98ddab
commit 402d614337
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ describe 'cinder::db' do
context 'with MySQL-python library as backend package' do
let :params do
{ :database_connection => 'mysql://cinder:cinder@localhost/cinder', }
{ :database_connection => 'mysql+pymysql://cinder:cinder@localhost/cinder', }
end
it { is_expected.to contain_package('python-mysqldb').with(:ensure => 'present') }

View File

@ -3,7 +3,7 @@ describe 'cinder' do
let :req_params do
{
:rabbit_password => 'guest',
:database_connection => 'mysql://user:password@host/database',
:database_connection => 'mysql+pymysql://user:password@host/database',
:lock_path => '/var/lock/cinder',
}
end