# encoding: utf-8

require 'spec_helper'

describe 'kafka::configure' do
  describe file('/opt/kafka/config/log4j.properties') do
    it { should be_a_file }
    it { should be_owned_by('kafka') }
    it { should be_grouped_into('kafka') }
    it { should be_mode 644 }
  end

  describe file('/opt/kafka/config/server.properties') do
    it { should be_a_file }
    it { should be_owned_by('kafka') }
    it { should be_grouped_into('kafka') }
    it { should be_mode 644 }
  end

  describe file('/etc/init.d/kafka') do
    it { should be_a_file }
    it { should be_owned_by('root') }
    it { should be_grouped_into('root') }
    it { should be_mode 755 }
  end

  describe service('kafka') do
    let(:path) { '/sbin:/usr/sbin' }
    it { should be_enabled }
  end
end

# encoding: utf-8

require 'spec_helper'

describe 'kafka::configure' do
  describe file('/opt/kafka/config/log4j.properties') do
    it { should be_a_file }
    it { should be_owned_by('kafka') }
    it { should be_grouped_into('kafka') }
    it { should be_mode 644 }
  end

  describe file('/opt/kafka/config/server.properties') do
    it { should be_a_file }
    it { should be_owned_by('kafka') }
    it { should be_grouped_into('kafka') }
    it { should be_mode 644 }
  end

  describe service('kafka') do
    it { should be_enabled }
  end
end

Remove init file requirement from configuration integration test
Remove init file requirement from configuration integration test