From 5e9e1713e81a0b37d4479704eb8c2ea4a6c5f3c4 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Fri, 16 Mar 2018 11:37:15 +0800 Subject: [PATCH] Fix unit test for sync Change-Id: I52108da38ba34d48bf4c4f3486eb883ee32786a4 --- spec/classes/mistral_db_sync_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/classes/mistral_db_sync_spec.rb b/spec/classes/mistral_db_sync_spec.rb index c845b6a..3f3d230 100644 --- a/spec/classes/mistral_db_sync_spec.rb +++ b/spec/classes/mistral_db_sync_spec.rb @@ -14,6 +14,10 @@ describe 'mistral::db::sync' do :try_sleep => 5, :tries => 10, :logoutput => 'on_failure', + :subscribe => ['Anchor[mistral::install::end]', + 'Anchor[mistral::config::end]', + 'Anchor[mistral::dbsync::begin]'], + :notify => 'Anchor[mistral::dbsync::end]', :tag => 'openstack-db', ) @@ -23,6 +27,10 @@ describe 'mistral::db::sync' do :user => 'mistral', :refreshonly => 'true', :logoutput => 'on_failure', + :subscribe => ['Anchor[mistral::install::end]', + 'Anchor[mistral::config::end]', + 'Anchor[mistral::dbsync::begin]'], + :notify => 'Anchor[mistral::dbsync::end]', :tag => 'openstack-db', )