4ccae65825
This patch does multiple things regarding auth_* parameters. 1/ We deprecate auth_host, auth_url, auth_port and auth_protocol If they are set, a nice warning will show up and mention the parameters will be dropped in a future release. The parameters are still having effect but will configure old parameters. No worries, they still work. Just lot of warnings so people will have to use new parameters. 2/ Add new parameters auth_uri and identity_uri are the way to go! False by default for now, because we still have old parameters, but in a later release, they'll be set to a default endpoint, like in other modules. 3/ Update beaker We want to test with the new parameters, so let's update beaker manifests and use auth_uri & identity_uri This is a first step to use auth_uri & identity_uri that is compliant with other modules. The next step will be to drop old parameters and set the right default values for the 2 new params. Change-Id: I66d5233c8981763a0a341740911fb24dd0e8d479 Closes-bug: #1504653
75 lines
2.1 KiB
Ruby
75 lines
2.1 KiB
Ruby
require 'spec_helper_acceptance'
|
|
|
|
describe 'basic trove' do
|
|
|
|
context 'default parameters' do
|
|
|
|
it 'should work with no errors' do
|
|
pp= <<-EOS
|
|
include ::openstack_integration
|
|
include ::openstack_integration::repos
|
|
include ::openstack_integration::rabbitmq
|
|
include ::openstack_integration::mysql
|
|
include ::openstack_integration::keystone
|
|
|
|
rabbitmq_user { 'trove':
|
|
admin => true,
|
|
password => 'an_even_bigger_secret',
|
|
provider => 'rabbitmqctl',
|
|
require => Class['rabbitmq'],
|
|
}
|
|
|
|
rabbitmq_user_permissions { 'trove@/':
|
|
configure_permission => '.*',
|
|
write_permission => '.*',
|
|
read_permission => '.*',
|
|
provider => 'rabbitmqctl',
|
|
require => Class['rabbitmq'],
|
|
}
|
|
|
|
# Trove resources
|
|
class { '::trove':
|
|
database_connection => 'mysql+pymysql://trove:a_big_secret@127.0.0.1/trove?charset=utf8',
|
|
rabbit_userid => 'trove',
|
|
rabbit_password => 'an_even_bigger_secret',
|
|
rabbit_host => '127.0.0.1',
|
|
nova_proxy_admin_pass => 'a_big_secret',
|
|
}
|
|
class { '::trove::db::mysql':
|
|
password => 'a_big_secret',
|
|
}
|
|
class { '::trove::keystone::auth':
|
|
password => 'a_big_secret',
|
|
}
|
|
class { '::trove::api':
|
|
keystone_password => 'a_big_secret',
|
|
identity_uri => 'http://127.0.0.1:35357/',
|
|
auth_uri => 'http://127.0.0.1:5000/',
|
|
debug => true,
|
|
verbose => true,
|
|
}
|
|
class { '::trove::client': }
|
|
class { '::trove::conductor':
|
|
debug => true,
|
|
verbose => true,
|
|
}
|
|
class { '::trove::taskmanager':
|
|
debug => true,
|
|
verbose => true,
|
|
}
|
|
class { '::trove::quota': }
|
|
EOS
|
|
|
|
|
|
# Run it twice and test for idempotency
|
|
apply_manifest(pp, :catch_failures => true)
|
|
apply_manifest(pp, :catch_changes => true)
|
|
end
|
|
|
|
describe port(8779) do
|
|
it { is_expected.to be_listening.with('tcp') }
|
|
end
|
|
|
|
end
|
|
end
|