Commit f984a0f9 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'adding-test-cases-for-pipeline-processing' into 'master'

Add new test cases for ci pipeline processing

See merge request gitlab-org/gitlab!37811
parents 3bbc51c3 6a24943e
config:
build:
stage: build
script: exit 0
test:
stage: test
when: manual
allow_failure: true
script: exit 1
deploy:
stage: deploy
script: exit 0
needs: [build, test]
init:
expect:
pipeline: pending
stages:
build: pending
test: created
deploy: created
jobs:
build: pending
test: created
deploy: created
transitions:
- event: success
jobs: [build]
expect:
pipeline: running
stages:
build: success
test: skipped
deploy: created
jobs:
build: success
test: manual
deploy: created
config:
build:
stage: build
script: exit 0
test:
stage: test
when: manual
allow_failure: true
script: exit 0
deploy:
stage: deploy
script: exit 0
needs: [test]
init:
expect:
pipeline: pending
stages:
build: pending
test: created
deploy: created
jobs:
build: pending
test: created
deploy: created
transitions:
- event: success
jobs: [build]
expect:
pipeline: running
stages:
build: success
test: skipped
deploy: created
jobs:
build: success
test: manual
deploy: created
config:
stages: [build, test, review, deploy]
build:
stage: build
script: exit 0
test:
stage: test
script: exit 0
release_test:
stage: test
when: manual
allow_failure: true
script: exit 0
review:
stage: review
script: exit 0
needs: [test, release_test]
staging:
stage: deploy
script: exit 0
needs: [test, release_test]
production:
stage: deploy
script: exit 0
needs: [review]
init:
expect:
pipeline: pending
stages:
build: pending
test: created
review: created
deploy: created
jobs:
build: pending
test: created
release_test: created
review: created
staging: created
production: created
transitions:
- event: success
jobs: [build]
expect:
pipeline: running
stages:
build: success
test: pending
review: created
deploy: created
jobs:
build: success
test: pending
release_test: manual
review: created
staging: created
production: created
- event: success
jobs: [test]
expect:
pipeline: running
stages:
build: success
test: success
review: created
deploy: created
jobs:
build: success
test: success
release_test: manual
review: created
staging: created
production: created
config:
build:
stage: build
script: exit 0
test:
stage: test
script: exit 0
deploy:
stage: deploy
script: exit 0
needs: []
init:
expect:
pipeline: pending
stages:
build: pending
test: created
deploy: pending
jobs:
build: pending
test: created
deploy: pending
transitions: []
config:
test:
stage: test
when: manual
allow_failure: false
script: exit 1
deploy:
stage: deploy
when: always
script: exit 0
needs: [test]
init:
expect:
pipeline: manual
stages:
test: manual
deploy: created
jobs:
test: manual
deploy: created
transitions:
- event: enqueue
jobs: [test]
expect:
pipeline: pending
stages:
test: pending
deploy: created
jobs:
test: pending
deploy: created
- event: drop
jobs: [test]
expect:
pipeline: running
stages:
test: failed
deploy: pending
jobs:
test: failed
deploy: pending
config:
test:
stage: test
when: manual
allow_failure: false
script: exit 1
deploy:
stage: deploy
when: on_failure
script: exit 0
needs: [test]
init:
expect:
pipeline: manual
stages:
test: manual
deploy: created
jobs:
test: manual
deploy: created
transitions:
- event: enqueue
jobs: [test]
expect:
pipeline: pending
stages:
test: pending
deploy: created
jobs:
test: pending
deploy: created
- event: drop
jobs: [test]
expect:
pipeline: running
stages:
test: failed
deploy: pending
jobs:
test: failed
deploy: pending
config:
test1:
stage: test
script: exit 0
test2:
stage: test
when: manual
allow_failure: false
script: exit 1
deploy:
stage: deploy
script: exit 0
needs: [test1, test2]
init:
expect:
pipeline: running
stages:
test: running
deploy: created
jobs:
test1: pending
test2: manual
deploy: created
transitions:
- event: success
jobs: [test1]
expect:
pipeline: manual
stages:
test: manual
deploy: created
jobs:
test1: success
test2: manual
deploy: created
config: config:
build: build:
stage: build stage: build
script: exit 1 script: exit 0
test: test:
stage: test stage: test
when: manual
allow_failure: true allow_failure: true
script: exit 1 script: exit 1
...@@ -25,15 +26,15 @@ init: ...@@ -25,15 +26,15 @@ init:
deploy: created deploy: created
transitions: transitions:
- event: drop - event: success
jobs: [build] jobs: [build]
expect: expect:
pipeline: failed pipeline: running
stages: stages:
build: failed build: success
test: skipped test: skipped
deploy: skipped deploy: pending
jobs: jobs:
build: failed build: success
test: skipped test: manual
deploy: skipped deploy: pending
config:
stages: [build, test, review, deploy]
build:
stage: build
script: exit 0
test:
stage: test
script: exit 0
release_test:
stage: test
when: manual
allow_failure: true
script: exit 0
review:
stage: review
script: exit 0
staging:
stage: deploy
script: exit 0
production:
stage: deploy
script: exit 0
init:
expect:
pipeline: pending
stages:
build: pending
test: created
review: created
deploy: created
jobs:
build: pending
test: created
release_test: created
review: created
staging: created
production: created
transitions:
- event: success
jobs: [build]
expect:
pipeline: running
stages:
build: success
test: pending
review: created
deploy: created
jobs:
build: success
test: pending
release_test: manual
review: created
staging: created
production: created
- event: success
jobs: [test]
expect:
pipeline: running
stages:
build: success
test: success
review: pending
deploy: created
jobs:
build: success
test: success
release_test: manual
review: pending
staging: created
production: created
config:
test:
stage: test
when: manual
allow_failure: true
script: exit 1
deploy:
stage: deploy
when: always
script: exit 0
init:
expect:
pipeline: pending
stages:
test: skipped
deploy: pending
jobs:
test: manual
deploy: pending
transitions: []
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