Commit 02c7dcf6 authored by Grzegorz Bizon's avatar Grzegorz Bizon 🔴

Rename some pipeline and build related entities

[ci skip]
parent d549a965
Pipeline #5494232 skipped
class PipelineActionEntity < Grape::Entity
class BuildActionEntity < Grape::Entity
include RequestAwareEntity
expose :name do |build|
......
class PipelineArtifactEntity < Grape::Entity
class BuildArtifactEntity < Grape::Entity
include RequestAwareEntity
expose :name do |build|
......
......@@ -20,9 +20,9 @@ class PipelineEntity < Grape::Entity
expose :duration
expose :finished_at
expose :stages, using: PipelineStageEntity
expose :artifacts, using: PipelineArtifactEntity
expose :manual_actions, using: PipelineActionEntity
expose :stages, using: StageEntity
expose :artifacts, using: BuildArtifactEntity
expose :manual_actions, using: BuildActionEntity
end
expose :flags do
......
class PipelineStageEntity < Grape::Entity
class StageEntity < Grape::Entity
include RequestAwareEntity
expose :name
......
require 'spec_helper'
describe PipelineActionEntity do
describe BuildActionEntity do
let(:build) { create(:ci_build, name: 'test_build') }
let(:entity) do
......
require 'spec_helper'
describe PipelineArtifactEntity do
describe BuildArtifactEntity do
let(:build) { create(:ci_build, name: 'test:build') }
let(:entity) do
......
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