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