Fix spec test for sync

Change-Id: If0e50ebedae466621d62006b801fde99aac20c25
This commit is contained in:
ZhongShengping 2016-12-01 17:26:45 +08:00
parent a3201c931a
commit 84b39a4451

View File

@ -9,7 +9,13 @@ describe 'neutron::db::sync' do
:command => 'neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini upgrade heads', :command => 'neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini upgrade heads',
:path => '/usr/bin', :path => '/usr/bin',
:refreshonly => 'true', :refreshonly => 'true',
:logoutput => 'on_failure' :try_sleep => 5,
:tries => 10,
:logoutput => 'on_failure',
:subscribe => ['Anchor[neutron::install::end]',
'Anchor[neutron::config::end]',
'Anchor[neutron::dbsync::begin]'],
:notify => 'Anchor[neutron::dbsync::end]',
) )
end end
@ -25,7 +31,13 @@ describe 'neutron::db::sync' do
:command => 'neutron-db-manage --config-file /etc/neutron/neutron.conf upgrade heads', :command => 'neutron-db-manage --config-file /etc/neutron/neutron.conf upgrade heads',
:path => '/usr/bin', :path => '/usr/bin',
:refreshonly => 'true', :refreshonly => 'true',
:logoutput => 'on_failure' :try_sleep => 5,
:tries => 10,
:logoutput => 'on_failure',
:subscribe => ['Anchor[neutron::install::end]',
'Anchor[neutron::config::end]',
'Anchor[neutron::dbsync::begin]'],
:notify => 'Anchor[neutron::dbsync::end]',
) )
} }
end end