zuul/tests
James E. Blair 640059a67a Report a config error for unsupported merge mode
This updates the branch cache (and associated connection mixin)
to include information about supported project merge modes.  With
this, if a project on github has the "squash" merge mode disabled
and a Zuul user attempts to configure Zuul to use the "squash"
mode, then Zuul will report a configuration syntax error.

This change adds implementation support only to the github driver.
Other drivers may add support in the future.

For all other drivers, the branch cache mixin simply returns a value
indicating that all merge modes are supported, so there will be no
behavior change.

This is also the upgrade strategy: the branch cache uses a
defaultdict that reports all merge modes supported for any project
when it first loads the cache from ZK after an upgrade.

Change-Id: I3ed9a98dfc1ed63ac11025eb792c61c9a6414384
2022-11-11 09:53:28 -08:00
..
fixtures Report a config error for unsupported merge mode 2022-11-11 09:53:28 -08:00
remote Remove Ansible 5 2022-10-11 17:03:57 -07:00
unit Report a config error for unsupported merge mode 2022-11-11 09:53:28 -08:00
zuul_client Add test for zuul-client freeze-job 2022-08-02 08:03:29 -07:00
__init__.py Add non-voting jobs. 2012-08-23 23:20:09 +00:00
base.py Merge "Parallelize some pipeline refresh ops" 2022-11-10 15:01:09 +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 Report a config error for unsupported merge mode 2022-11-11 09:53:28 -08:00
fakegitlab.py Fix gitlab squash merge 2022-06-13 16:14:13 +02:00
make_playbooks.py Use libyaml if possible 2017-04-04 11:49:05 -07:00
otlp_fixture.py Tracing: implement span save/restore 2022-09-19 08:42:28 +02:00
print_layout.py Do not add implied branch matchers in project-templates 2017-09-30 10:19:07 -07:00