366deb93cb
This change updates the tests to use rspec-puppet-facts. Additionally this change fixes the relationship in zaqar::server_instance for Debian based systems. Change-Id: I03ce4ee17feec1f0ea7012ea116c9c12cf3bde5f
35 lines
922 B
Ruby
35 lines
922 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'zaqar::transport::websocket' do
|
|
|
|
shared_examples_for 'zaqar::transport::websocket' do
|
|
describe 'with custom values' do
|
|
let :params do
|
|
{
|
|
:bind => '1',
|
|
:port => '2',
|
|
:external_port => '3',
|
|
}
|
|
end
|
|
|
|
it 'configures custom values' do
|
|
is_expected.to contain_zaqar_config('drivers:transport:websocket/bind').with_value('1')
|
|
is_expected.to contain_zaqar_config('drivers:transport:websocket/port').with_value('2')
|
|
is_expected.to contain_zaqar_config('drivers:transport:websocket/external-port').with_value('3')
|
|
end
|
|
end
|
|
end
|
|
|
|
on_supported_os({
|
|
:supported_os => OSDefaults.get_supported_os
|
|
}).each do |os,facts|
|
|
context "on #{os}" do
|
|
let (:facts) do
|
|
facts.merge!(OSDefaults.get_facts())
|
|
end
|
|
|
|
it_configures 'zaqar::transport::websocket'
|
|
end
|
|
end
|
|
end
|