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

Rename some pipeline and build related entities

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