Skip to content

Commit

Permalink
Merge pull request voxpupuli#237 from blupman/redis_spec_tests
Browse files Browse the repository at this point in the history
extra spec tests for redis_exporter
  • Loading branch information
LongLiveCHIEF authored Jul 31, 2018
2 parents a295981 + 16ff27c commit 076667f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/classes/redis_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,17 @@
}
end

it { is_expected.to compile.with_all_deps }
describe 'install correct binary' do
it { is_expected.to contain_file('/usr/local/bin/redis_exporter').with('target' => '/opt/redis_exporter-0.11.2.linux-amd64/redis_exporter') }
it { is_expected.to contain_file('/opt/redis_exporter-0.11.2.linux-amd64') }
it { is_expected.to contain_archive('/tmp/redis_exporter-0.11.2.tar.gz') }
end
describe 'required resources' do
it { is_expected.to contain_group('redis-exporter') }
it { is_expected.to contain_prometheus__daemon('redis_exporter') }
it { is_expected.to contain_service('redis_exporter') }
it { is_expected.to contain_user('redis-exporter') }
end
end
end
Expand Down

0 comments on commit 076667f

Please sign in to comment.