From b24288f5cd5cea2ac8259adcfed0151fee55882b Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Mon, 12 Oct 2020 10:46:40 +0800 Subject: [PATCH] Include deps class in unit test for sync Change-Id: I0323cae0af6d10d24de9241397c16420f332c1b1 --- spec/classes/gnocchi_db_sync_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/classes/gnocchi_db_sync_spec.rb b/spec/classes/gnocchi_db_sync_spec.rb index 5677ced5..29c3d659 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 ',