Rename CI/CD job triggering policy class to Policy
This commit is contained in:
parent
d546f7d36e
commit
5ced2d8d7d
3 changed files with 5 additions and 5 deletions
|
@ -59,10 +59,10 @@ module Gitlab
|
|||
entry :services, Entry::Services,
|
||||
description: 'Services that will be used to execute this job.'
|
||||
|
||||
entry :only, Entry::Trigger,
|
||||
entry :only, Entry::Policy,
|
||||
description: 'Refs policy this job will be executed for.'
|
||||
|
||||
entry :except, Entry::Trigger,
|
||||
entry :except, Entry::Policy,
|
||||
description: 'Refs policy this job will be executed for.'
|
||||
|
||||
entry :variables, Entry::Variables,
|
||||
|
|
|
@ -5,7 +5,7 @@ module Gitlab
|
|||
##
|
||||
# Entry that represents a trigger policy for the job.
|
||||
#
|
||||
class Trigger < Node
|
||||
class Policy < Node
|
||||
include Validatable
|
||||
|
||||
validations do
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Gitlab::Ci::Config::Entry::Trigger do
|
||||
describe Gitlab::Ci::Config::Entry::Policy do
|
||||
let(:entry) { described_class.new(config) }
|
||||
|
||||
describe 'validations' do
|
||||
|
@ -48,7 +48,7 @@ describe Gitlab::Ci::Config::Entry::Trigger do
|
|||
describe '#errors' do
|
||||
it 'saves errors' do
|
||||
expect(entry.errors)
|
||||
.to include 'trigger config should be an array of strings or regexps'
|
||||
.to include 'policy config should be an array of strings or regexps'
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue