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

job_annotations.rb « ci « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4569b7eea0aaa400c60f9f08b97b764399360635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

FactoryBot.define do
  factory :ci_job_annotation, class: 'Ci::JobAnnotation' do
    sequence(:name) { |n| "annotation_#{n}" }
    job factory: :ci_build

    trait :external_link do
      data { [{ external_link: { label: 'Example URL', url: 'https://example.com/' } }] }
    end
  end
end