
Option "verbose" from group "DEFAULT" is deprecated for removal. The parameter has no effect. Deprecated verbose in all classes Remove verbose in README Remove verbose from tests. If this option is not set explicitly, there is no such warning. Change-Id: Iedbc3ea8824fdef8e1e5434d8be9463704c0579a
72 lines
2.0 KiB
Ruby
72 lines
2.0 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,
|
|
}
|
|
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
|