summaryrefslogtreecommitdiff
path: root/spec/lib/ci
diff options
context:
space:
mode:
authorFilip Krakowski <Filip.Krakowski@Uni-Duesseldorf.de>2017-06-01 21:55:57 +0200
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-06-08 00:34:58 +0900
commit8db63b26284d949000316a38676ef6fad970f657 (patch)
tree788935b6fe1b868b3d78f3a0d57ef6adb1490fae /spec/lib/ci
parentfe9b78d673965db2adb954725317fe1a1b76728d (diff)
downloadgitlab-ce-8db63b26284d949000316a38676ef6fad970f657.tar.gz
Use pipeline.source to determine what triggered a pipeline
Diffstat (limited to 'spec/lib/ci')
-rw-r--r--spec/lib/ci/gitlab_ci_yaml_processor_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
index 83085f61b37..aa281301faf 100644
--- a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
+++ b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
@@ -227,7 +227,7 @@ module Ci
config_processor = GitlabCiYamlProcessor.new(config, path)
- expect(config_processor.builds_for_stage_and_ref(type, "deploy", false, true).size).to eq(1)
+ expect(config_processor.builds_for_stage_and_ref(type, "deploy", false, 'trigger').size).to eq(1)
end
it "returns builds if only has a schedules keyword specified and a schedule is provided" do
@@ -238,7 +238,7 @@ module Ci
config_processor = GitlabCiYamlProcessor.new(config, path)
- expect(config_processor.builds_for_stage_and_ref(type, "deploy", false, false, true).size).to eq(1)
+ expect(config_processor.builds_for_stage_and_ref(type, "deploy", false, 'schedule').size).to eq(1)
end
it "does not return builds if only has a triggers keyword specified and no trigger is provided" do
@@ -405,7 +405,7 @@ module Ci
config_processor = GitlabCiYamlProcessor.new(config, path)
- expect(config_processor.builds_for_stage_and_ref(type, "deploy", false, true).size).to eq(0)
+ expect(config_processor.builds_for_stage_and_ref(type, "deploy", false, 'trigger').size).to eq(0)
end
it "does not return builds if except has a schedules keyword specified and a schedule is provided" do
@@ -416,7 +416,7 @@ module Ci
config_processor = GitlabCiYamlProcessor.new(config, path)
- expect(config_processor.builds_for_stage_and_ref(type, "deploy", false, false, true).size).to eq(0)
+ expect(config_processor.builds_for_stage_and_ref(type, "deploy", false, 'schedule').size).to eq(0)
end
it "returns builds if except has a triggers keyword specified and no trigger is provided" do