commit b1ba1d63763fe245321732106e8dd4ce91205c33 Author: ZhongShengping Date: Mon Oct 12 10:46:40 2020 +0800 Include deps class in unit test for sync Change-Id: I629f6031dcf27edacb9681f86fa7b0dd1433af2e diff --git a/spec/classes/heat_db_sync_spec.rb b/spec/classes/heat_db_sync_spec.rb index 121bbae..abc3df4 100644 --- a/spec/classes/heat_db_sync_spec.rb +++ b/spec/classes/heat_db_sync_spec.rb @@ -4,6 +4,8 @@ describe 'heat::db::sync' do shared_examples_for 'heat-dbsync' do + it { is_expected.to contain_class('heat::deps') } + it 'runs heat-manage db_sync' do is_expected.to contain_exec('heat-dbsync').with( :command => 'heat-manage --config-file /etc/heat/heat.conf db_sync',