summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorwenchma <wenchma@cn.ibm.com>2015-06-12 14:48:03 +0800
committerwenchma <wenchma@cn.ibm.com>2015-06-12 15:06:43 +0800
commit3c0ceb9f4cd47b6030e9399f380a998bb0f89fc7 (patch)
tree7a30bdd948bace7be53d4c265b7205ae0d4d9be2 /spec
parent0b9410309810d412de30cb672d98ed273800d965 (diff)
Add rabbitmq max_retries and retry_interval in cinder conf
Oslo.message using rabbit_max_retries and rabbit_retry_interval to define reconnect rabbitmq server times and interval when can not connect to rabbitmq server. Change-Id: I449f7be68dd9c9adbad587a47cf9d9dcc3462369 Closes-bug: #1439968
Notes
Notes (review): Verified+2: Jenkins Code-Review+2: Mark Vanderwiel <vanderwl@us.ibm.com> Workflow+1: JJ Asghar <jj@getchef.com> Submitted-by: Jenkins Submitted-at: Fri, 12 Jun 2015 17:51:31 +0000 Reviewed-on: https://review.openstack.org/190955 Project: stackforge/cookbook-openstack-block-storage Branch: refs/heads/master
Diffstat (limited to 'spec')
-rw-r--r--spec/cinder_common_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/cinder_common_spec.rb b/spec/cinder_common_spec.rb
index 6d7b0df..c935b3c 100644
--- a/spec/cinder_common_spec.rb
+++ b/spec/cinder_common_spec.rb
@@ -437,6 +437,14 @@ describe 'openstack-block-storage::cinder-common' do
437 437
438 expect(chef_run).to render_config_file(file.name).with_section_content('oslo_messaging_rabbit', /^kombu_ssl_version=TLSv1.2$/) 438 expect(chef_run).to render_config_file(file.name).with_section_content('oslo_messaging_rabbit', /^kombu_ssl_version=TLSv1.2$/)
439 end 439 end
440
441 it 'has the default rabbit_retry_interval set' do
442 expect(chef_run).to render_config_file(file.name).with_section_content('oslo_messaging_rabbit', /^rabbit_retry_interval=1$/)
443 end
444
445 it 'has the default rabbit_max_retries set' do
446 expect(chef_run).to render_config_file(file.name).with_section_content('oslo_messaging_rabbit', /^rabbit_max_retries=0$/)
447 end
440 end 448 end
441 449
442 context 'qpid as mq service' do 450 context 'qpid as mq service' do