Add unit tests
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
parent
83cee98ded
commit
99b539988c
@ -66,7 +66,8 @@ describe 'cloud::compute::controller' do
|
||||
:rabbit_virtual_host => '/',
|
||||
:memcached_servers => ['10.0.0.1','10.0.0.2'],
|
||||
:database_connection => 'mysql://nova:secrete@10.0.0.1/nova?charset=utf8',
|
||||
:glance_api_servers => 'http://10.0.0.1:9292'
|
||||
:glance_api_servers => 'http://10.0.0.1:9292',
|
||||
:log_dir => false
|
||||
)
|
||||
should contain_nova_config('DEFAULT/resume_guests_state_on_host_boot').with('value' => true)
|
||||
should contain_nova_config('DEFAULT/default_availability_zone').with('value' => 'MyZone')
|
||||
|
@ -92,7 +92,8 @@ describe 'cloud::compute::hypervisor' do
|
||||
:rabbit_virtual_host => '/',
|
||||
:memcached_servers => ['10.0.0.1','10.0.0.2'],
|
||||
:database_connection => 'mysql://nova:secrete@10.0.0.1/nova?charset=utf8',
|
||||
:glance_api_servers => 'http://10.0.0.1:9292'
|
||||
:glance_api_servers => 'http://10.0.0.1:9292',
|
||||
:log_dir => false
|
||||
)
|
||||
should contain_nova_config('DEFAULT/resume_guests_state_on_host_boot').with('value' => true)
|
||||
should contain_nova_config('DEFAULT/default_availability_zone').with('value' => 'MyZone')
|
||||
|
@ -110,7 +110,8 @@ describe 'cloud::identity' do
|
||||
:bind_host => '10.0.0.1',
|
||||
:public_port => '5000',
|
||||
:admin_port => '35357',
|
||||
:token_expiration => '3600'
|
||||
:token_expiration => '3600',
|
||||
:log_dir => false
|
||||
)
|
||||
should contain_keystone_config('ec2/driver').with('value' => 'keystone.contrib.ec2.backends.sql.Ec2')
|
||||
end
|
||||
|
@ -58,7 +58,7 @@ describe 'cloud::image' do
|
||||
:log_facility => 'LOG_LOCAL0',
|
||||
:bind_host => '10.0.0.1',
|
||||
:bind_port => '9292',
|
||||
:use_syslog => true
|
||||
:use_syslog => true,
|
||||
)
|
||||
end
|
||||
|
||||
@ -74,7 +74,9 @@ describe 'cloud::image' do
|
||||
:log_facility => 'LOG_LOCAL0',
|
||||
:bind_host => '10.0.0.1',
|
||||
:bind_port => '9191',
|
||||
:use_syslog => true
|
||||
:use_syslog => true,
|
||||
:log_dir => false,
|
||||
:log_file => false,
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -59,7 +59,8 @@ describe 'cloud::network::controller' do
|
||||
:rabbit_virtual_host => '/',
|
||||
:bind_host => '10.0.0.1',
|
||||
:core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin',
|
||||
:service_plugins => ['neutron.services.loadbalancer.plugin.LoadBalancerPlugin','neutron.services.metering.metering_plugin.MeteringPlugin','neutron.services.l3_router.l3_router_plugin.L3RouterPlugin']
|
||||
:service_plugins => ['neutron.services.loadbalancer.plugin.LoadBalancerPlugin','neutron.services.metering.metering_plugin.MeteringPlugin','neutron.services.l3_router.l3_router_plugin.L3RouterPlugin'],
|
||||
:log_dir => false
|
||||
|
||||
)
|
||||
should contain_class('neutron::agents::ovs').with(
|
||||
|
@ -54,7 +54,8 @@ describe 'cloud::network::dhcp' do
|
||||
:rabbit_virtual_host => '/',
|
||||
:bind_host => '10.0.0.1',
|
||||
:core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin',
|
||||
:service_plugins => ['neutron.services.loadbalancer.plugin.LoadBalancerPlugin','neutron.services.metering.metering_plugin.MeteringPlugin','neutron.services.l3_router.l3_router_plugin.L3RouterPlugin']
|
||||
:service_plugins => ['neutron.services.loadbalancer.plugin.LoadBalancerPlugin','neutron.services.metering.metering_plugin.MeteringPlugin','neutron.services.l3_router.l3_router_plugin.L3RouterPlugin'],
|
||||
:log_dir => false
|
||||
|
||||
)
|
||||
should contain_class('neutron::agents::ovs').with(
|
||||
|
@ -54,7 +54,8 @@ describe 'cloud::network::l3' do
|
||||
:rabbit_virtual_host => '/',
|
||||
:bind_host => '10.0.0.1',
|
||||
:core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin',
|
||||
:service_plugins => ['neutron.services.loadbalancer.plugin.LoadBalancerPlugin','neutron.services.metering.metering_plugin.MeteringPlugin','neutron.services.l3_router.l3_router_plugin.L3RouterPlugin']
|
||||
:service_plugins => ['neutron.services.loadbalancer.plugin.LoadBalancerPlugin','neutron.services.metering.metering_plugin.MeteringPlugin','neutron.services.l3_router.l3_router_plugin.L3RouterPlugin'],
|
||||
:log_dir => false
|
||||
|
||||
)
|
||||
should contain_class('neutron::agents::ovs').with(
|
||||
|
@ -53,7 +53,8 @@ describe 'cloud::network::lbaas' do
|
||||
:rabbit_virtual_host => '/',
|
||||
:bind_host => '10.0.0.1',
|
||||
:core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin',
|
||||
:service_plugins => ['neutron.services.loadbalancer.plugin.LoadBalancerPlugin','neutron.services.metering.metering_plugin.MeteringPlugin','neutron.services.l3_router.l3_router_plugin.L3RouterPlugin']
|
||||
:service_plugins => ['neutron.services.loadbalancer.plugin.LoadBalancerPlugin','neutron.services.metering.metering_plugin.MeteringPlugin','neutron.services.l3_router.l3_router_plugin.L3RouterPlugin'],
|
||||
:log_dir => false
|
||||
|
||||
)
|
||||
should contain_class('neutron::agents::ovs').with(
|
||||
|
@ -49,7 +49,8 @@ describe 'cloud::network::vpn' do
|
||||
:rabbit_virtual_host => '/',
|
||||
:bind_host => '10.0.0.1',
|
||||
:core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin',
|
||||
:service_plugins => ['neutron.services.loadbalancer.plugin.LoadBalancerPlugin','neutron.services.metering.metering_plugin.MeteringPlugin','neutron.services.l3_router.l3_router_plugin.L3RouterPlugin']
|
||||
:service_plugins => ['neutron.services.loadbalancer.plugin.LoadBalancerPlugin','neutron.services.metering.metering_plugin.MeteringPlugin','neutron.services.l3_router.l3_router_plugin.L3RouterPlugin'],
|
||||
:log_dir => false
|
||||
|
||||
)
|
||||
should contain_class('neutron::agents::ovs').with(
|
||||
|
@ -65,7 +65,8 @@ describe 'cloud::orchestration::api' do
|
||||
:keystone_protocol => 'http',
|
||||
:keystone_password => 'secrete',
|
||||
:auth_uri => 'http://10.0.0.1:5000/v2.0',
|
||||
:sql_connection => 'mysql://heat:secrete@10.0.0.1/heat'
|
||||
:sql_connection => 'mysql://heat:secrete@10.0.0.1/heat',
|
||||
:log_dir => false
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -68,7 +68,8 @@ describe 'cloud::orchestration::engine' do
|
||||
:keystone_protocol => 'http',
|
||||
:keystone_password => 'secrete',
|
||||
:auth_uri => 'http://10.0.0.1:5000/v2.0',
|
||||
:sql_connection => 'mysql://heat:secrete@10.0.0.1/heat'
|
||||
:sql_connection => 'mysql://heat:secrete@10.0.0.1/heat',
|
||||
:log_dir => false
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -58,7 +58,8 @@ describe 'cloud::volume::controller' do
|
||||
:rabbit_password => 'secrete',
|
||||
:rabbit_virtual_host => '/',
|
||||
:log_facility => 'LOG_LOCAL0',
|
||||
:use_syslog => true
|
||||
:use_syslog => true,
|
||||
:log_dir => false
|
||||
)
|
||||
should contain_class('cinder::ceilometer')
|
||||
end
|
||||
|
@ -53,7 +53,8 @@ describe 'cloud::volume::storage' do
|
||||
:rabbit_password => 'secrete',
|
||||
:rabbit_virtual_host => '/',
|
||||
:log_facility => 'LOG_LOCAL0',
|
||||
:use_syslog => true
|
||||
:use_syslog => true,
|
||||
:log_dir => false
|
||||
)
|
||||
|
||||
should contain_cinder_config('DEFAULT/notification_driver').with('value' => 'cinder.openstack.common.notifier.rpc_notifier')
|
||||
|
Loading…
x
Reference in New Issue
Block a user