Merge "Test gerrit and github drivers in same tenant" into feature/zuulv3
This commit is contained in:
2
tests/fixtures/config/multi-driver/git/common-config/playbooks/project-gerrit.yaml
vendored
Normal file
2
tests/fixtures/config/multi-driver/git/common-config/playbooks/project-gerrit.yaml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
- hosts: all
|
||||
tasks: []
|
||||
2
tests/fixtures/config/multi-driver/git/common-config/playbooks/project1-github.yaml
vendored
Normal file
2
tests/fixtures/config/multi-driver/git/common-config/playbooks/project1-github.yaml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
- hosts: all
|
||||
tasks: []
|
||||
46
tests/fixtures/config/multi-driver/git/common-config/zuul.yaml
vendored
Normal file
46
tests/fixtures/config/multi-driver/git/common-config/zuul.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
- pipeline:
|
||||
name: check_github
|
||||
manager: independent
|
||||
trigger:
|
||||
github:
|
||||
- event: pull_request
|
||||
action:
|
||||
- opened
|
||||
- changed
|
||||
- reopened
|
||||
success:
|
||||
github:
|
||||
status: 'success'
|
||||
failure:
|
||||
github:
|
||||
status: 'failure'
|
||||
|
||||
- pipeline:
|
||||
name: check_gerrit
|
||||
manager: independent
|
||||
trigger:
|
||||
gerrit:
|
||||
- event: patchset-created
|
||||
success:
|
||||
gerrit:
|
||||
verify: 1
|
||||
failure:
|
||||
gerrit:
|
||||
verify: 1
|
||||
|
||||
- job:
|
||||
name: project-gerrit
|
||||
- job:
|
||||
name: project1-github
|
||||
|
||||
- project:
|
||||
name: org/project
|
||||
check_gerrit:
|
||||
jobs:
|
||||
- project-gerrit
|
||||
|
||||
- project:
|
||||
name: org/project1
|
||||
check_github:
|
||||
jobs:
|
||||
- project1-github
|
||||
1
tests/fixtures/config/multi-driver/git/org_project/README
vendored
Normal file
1
tests/fixtures/config/multi-driver/git/org_project/README
vendored
Normal file
@@ -0,0 +1 @@
|
||||
test
|
||||
1
tests/fixtures/config/multi-driver/git/org_project1/README
vendored
Normal file
1
tests/fixtures/config/multi-driver/git/org_project1/README
vendored
Normal file
@@ -0,0 +1 @@
|
||||
test
|
||||
11
tests/fixtures/config/multi-driver/main.yaml
vendored
Normal file
11
tests/fixtures/config/multi-driver/main.yaml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
- tenant:
|
||||
name: tenant-one
|
||||
source:
|
||||
github:
|
||||
config-projects:
|
||||
- common-config
|
||||
untrusted-projects:
|
||||
- org/project1
|
||||
gerrit:
|
||||
untrusted-projects:
|
||||
- org/project
|
||||
31
tests/fixtures/zuul-connections-gerrit-and-github.conf
vendored
Normal file
31
tests/fixtures/zuul-connections-gerrit-and-github.conf
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
[gearman]
|
||||
server=127.0.0.1
|
||||
|
||||
[zuul]
|
||||
tenant_config=config/multi-driver/main.yaml
|
||||
job_name_in_report=true
|
||||
|
||||
[merger]
|
||||
git_dir=/tmp/zuul-test/git
|
||||
git_user_email=zuul@example.com
|
||||
git_user_name=zuul
|
||||
zuul_url=http://zuul.example.com/p
|
||||
|
||||
[executor]
|
||||
git_dir=/tmp/zuul-test/executor-git
|
||||
|
||||
[connection gerrit]
|
||||
driver=gerrit
|
||||
server=review.example.com
|
||||
user=jenkins
|
||||
sshkey=none
|
||||
|
||||
[connection github]
|
||||
driver=github
|
||||
|
||||
[connection outgoing_smtp]
|
||||
driver=smtp
|
||||
server=localhost
|
||||
port=25
|
||||
default_from=zuul@example.com
|
||||
default_to=you@example.com
|
||||
Reference in New Issue
Block a user