Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-12 15:09:47 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-12 15:09:47 +0300
commitef7cfec30c9fab7b9e757877c472ca7ca2eccc2d (patch)
treef69647e6f64c16fad044d564db65cb51c7a0b63f /spec/factories
parent0e1a6f6a2b28464e6ad151da4dced6d603bd11b0 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/alert_management/alerts.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/alert_management/alerts.rb b/spec/factories/alert_management/alerts.rb
index 28cfe5d6b29..d98fed4a6b1 100644
--- a/spec/factories/alert_management/alerts.rb
+++ b/spec/factories/alert_management/alerts.rb
@@ -3,6 +3,7 @@ require 'ffaker'
FactoryBot.define do
factory :alert_management_alert, class: 'AlertManagement::Alert' do
+ triggered
project
title { FFaker::Lorem.sentence }
started_at { Time.current }
@@ -35,6 +36,11 @@ FactoryBot.define do
ended_at { nil }
end
+ trait :triggered do
+ status { AlertManagement::Alert::STATUSES[:triggered] }
+ without_ended_at
+ end
+
trait :acknowledged do
status { AlertManagement::Alert::STATUSES[:acknowledged] }
without_ended_at