puppet-neutron/spec/classes/neutron_client_spec.rb
Sergey Kolekonov 69e809bcca Move Neutron to $::os_service_default - part 1
This change updates the values that are currently undefined to use
$::os_service_default fact.

Change-Id: Id0b1a696d4f151a776cd27acefb825f63fb0e162
2015-11-26 17:39:06 +03:00

32 lines
669 B
Ruby

require 'spec_helper'
describe 'neutron::client' do
let :test_facts do
{ :operatingsystem => 'default',
:operatingsystemrelease => 'default'
}
end
context 'on Debian platforms' do
let :facts do
@default_facts.merge(test_facts.merge({
:osfamily => 'Debian'
}))
end
it { is_expected.to contain_class('neutron::client') }
end
context 'on RedHat platforms' do
let :facts do
@default_facts.merge(test_facts.merge({
:osfamily => 'RedHat',
:operatingsystemrelease => '7'
}))
end
it { is_expected.to contain_class('neutron::client') }
end
end