summaryrefslogtreecommitdiff
path: root/spec/factories/metrics/dashboard/annotations.rb
blob: 2e5c373918efd0fb0b5e2dfcdb95b3f2eaed84f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

FactoryBot.define do
  factory :metrics_dashboard_annotation, class: '::Metrics::Dashboard::Annotation' do
    description { "Dashbaord annoation description" }
    dashboard_path { "custom_dashbaord.yml" }
    starting_at { Time.current }
    environment

    trait :with_cluster do
      cluster
      environment { nil }
    end
  end
end