|
32 | 32 | 'dashboard_port' => '8080',
|
33 | 33 | 'dashboard_user' => 'admin',
|
34 | 34 | 'dashboard_password' => 'secret',
|
35 |
| - 'enabled' => false |
| 35 | + 'enabled' => 'false' |
36 | 36 | )}
|
37 | 37 |
|
38 | 38 | it { should contain_class('sensu::client').with(
|
39 | 39 | 'address' => '1.2.3.4',
|
40 | 40 | 'subscriptions' => [],
|
41 | 41 | 'client_name' => 'myhost.domain.com',
|
42 |
| - 'enabled' => true |
| 42 | + 'enabled' => 'true' |
43 | 43 | )}
|
44 | 44 |
|
45 |
| - it { should contain_class('sensu::service::server').with_enabled(false) } |
46 |
| - it { should contain_class('sensu::service::client').with_enabled(true) } |
| 45 | + it { should contain_class('sensu::service::server').with_enabled('false') } |
| 46 | + it { should contain_class('sensu::service::client').with_enabled('true') } |
47 | 47 | end
|
48 | 48 |
|
49 | 49 |
|
50 | 50 | context 'setting all params' do
|
51 | 51 | let(:params) { {
|
52 | 52 | :rabbitmq_password => 'asdfjkl',
|
53 |
| - :server => true, |
54 |
| - :client => false, |
55 | 53 | :version => '0.9.10',
|
56 | 54 | :install_repo => false,
|
57 | 55 | :rabbitmq_port => '1234',
|
|
99 | 97 | 'dashboard_port' => '5678',
|
100 | 98 | 'dashboard_user' => 'dashuser',
|
101 | 99 | 'dashboard_password' => 'dashpass',
|
102 |
| - 'enabled' => true |
| 100 | + 'enabled' => 'true' |
103 | 101 | )}
|
104 | 102 |
|
105 | 103 | it { should contain_class('sensu::client').with(
|
106 | 104 | 'address' => '127.0.0.1',
|
107 | 105 | 'subscriptions' => ['all'],
|
108 | 106 | 'client_name' => 'myhost',
|
109 |
| - 'enabled' => false |
| 107 | + 'enabled' => 'false' |
110 | 108 | )}
|
111 | 109 |
|
112 |
| - it { should contain_class('sensu::service::server').with_enabled(true) } |
113 |
| - it { should contain_class('sensu::service::client').with_enabled(false) } |
| 110 | + it { should contain_class('sensu::service::server').with_enabled('true') } |
| 111 | + it { should contain_class('sensu::service::client').with_enabled('false') } |
114 | 112 | end
|
115 | 113 |
|
116 | 114 | context 'server and client' do
|
117 |
| - let(:params) { { :rabbitmq_password => 'asdfjkl', :server => true, :client => true } } |
| 115 | + let(:params) { { :rabbitmq_password => 'asdfjkl', :server => 'true', :client => 'true' } } |
118 | 116 | let(:facts) { { :fqdn => 'myhost.domain.com', :ipaddress => '1.2.3.4' } }
|
119 | 117 |
|
120 | 118 | it { should contain_class('sensu::rabbitmq').with(
|
|
123 | 121 | end
|
124 | 122 |
|
125 | 123 | context 'neither server nor client' do
|
126 |
| - let(:params) { { :rabbitmq_password => 'asdfjkl', :server => false, :client => false } } |
| 124 | + let(:params) { { :rabbitmq_password => 'asdfjkl', :server => 'false', :client => 'false' } } |
127 | 125 | let(:facts) { { :fqdn => 'myhost.domain.com', :ipaddress => '1.2.3.4' } }
|
128 | 126 |
|
129 | 127 | it { should contain_class('sensu::rabbitmq').with(
|
|
0 commit comments