From 53d08911fd91f5a53386b1a7f011a0fadbd43ea3 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Thu, 25 May 2017 11:18:37 +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: I648faf04072a1c4f79e611ac0a87e0d69c942d5f Closes-Bug: #1693403 --- spec/classes/glare_db_spec.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spec/classes/glare_db_spec.rb b/spec/classes/glare_db_spec.rb index 06ffcf5..8099285 100644 --- a/spec/classes/glare_db_spec.rb +++ b/spec/classes/glare_db_spec.rb @@ -85,7 +85,7 @@ describe 'glare::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' @@ -100,9 +100,6 @@ describe 'glare::db' do { :database_connection => 'mysql+pymysql://glare:glare@localhost/glare', } end - it 'install the proper backend package' do - is_expected.not_to contain_package('db_backend_package') - end end end