Fix the rspecs by adding include repository before

Change-Id: I51cdc6b3f7396b8b5d9fe830d10f18bd5ee9b5dd
This commit is contained in:
Alex Ruiz Estradera 2016-08-12 17:09:24 +02:00
parent f0c12f35b6
commit 0467dbbeeb
4 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,7 @@ describe 'midonet::agent class' do
# Using puppet_apply as a helper
it 'should install the midonet agent without any errors' do
pp = <<-EOS
include ::midonet::repository
class { 'midonet_openstack::role::nsdb':
}
class { 'midonet::agent':

View File

@ -5,11 +5,12 @@ describe 'midonet::analytics class' do
# Using puppet_apply as a helper
it 'should install the midonet analytics without any errors' do
pp = <<-EOS
include ::midonet::repository
class { 'midonet::analytics':
is_mem => false,
manage_repo => false,
mem_username => undef,
mem_password => undef,
mem_password => undef,
zookeeper_hosts => [{ 'ip' => '127.0.0.1', 'port' => '2181' }],
}
EOS

View File

@ -5,6 +5,7 @@ describe 'midonet::cli class' do
# Using puppet_apply as a helper
it 'should work without any errors' do
pp = <<-EOS
include ::midonet::repository
class {'midonet::cli':
api_endpoint => 'http://127.0.0.1:8181/midonet-api',
username => 'admin',

View File

@ -5,6 +5,7 @@ describe 'midonet::cluster class' do
# Using puppet_apply as a helper
it 'should install the midonet cluster without any errors' do
pp = <<-EOS
include ::midonet::repository
class { 'midonet::cluster':
zookeeper_hosts => [{ 'ip' => '127.0.0.1', 'port' => '2181' }],
cassandra_servers => ['127.0.0.1'],