#46 Add Prometheus exporter

This commit is contained in:
Tobias Kantusch
2021-02-18 18:02:56 +01:00
committed by Sebastian Serth
parent 39fcd255f9
commit 44b32b6f6a
26 changed files with 2121 additions and 45 deletions

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
FactoryBot.define do
factory :rfc, class: RequestForComment do
factory :rfc, class: 'RequestForComment' do
association :user, factory: :external_user
association :submission
association :exercise, factory: :dummy
@ -7,5 +9,12 @@ FactoryBot.define do
sequence :question do |n|
"test question #{n}"
end
factory :rfc_with_comment, class: 'RequestForComment' do
after(:create) do |rfc|
rfc.file = rfc.submission.files.first
Comment.create(file: rfc.file, user: rfc.user, text: "comment for rfc #{rfc.question}")
end
end
end
end