Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/ci/pipeline_processing/test_cases/dag_test_manual_same_stage_needs.yml')
-rw-r--r--spec/services/ci/pipeline_processing/test_cases/dag_test_manual_same_stage_needs.yml70
1 files changed, 70 insertions, 0 deletions
diff --git a/spec/services/ci/pipeline_processing/test_cases/dag_test_manual_same_stage_needs.yml b/spec/services/ci/pipeline_processing/test_cases/dag_test_manual_same_stage_needs.yml
new file mode 100644
index 00000000000..fd15f7d1b57
--- /dev/null
+++ b/spec/services/ci/pipeline_processing/test_cases/dag_test_manual_same_stage_needs.yml
@@ -0,0 +1,70 @@
+config:
+ stages: [first, second, third, fourth]
+
+ first_job:
+ stage: first
+ script:
+ - echo
+
+ second_job:
+ stage: second
+ script:
+ - echo
+ when: manual
+
+ third_job:
+ stage: third
+ needs: ["second_job"]
+ script:
+ - echo
+
+ fourth_job:
+ stage: fourth
+ needs: ["third_job"]
+ script:
+ - echo
+
+init:
+ expect:
+ pipeline: pending
+ stages:
+ first: pending
+ second: created
+ third: created
+ fourth: created
+ jobs:
+ first_job: pending
+ second_job: created
+ third_job: created
+ fourth_job: created
+
+transitions:
+ - event: success
+ jobs: [first_job]
+ expect:
+ pipeline: success
+ stages:
+ first: success
+ second: skipped
+ third: skipped
+ fourth: skipped
+ jobs:
+ first_job: success
+ second_job: manual
+ third_job: skipped
+ fourth_job: skipped
+
+ - event: play
+ jobs: [second_job]
+ expect:
+ pipeline: running
+ stages:
+ first: success
+ second: pending
+ third: skipped
+ fourth: skipped
+ jobs:
+ first_job: success
+ second_job: pending
+ third_job: created
+ fourth_job: created