diff options
author | 2017-02-20 16:04:16 +0000 | |
---|---|---|
committer | 2017-02-20 16:04:16 +0000 | |
commit | cacf9e6e928940a2718b03e833d585eab6050c30 (patch) | |
tree | 7c2ecf4d4135d718d2ebf40147e746634dba56cc /spec/classes/tripleo_profile_base_aodh_spec.rb | |
parent | 543afad72e79013a020f64306c4f7795d99dd7c6 (diff) | |
parent | e1a1a5cbedad165b4942d77f48c2c55605c70adb (diff) |
Merge "Use rpc and notify transport_url for oslo_messaging backends"
Diffstat (limited to 'spec/classes/tripleo_profile_base_aodh_spec.rb')
-rw-r--r-- | spec/classes/tripleo_profile_base_aodh_spec.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/spec/classes/tripleo_profile_base_aodh_spec.rb b/spec/classes/tripleo_profile_base_aodh_spec.rb index 3befa23..7ef49ec 100644 --- a/spec/classes/tripleo_profile_base_aodh_spec.rb +++ b/spec/classes/tripleo_profile_base_aodh_spec.rb @@ -34,12 +34,14 @@ describe 'tripleo::profile::base::aodh' do let(:params) { { :step => 3, :bootstrap_node => 'node.example.com', - :rabbit_hosts => ['localhost1.localdomain', 'localhost2.localdomain'] + :oslomsg_rpc_hosts => [ '127.0.0.1' ], + :oslomsg_rpc_username => 'aodh', + :oslomsg_rpc_password => 'foo', } } it 'should trigger complete configuration' do is_expected.to contain_class('aodh').with( - :rabbit_hosts => params[:rabbit_hosts].map { |h| h + ":5672" } + :default_transport_url => 'rabbit://aodh:foo@127.0.0.1:5672/?ssl=0' ) is_expected.to contain_class('aodh::auth') is_expected.to contain_class('aodh::config') @@ -67,12 +69,14 @@ describe 'tripleo::profile::base::aodh' do let(:params) { { :step => 4, :bootstrap_node => 'somethingelse.example.com', - :rabbit_hosts => ['localhost1.localdomain', 'localhost2.localdomain'] + :oslomsg_rpc_hosts => [ '127.0.0.1' ], + :oslomsg_rpc_username => 'aodh', + :oslomsg_rpc_password => 'foo', } } it 'should trigger aodh configuration without mysql grant' do is_expected.to contain_class('aodh').with( - :rabbit_hosts => params[:rabbit_hosts].map { |h| h + ":5672" } + :default_transport_url => 'rabbit://aodh:foo@127.0.0.1:5672/?ssl=0' ) is_expected.to contain_class('aodh::auth') is_expected.to contain_class('aodh::config') |