69e809bcca
This change updates the values that are currently undefined to use $::os_service_default fact. Change-Id: Id0b1a696d4f151a776cd27acefb825f63fb0e162
32 lines
669 B
Ruby
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
|