diff --git a/.kitchen.yml b/.kitchen.yml index 529882c..9c41224 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -32,6 +32,9 @@ suites: - name: init run_list: - recipe[prometheus::default] + provisioner: + name: chef_zero + require_chef_omnibus: 11.12.4 attributes: prometheus: init_style: 'init' diff --git a/recipes/binary.rb b/recipes/binary.rb index 0397211..d2c1d3c 100644 --- a/recipes/binary.rb +++ b/recipes/binary.rb @@ -19,6 +19,10 @@ include_recipe 'ark::default' +%w( curl tar bzip2 ).each do |pkg| + package pkg +end + dir_name = ::File.basename(node['prometheus']['dir']) dir_path = ::File.dirname(node['prometheus']['dir']) diff --git a/test/integration/bluepill-binary/serverspec/binary_spec.rb b/test/integration/bluepill-binary/serverspec/binary_spec.rb index af4eb06..95956e9 100644 --- a/test/integration/bluepill-binary/serverspec/binary_spec.rb +++ b/test/integration/bluepill-binary/serverspec/binary_spec.rb @@ -10,7 +10,7 @@ end describe 'prometheus should be exposing metrics' do - describe command("wget 'http://localhost:9090/metrics' -q -O -") do + describe command("curl 'http://localhost:9090/metrics'") do its(:stdout) { should match(/prometheus_notifications_queue_capacity 100/) } end end diff --git a/test/integration/default-binary/serverspec/binary_spec.rb b/test/integration/default-binary/serverspec/binary_spec.rb index eb07595..a31c614 100644 --- a/test/integration/default-binary/serverspec/binary_spec.rb +++ b/test/integration/default-binary/serverspec/binary_spec.rb @@ -10,7 +10,7 @@ end describe 'prometheus should be exposing metrics' do - describe command("wget 'http://localhost:9090/metrics' -q -O -") do + describe command("curl 'http://localhost:9090/metrics'") do its(:stdout) { should match(/prometheus_notifications_queue_capacity 100/) } end end diff --git a/test/integration/init-binary/serverspec/binary_spec.rb b/test/integration/init-binary/serverspec/binary_spec.rb index 5b104e7..e0ff2c0 100644 --- a/test/integration/init-binary/serverspec/binary_spec.rb +++ b/test/integration/init-binary/serverspec/binary_spec.rb @@ -10,7 +10,7 @@ end describe 'prometheus should be exposing metrics' do - describe command("wget 'http://localhost:9090/metrics' -q -O -") do + describe command("curl 'http://localhost:9090/metrics'") do its(:stdout) { should match(/prometheus_notifications_queue_capacity 100/) } end end