Commit 65d6e23d authored by allison.browne's avatar allison.browne Committed by Ash McKenzie

Add more config to job and fix spec

parent 697ef021
......@@ -9,7 +9,9 @@ module Clusters
include CronjobQueue
# rubocop:enable Scalability/CronWorkerContext
queue_namespace :incident_management
feature_category :incident_management
urgency :low
idempotent!
......
......@@ -194,10 +194,10 @@ describe Clusters::Cluster, :use_clean_rails_memory_store_caching do
subject { described_class.with_project_alert_service_data(project_id) }
let!(:cluster) { create(:cluster, :project) }
let(:project_id) { cluster.first_project.id }
let!(:project_id) { cluster.first_project.id }
context 'project has alert service data' do
let(:alert_service) { create(:alerts_service, project: cluster.clusterable) }
let!(:alerts_service) { create(:alerts_service, project: cluster.clusterable) }
it { is_expected.to include(cluster) }
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment