Commit 1930ac6b authored by David Fernandez's avatar David Fernandez

Merge branch 'pedropombeiro/349542/3-rename-audit-service' into 'master'

Rename RunnerRegistrationAuditEventService

See merge request gitlab-org/gitlab!81445
parents 84d6de14 b01d3f01
# frozen_string_literal: true
module AuditEvents
class RegisterRunnerAuditEventService < RunnerRegistrationAuditEventService
class RegisterRunnerAuditEventService < RunnerAuditEventService
def token_field
:runner_registration_token
end
......
# frozen_string_literal: true
module AuditEvents
class RunnerRegistrationAuditEventService < ::AuditEventService
# Logs an audit event related to a runner registration event
class RunnerAuditEventService < ::AuditEventService
# Logs an audit event related to a runner event
#
# @param [Ci::Runner] runner
# @param [String, User] author the entity initiating the operation (e.g. a runner registration or authentication token)
......@@ -43,10 +43,6 @@ module AuditEvents
raise NotImplementedError, "Please implement #{self.class}##{__method__}"
end
def author_class
raise NotImplementedError, "Please implement #{self.class}##{__method__}"
end
def runner_type
@runner.runner_type.chomp('_type')
end
......
# frozen_string_literal: true
module AuditEvents
class UnregisterRunnerAuditEventService < RunnerRegistrationAuditEventService
class UnregisterRunnerAuditEventService < RunnerAuditEventService
def token_field
:runner_authentication_token
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment