Commit f5b9811e authored by Fabio Pitino's avatar Fabio Pitino

Merge branch '348264-Expose-finished_at-in-job-details-JSON' into 'master'

Expose finished_at in job details JSON

See merge request gitlab-org/gitlab!76668
parents c8b5da56 049a8657
# frozen_string_literal: true # frozen_string_literal: true
class BuildDetailsEntity < Ci::JobEntity class BuildDetailsEntity < Ci::JobEntity
expose :coverage, :erased_at, :duration expose :coverage, :erased_at, :finished_at, :duration
expose :tag_list, as: :tags expose :tag_list, as: :tags
expose :has_trace?, as: :has_trace expose :has_trace?, as: :has_trace
expose :stage expose :stage
......
...@@ -29,7 +29,7 @@ RSpec.describe BuildDetailsEntity do ...@@ -29,7 +29,7 @@ RSpec.describe BuildDetailsEntity do
end end
it 'contains the needed key value pairs' do it 'contains the needed key value pairs' do
expect(subject).to include(:coverage, :erased_at, :duration) expect(subject).to include(:coverage, :erased_at, :finished_at, :duration)
expect(subject).to include(:runner, :pipeline) expect(subject).to include(:runner, :pipeline)
expect(subject).to include(:raw_path, :new_issue_path) expect(subject).to include(:raw_path, :new_issue_path)
end 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