From 1632578e695f62103026d27627e4e935f4b9a96d Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Thu, 1 Dec 2016 16:52:44 +0800 Subject: [PATCH] Fix spec test for sync Change-Id: I853120effd734f567ccd35a215a50e364cda5905 --- spec/classes/ironic_db_sync_spec.rb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/spec/classes/ironic_db_sync_spec.rb b/spec/classes/ironic_db_sync_spec.rb index 6cda1a08..575bb227 100644 --- a/spec/classes/ironic_db_sync_spec.rb +++ b/spec/classes/ironic_db_sync_spec.rb @@ -10,7 +10,13 @@ describe 'ironic::db::sync' do :path => '/usr/bin', :user => 'root', :refreshonly => 'true', - :logoutput => 'on_failure' + :try_sleep => 5, + :tries => 10, + :logoutput => 'on_failure', + :subscribe => ['Anchor[ironic::install::end]', + 'Anchor[ironic::config::end]', + 'Anchor[ironic::dbsync::begin]'], + :notify => 'Anchor[ironic::dbsync::end]', ) end @@ -25,7 +31,13 @@ describe 'ironic::db::sync' do :path => '/usr/bin', :user => 'root', :refreshonly => true, - :logoutput => 'on_failure' + :try_sleep => 5, + :tries => 10, + :logoutput => 'on_failure', + :subscribe => ['Anchor[ironic::install::end]', + 'Anchor[ironic::config::end]', + 'Anchor[ironic::dbsync::begin]'], + :notify => 'Anchor[ironic::dbsync::end]', ) } end