Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #49 from datasift/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
AndyJS committed Aug 12, 2015
2 parents b967449 + 3498780 commit 05e9540
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
7 changes: 7 additions & 0 deletions chef/cookbooks/historics-reader/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@
action :create_if_missing
end

directory '/etc/cron.d' do
owner 'root'
group 'historicsreader'
mode '0775'
action :create
end

cron_d 'historics-reader-cron' do
minute '*/5'
command 'java -cp "/etc/datasift/*:/etc/datasift/:'\
Expand Down
16 changes: 6 additions & 10 deletions chef/test/integration/default/serverspec/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

describe file('/var/lib/grafana/grafana.db') do
it { should be_file }
its(:md5sum) { should eq 'bd94e374df06347ba77770ba59ed0fd9' }
its(:md5sum) { should eq '970175db812f0014c22e6762045bb186' }
it { should be_owned_by 'grafana' }
it { should be_grouped_into 'grafana' }
it { should be_readable }
Expand Down Expand Up @@ -151,7 +151,7 @@

end

describe 'historics-api::default' do
describe 'historics-reader::default' do

describe package('historics-reader') do
it { should be_installed }
Expand All @@ -161,9 +161,9 @@
it { should exist }
end

describe file('/usr/lib/datasift/historics-reader/reader.json') do
describe file('/etc/datasift/historics-reader/reader.json') do
it { should be_owned_by 'historicsreader' }
its(:md5sum) { should eq 'd979264965d687f60c08e1b58c075d34' }
its(:md5sum) { should eq 'b4d65791d2db8ee48a05b41b9260942e' }
end

end
Expand All @@ -174,15 +174,11 @@
it { should be_installed }
end

describe package('historics') do
it { should be_installed }
end

describe user('historicsapi') do
it { should exist }
end

describe file('/usr/lib/datasift/historics-api/config.json') do
describe file('/usr/lib/datasift/historics-api/config.js') do
it { should be_owned_by 'historicsapi' }
its(:md5sum) { should eq '3a5e37ad317a5ad0ddc3abc2f9ab3f6b' }
end
Expand All @@ -207,7 +203,7 @@
it { should exist }
end

describe file('/usr/lib/datasift/historics-api/db.sqlite.js') do
describe file('/usr/lib/datasift/historics-api/db.sqlite') do
it { should exist }
end

Expand Down

0 comments on commit 05e9540

Please sign in to comment.