b3e9387285
It's not working correctly for now, let's disable it, like we did in puppet-openstack-integration. Change-Id: Icfe0da6ed635d82e0504860dbf978035fc983286
76 lines
2.2 KiB
Ruby
76 lines
2.2 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,
|
|
}
|
|
class { '::trove::client': }
|
|
class { '::trove::conductor':
|
|
debug => true,
|
|
}
|
|
if ($::operatingsystem == 'Ubuntu') and (versioncmp($::operatingsystemmajrelease, '16') >= 0) {
|
|
warning('trove::taskmanager is disabled now, not working correctly on Xenial.')
|
|
} else {
|
|
class { '::trove::taskmanager':
|
|
debug => 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
|