feat: Use git email as performer when available
This commit is contained in:
@@ -42,7 +42,7 @@ class CliTestCase < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def assert_hook_ran(hook, output, version:, service_version:, hosts:, command:, subcommand: nil, runtime: false)
|
||||
performer = `whoami`.strip
|
||||
performer = Kamal::Git.email.presence || `whoami`.chomp
|
||||
service = service_version.split("@").first
|
||||
|
||||
assert_match "Running the #{hook} hook...\n", output
|
||||
|
||||
@@ -12,7 +12,7 @@ class CommandsAuditorTest < ActiveSupport::TestCase
|
||||
}
|
||||
|
||||
@auditor = new_command
|
||||
@performer = `whoami`.strip
|
||||
@performer = Kamal::Git.email.presence || `whoami`.chomp
|
||||
@recorded_at = Time.now.utc.iso8601
|
||||
end
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class CommandsHookTest < ActiveSupport::TestCase
|
||||
traefik: { "args" => { "accesslog.format" => "json", "metrics.prometheus.buckets" => "0.1,0.3,1.2,5.0" } }
|
||||
}
|
||||
|
||||
@performer = `whoami`.strip
|
||||
@performer = Kamal::Git.email.presence || `whoami`.chomp
|
||||
@recorded_at = Time.now.utc.iso8601
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user