require 'chef_helper'

describe Prometheus do
  it 'should return a list of known services' do
    expect(Prometheus.services).to match_array(%w(
                                                 prometheus
                                                 node-exporter
                                                 redis-exporter
                                                 postgres-exporter
                                                 gitlab-monitor
                                               ))
  end
end

require 'chef_helper'

describe Prometheus do
  before { Services.add_services('gitlab', Gitlab::Services.list) }

  it 'should return a list of known services' do
    expect(Prometheus.services).to match_array(%w(
                                                 prometheus
                                                 node-exporter
                                                 redis-exporter
                                                 postgres-exporter
                                                 gitlab-monitor
                                               ))
  end
end

Load services for the prometheus library test
Load services for the prometheus library test
