debian-mirror-gitlab/spec/factories/prometheus_alert.rb
2020-03-09 13:42:32 +05:30

17 lines
330 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :prometheus_alert do
project
operator { :gt }
threshold { 1 }
environment do |alert|
build(:environment, project: alert.project)
end
prometheus_metric do |alert|
build(:prometheus_metric, project: alert.project)
end
end
end