fix specs to align with new ops-database mysql connection syntax

Change-Id: I614c72ff33765e84ba4141234e32d575f09891a9
This commit is contained in:
Jan Klare 2017-08-17 16:05:01 +02:00
parent 5d7a11aeb3
commit a0635f0804
No known key found for this signature in database
GPG Key ID: 1F8C347A7DC77FD2
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ describe 'openstack-image::api' do
it do
[
%r{^connection = mysql://glance:db-pass@127\.0\.0\.1:3306/glance\?charset=utf8$}
%r{^connection = mysql\+pymysql://glance:db-pass@127\.0\.0\.1:3306/glance\?charset=utf8$}
].each do |line|
expect(chef_run).to render_config_file(file.name)
.with_section_content('database', line)

View File

@ -104,7 +104,7 @@ describe 'openstack-image::registry' do
it do
[
%r{^connection = mysql://glance:db-pass@127\.0\.0\.1:3306/glance\?charset=utf8$}
%r{^connection = mysql\+pymysql://glance:db-pass@127\.0\.0\.1:3306/glance\?charset=utf8$}
].each do |line|
expect(chef_run).to render_config_file(file.name)
.with_section_content('database', line)