|
26 | 26 | 'dashboard_port' => '8080',
|
27 | 27 | 'dashboard_user' => 'admin',
|
28 | 28 | 'dashboard_password' => 'secret',
|
29 |
| - 'enabled' => false |
| 29 | + 'enabled' => 'false' |
30 | 30 | )}
|
31 | 31 |
|
32 | 32 | it { should contain_class('sensu::client').with(
|
33 | 33 | 'address' => '1.2.3.4',
|
34 | 34 | 'subscriptions' => [],
|
35 | 35 | 'client_name' => 'myhost.domain.com',
|
36 |
| - 'enabled' => true |
| 36 | + 'enabled' => 'true' |
37 | 37 | )}
|
38 | 38 |
|
39 |
| - it { should contain_class('sensu::service::server').with_enabled(false) } |
40 |
| - it { should contain_class('sensu::service::client').with_enabled(true) } |
| 39 | + it { should contain_class('sensu::service::server').with_enabled('false') } |
| 40 | + it { should contain_class('sensu::service::client').with_enabled('true') } |
41 | 41 | end
|
42 | 42 |
|
43 | 43 |
|
44 | 44 | context 'setting all params' do
|
45 | 45 | let(:params) { {
|
46 | 46 | :rabbitmq_password => 'asdfjkl',
|
47 |
| - :server => true, |
48 |
| - :client => false, |
| 47 | + :server => 'true', |
| 48 | + :client => 'false', |
49 | 49 | :rabbitmq_port => '1234',
|
50 | 50 | :rabbitmq_host => 'rabbithost',
|
51 | 51 | :rabbitmq_user => 'sensuuser',
|
|
85 | 85 | 'dashboard_port' => '5678',
|
86 | 86 | 'dashboard_user' => 'dashuser',
|
87 | 87 | 'dashboard_password' => 'dashpass',
|
88 |
| - 'enabled' => true |
| 88 | + 'enabled' => 'true' |
89 | 89 | )}
|
90 | 90 |
|
91 | 91 | it { should contain_class('sensu::client').with(
|
92 | 92 | 'address' => '127.0.0.1',
|
93 | 93 | 'subscriptions' => ['all'],
|
94 | 94 | 'client_name' => 'myhost',
|
95 |
| - 'enabled' => false |
| 95 | + 'enabled' => 'false' |
96 | 96 | )}
|
97 | 97 |
|
98 |
| - it { should contain_class('sensu::service::server').with_enabled(true) } |
99 |
| - it { should contain_class('sensu::service::client').with_enabled(false) } |
| 98 | + it { should contain_class('sensu::service::server').with_enabled('true') } |
| 99 | + it { should contain_class('sensu::service::client').with_enabled('false') } |
100 | 100 | end
|
101 | 101 |
|
102 | 102 | context 'server and client' do
|
103 |
| - let(:params) { { :rabbitmq_password => 'asdfjkl', :server => true, :client => true } } |
| 103 | + let(:params) { { :rabbitmq_password => 'asdfjkl', :server => 'true', :client => 'true' } } |
104 | 104 | let(:facts) { { :fqdn => 'myhost.domain.com', :ipaddress => '1.2.3.4' } }
|
105 | 105 |
|
106 | 106 | it { should contain_class('sensu::rabbitmq').with(
|
|
109 | 109 | end
|
110 | 110 |
|
111 | 111 | context 'neither server nor client' do
|
112 |
| - let(:params) { { :rabbitmq_password => 'asdfjkl', :server => false, :client => false } } |
| 112 | + let(:params) { { :rabbitmq_password => 'asdfjkl', :server => 'false', :client => 'false' } } |
113 | 113 | let(:facts) { { :fqdn => 'myhost.domain.com', :ipaddress => '1.2.3.4' } }
|
114 | 114 |
|
115 | 115 | it { should contain_class('sensu::rabbitmq').with(
|
|
0 commit comments