zuul/tests/unit
James E. Blair 77524b359c Fix reporting certain config syntax errors
Change I0421c5a446d0b75194096b1d8f0e0866dae3b8f0 began including
BranchMatcher objects instead of strings in the SourceContext class
if an implied-branches pragma was supplied.  If a syntax error
occurs in a repo with such a pragma, the source context needs to
be serialized to zk, and that would fail.  To correct this, add
serialization methods to the source context and branch matchers.

Also correct an unrelated error where the syntax "- job:" would
fail to report the error to the user because the value None was
added to the list of config objects, and we always assume that
is a dict.  To correct this, raise the syntax error earlier in
that case.

Change-Id: Id7c1dff5e9865d21c3215bdc32c8fa2cb6603aaa
2022-04-26 11:02:17 -07:00
..
__init__.py
test_auth.py Bump pyjwt to 2.0.0 2021-01-14 12:35:18 +00:00
test_bubblewrap.py Make most test cases work on MacOS 2020-02-20 12:59:38 +01:00
test_change_matcher.py Make files matcher match changes with no files 2019-08-23 18:59:29 +02:00
test_circular_dependencies.py De-duplicate change dependencies 2022-03-28 17:07:19 -07:00
test_client.py Add "zuul delete-pipeline-state" command 2022-01-26 16:36:04 -08:00
test_cmd.py Revert "Revert "Add the process environment to zuul.conf parser"" 2019-11-02 09:10:18 +09:00
test_component_registry.py Remove rpcclient from connection test fixtures 2022-01-17 12:49:28 -08:00
test_configloader.py Rely on the unparsed config cache in reconfigurations 2022-03-28 12:31:16 -07:00
test_connection.py Create missing db entries and retry 2022-03-31 14:12:46 -07:00
test_cross_crd.py Report per-branch cyclic-dependency conflicts 2022-03-21 12:54:02 -07:00
test_daemon.py
test_database.py Rename MERGER_FAILURE to MERGE_CONFLICT 2022-02-24 17:06:03 -08:00
test_default_config.py Add type check for zuul conf 2018-12-10 19:24:50 +08:00
test_dependson.py Be more liberal with Depends-On: parsing 2021-08-30 15:59:51 +10:00
test_disk_accountant.py Optionally disable disk_limit_per_job 2019-02-22 08:10:59 +01:00
test_encryption.py
test_event_queues.py Don't use executor.builds when processing build result events 2021-09-24 16:25:25 -07:00
test_executor.py Load job from pipeline state on executors 2021-11-23 15:16:32 -08:00
test_gerrit.py De-duplicate change dependencies 2022-03-28 17:07:19 -07:00
test_gerrit_crd.py Report per-branch cyclic-dependency conflicts 2022-03-21 12:54:02 -07:00
test_gerrit_legacy_crd.py Report per-branch cyclic-dependency conflicts 2022-03-21 12:54:02 -07:00
test_git_driver.py Use scheduler manager consistently in tests 2020-04-03 14:49:59 +02:00
test_github_crd.py Execute Github tests with only one scheduler 2021-11-30 08:58:19 -08:00
test_github_driver.py Merge "Dequeue items that can no longer merge" 2022-03-23 01:00:06 +00:00
test_github_requirements.py Execute Github tests with only one scheduler 2021-11-30 08:58:19 -08:00
test_gitlab_driver.py Fix gitlab timer events 2022-03-15 13:44:35 -07:00
test_inventory.py Update test_inventory to be ZK-friendly 2021-10-29 12:04:44 +02:00
test_lib_ansible.py Validate ansible extra packages 2020-05-08 09:03:10 +02:00
test_merger_repo.py Merge "Create remote ref when it does not exist" 2022-04-13 16:10:03 +00:00
test_model.py Fix reporting certain config syntax errors 2022-04-26 11:02:17 -07:00
test_model_upgrade.py Don't overwrite result data in compat mode 2022-04-14 15:21:23 +02:00
test_multi_driver.py Limit scheduler count to 1 for other github related tests 2021-11-30 08:58:23 -08:00
test_nodepool.py Fix race in test_node_request_canceled 2021-10-08 09:28:50 -07:00
test_openstack.py Support overlapping repos and a flat workspace scheme 2021-04-29 17:56:24 -07:00
test_pagure_driver.py Remove rpcclient from connection test fixtures 2022-01-17 12:49:28 -08:00
test_prometheus.py Add readiness/liveness probes to prometheus server 2021-12-09 07:37:29 -08:00
test_push_reqs.py Make test setup_config more pure 2020-02-28 11:50:22 +01:00
test_reporting.py Further no_job reporting fixes 2022-04-22 14:05:23 -07:00
test_requirements.py Fix reject clauses in the absence of approvals 2018-08-13 12:37:32 +02:00
test_scheduler.py Skip reconfig when all project config is excluded 2022-04-04 13:18:52 +02:00
test_serial.py Make fake test Gerrit merger more realistic 2020-04-29 15:00:05 -07:00
test_sos.py Update change deps on refresh after cache miss 2022-04-11 07:43:34 +02:00
test_ssh_agent.py
test_stack_dump.py
test_streaming.py Look up worker_zone for log streaming from executor 2022-02-24 20:50:03 +01:00
test_strings.py Cleanup empty secrets dirs when deleting secrets 2021-10-19 09:38:21 -07:00
test_supercedent.py Check branches in supercedent pipelines 2019-04-05 13:59:05 -07:00
test_timer_driver.py Include project name in gerrit branch cache 2021-09-28 17:21:32 -07:00
test_v3.py Fix reporting certain config syntax errors 2022-04-26 11:02:17 -07:00
test_web.py Fix background layout updates in zuul-web 2022-04-13 16:09:36 -07:00
test_web_urls.py Remove rpcclient from connection test fixtures 2022-01-17 12:49:28 -08:00
test_yamlutil.py Disable aliases in inventory.yaml for better readibility 2021-09-01 09:19:41 +02:00
test_zk.py Add a blob store and store large secrets in it 2022-04-08 17:12:08 -07:00
test_zuultrigger.py Report which repo failed initial merge ops 2022-02-20 13:06:39 -08:00