zuul/zuul/cmd
James E. Blair ac1bb06c45 Fix zuul-web sql connections
A recent change to scope sql connections to tenants was incorrect
because it assumed zuul-web would have access to a tenant's layout,
but that is only in the zuul-scheduler's memory.  Instead, this change
causes zuul-web to perform an RPC call to the scheduler to ask which
connection to use before performing sql queries.

This slipped through testing because the zuul web test fixture used
the same connection registry object as the scheduler, and therefore
*was* able to access data which normally would not be available to it.
This updates the zuul web test fixture to use a separate connection
registry.

Also, because zuul-web doesn't need any other kinds of connections at
the moment, add a facility to allow it to only load sql connections,
so that it doesn't do anything with the gerrit or github drivers.

Change-Id: Iac6d8c6960f4a31eb2f78511664b704758e41687
2018-06-06 16:13:40 -07:00
..
__init__.py Fix zuul-web sql connections 2018-06-06 16:13:40 -07:00
client.py Merge "autohold: prevent using ',' in change argument" 2018-04-10 23:05:28 +00:00
executor.py Import Zuul modules at top of files 2018-03-05 11:23:32 +01:00
fingergw.py Revert "Register term_handler for all zuul apps" 2018-01-22 15:20:24 +01:00
merger.py Import Zuul modules at top of files 2018-03-05 11:23:32 +01:00
migrate.py Add the ability for a user to skip macros 2018-05-30 15:26:46 -04:00
scheduler.py Tell geard to use keepalives 2018-04-13 07:01:49 -07:00
web.py Fix zuul-web sql connections 2018-06-06 16:13:40 -07:00