@@ -162,7 +162,7 @@ class { 'kafka::broker':
162
162
apply_manifest ( pp , catch_failures : true )
163
163
end
164
164
165
- describe file ( '/etc/systemd/system/kafka.service' ) , if : ( fact ( 'operatingsystemmajrelease' ) == '7' && fact ( 'osfamily' ) == 'RedHat' ) do
165
+ describe file ( '/etc/systemd/system/kafka.service' ) do
166
166
it { is_expected . to be_file }
167
167
it { is_expected . to be_owned_by 'root' }
168
168
it { is_expected . to be_grouped_into 'root' }
@@ -197,17 +197,7 @@ class { 'kafka::broker':
197
197
apply_manifest ( pp , catch_changes : true )
198
198
end
199
199
200
- describe file ( '/etc/init.d/kafka' ) , if : ( fact ( 'service_provider' ) == 'upstart' && fact ( 'osfamily' ) == 'Debian' ) do
201
- it { is_expected . to be_file }
202
- it { is_expected . to be_owned_by 'root' }
203
- it { is_expected . to be_grouped_into 'root' }
204
- it { is_expected . to contain %r{^# Provides:\s +kafka$} }
205
- it { is_expected . to contain 'export KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote"' }
206
- it { is_expected . to contain 'export KAFKA_HEAP_OPTS="-Xmx512M -Xmx512M"' }
207
- it { is_expected . to contain 'export KAFKA_LOG4J_OPTS="-Dlog4j.configuration=file:/tmp/log4j.properties"' }
208
- end
209
-
210
- describe file ( '/etc/systemd/system/kafka.service' ) , if : ( fact ( 'operatingsystemmajrelease' ) == '7' && fact ( 'osfamily' ) == 'RedHat' ) do
200
+ describe file ( '/etc/systemd/system/kafka.service' ) do
211
201
it { is_expected . to be_file }
212
202
it { is_expected . to be_owned_by 'root' }
213
203
it { is_expected . to be_grouped_into 'root' }
0 commit comments