From 504401e1ed0f6faef949d116c3d44605bae35c97 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Thu, 25 May 2017 11:34:19 +0800 Subject: [PATCH] Fix unit test The db_backend_package name has changed in puppet-oslo[0], so fix it. [0]: https://review.openstack.org/#/c/467582/ Change-Id: I51da2265d7caaeb3e0e02e002d44f02868c271c4 Closes-Bug: #1693403 --- spec/classes/sahara_db_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/classes/sahara_db_spec.rb b/spec/classes/sahara_db_spec.rb index e5f997e0..6a7f2d07 100644 --- a/spec/classes/sahara_db_spec.rb +++ b/spec/classes/sahara_db_spec.rb @@ -86,7 +86,7 @@ describe 'sahara::db' do end it 'install the proper backend package' do - is_expected.to contain_package('db_backend_package').with( + is_expected.to contain_package('python-pymysql').with( :ensure => 'present', :name => 'python-pymysql', :tag => 'openstack' @@ -101,7 +101,6 @@ describe 'sahara::db' do { :database_connection => 'mysql+pymysql://sahara:sahara@localhost/sahara', } end - it { is_expected.not_to contain_package('db_backend_package') } end end