Add test for builds/ web route

This adds a simple test for the builds web route. Because this route
depends on the sql reporter functionality we update the sql-driver test
fixture config to accomodate the existing zuul web test expectations.
Namely that there is also a project1 project and that there are gate
jobs.

In the test we then confirm the builds/ url returns the expected count
of run jobs.

Change-Id: I51ff85a124fe75a7a0c4ec581f0b1f49c1aa0c05
This commit is contained in:
Clark Boylan
2018-04-10 11:20:10 -07:00
parent 6ca26c8c43
commit b23da05019
4 changed files with 71 additions and 2 deletions

View File

@@ -17,6 +17,33 @@
resultsdb_postgresql: null
resultsdb_postgresql_failures: null
- pipeline:
name: gate
manager: dependent
success-message: Build succeeded (gate).
trigger:
gerrit:
- event: comment-added
approval:
- Approved: 1
success:
gerrit:
Verified: 2
submit: true
resultsdb_mysql: null
resultsdb_postgresql: null
failure:
gerrit:
Verified: -2
resultsdb_mysql: null
resultsdb_mysql_failures: null
resultsdb_postgresql: null
resultsdb_postgresql_failures: null
start:
gerrit:
Verified: 0
precedence: high
- job:
name: base
parent: null
@@ -52,3 +79,28 @@
# The noop job can have timing quirks
- noop:
dependencies: project-test2
gate:
jobs:
- project-merge
- project-test1:
dependencies: project-merge
- project-test2:
dependencies: project-merge
- project:
name: org/project1
check:
jobs:
- project-merge
- project-test1:
dependencies: project-merge
- project-test2:
dependencies: project-merge
gate:
queue: integrated
jobs:
- project-merge
- project-test1:
dependencies: project-merge
- project-test2:
dependencies: project-merge

View File

@@ -0,0 +1 @@
test

View File

@@ -6,3 +6,4 @@
- common-config
untrusted-projects:
- org/project
- org/project1