zuul/tests
James E. Blair abad438e53 Align enqueue/dequeue events with trigger events
EnqueueEvents and DequeueEvents are duck-typed as TriggerEvents
when they are passed to source.getChange.  TriggerEvents are always
created in the context of a connection, so they have a hostname
field and a name field, and name should never have the hostname.

However, our current EnqueueEvents are created directly from
client-side user input and accept any form of project name.  This
means when we get a change from them, we may end up with a Project
that has a canonical name for it's "name" field.  This could not
only cause the enqueue event to be rejected, it could leak project
objects.

To correct this, perform some pre-processing on the input data to
get separate host/name data for the project, and then use that to
construct an Enqueue/DequeueEvent with the same field usage as
a TriggerEvent.

Change-Id: Ib596c282eba3a01c10d28593545e5d238d09de0c
2021-03-27 09:55:26 -07:00
..
fixtures Align enqueue/dequeue events with trigger events 2021-03-27 09:55:26 -07:00
nodepool Simplify ZooKeeper client initialization 2021-02-21 07:41:43 -08:00
remote Prohibit invalid uri usages on localhost 2020-09-23 18:59:52 +00:00
unit Align enqueue/dequeue events with trigger events 2021-03-27 09:55:26 -07:00
zuul_client Merge "zuul-client: test encryption of large secrets" 2021-01-29 02:17:55 +00:00
__init__.py Add non-voting jobs. 2012-08-23 23:20:09 +00:00
base.py Dispatch Gitlab webhook events via Zookeeper 2021-03-26 16:12:37 +00:00
encrypt_secret.py Make tests' encrypt_secret.py work with python3 2017-10-19 18:09:57 +00:00
fake_graphql.py Fetch can-merge info when updating a pull-request 2020-09-23 12:03:55 +02:00
fakegithub.py Save superfluous api requests in check run reporting 2020-11-04 08:52:28 +01:00
make_playbooks.py Use libyaml if possible 2017-04-04 11:49:05 -07:00
print_layout.py Do not add implied branch matchers in project-templates 2017-09-30 10:19:07 -07:00