Port SQLAlchemy reporter to v3 driver structure

This completes the merge from master and re-enables the sqlalchemy
driver tests.

Change-Id: I8e6effb3f0052343d5c6c80e9edaa2a9ff360b4d
This commit is contained in:
James E. Blair
2017-03-06 10:55:26 -08:00
parent f8aec83b3b
commit 8284489e09
16 changed files with 183 additions and 113 deletions

30
tests/fixtures/zuul-sql-driver-bad.conf vendored Normal file
View File

@@ -0,0 +1,30 @@
[gearman]
server=127.0.0.1
[zuul]
tenant_config=main.yaml
url_pattern=http://logs.example.com/{change.number}/{change.patchset}/{pipeline.name}/{job.name}/{build.number}
job_name_in_report=true
[merger]
git_dir=/tmp/zuul-test/merger-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=fake_id_rsa1
[connection resultsdb]
driver=sql
dburi=mysql+pymysql://bad:creds@host/db
[connection resultsdb_failures]
driver=sql
dburi=mysql+pymysql://bad:creds@host/db