diff options
author | Andrew Smith <ansmith@redhat.com> | 2017-01-25 20:08:42 -0500 |
---|---|---|
committer | Andrew Smith <ansmith@redhat.com> | 2017-02-17 10:08:38 -0500 |
commit | e1a1a5cbedad165b4942d77f48c2c55605c70adb (patch) | |
tree | 64ebc34294e719738f9374fd7e2aa7126fc560f3 /spec/classes/tripleo_profile_base_ceilometer_spec.rb | |
parent | 3cea0982f96a523cfb8fa6bc323932636d193ddb (diff) |
Use rpc and notify transport_url for oslo_messaging backends
This commit adds the transport_url for specifying the oslo.messaging
rpc and notify transport schemes. The rpc or notification backend
can be one of rabbit, amqp, zmq, etc. Oslo.messaging is deprecating
the host, port and auth configuration options. All drivers will
get the options via the transport_url.
This patch:
* Adds transport_url to base services
* Updates the corresponding specs
* Adds to default hierdata
Depends-On: I1cf93d2caebfa1f7373c16754a2ad9bd15eb1a40
Change-Id: Iea5607dbb3ee6b1dd50acc1395de52dc920aa915
Diffstat (limited to 'spec/classes/tripleo_profile_base_ceilometer_spec.rb')
-rw-r--r-- | spec/classes/tripleo_profile_base_ceilometer_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/classes/tripleo_profile_base_ceilometer_spec.rb b/spec/classes/tripleo_profile_base_ceilometer_spec.rb index 075aff8..9173203 100644 --- a/spec/classes/tripleo_profile_base_ceilometer_spec.rb +++ b/spec/classes/tripleo_profile_base_ceilometer_spec.rb @@ -30,12 +30,14 @@ describe 'tripleo::profile::base::ceilometer' do context 'with step 3' do let(:params) { { :step => 3, - :rabbit_hosts => ['localhost1.localdomain', 'localhost2.localdomain'] + :oslomsg_rpc_hosts => [ '127.0.0.1' ], + :oslomsg_rpc_username => 'ceilometer', + :oslomsg_rpc_password => 'foo', } } it 'should trigger complete configuration' do is_expected.to contain_class('ceilometer').with( - :rabbit_hosts => params[:rabbit_hosts].map{ |h| h + ':5672' } + :default_transport_url => 'rabbit://ceilometer:foo@127.0.0.1:5672/?ssl=0' ) is_expected.to contain_class('ceilometer::config') end |