zuul/tests/unit
Tristan Cacqueray 2f520fe720 scheduler: fix enqueue event to use canonical project name
When trying to enqueue an event using a canonical project name, we need to
fix the doEnqueueEvent method to use the full project name. Otherwise it fails
with:

zuul.rpcclient.RPCFailure: Traceback (most recent call last):
[...]
  File "zuul/scheduler.py", line 829, in _doEnqueueEvent
    (trusted, project) = tenant.getProject(event.project_name)
  File "zuul/model.py", line 3458, in getProject
    "with a hostname" % (name,))
Exception: Project name 'openstack/tripleo-heat-templates' is ambiguous,
           please fully qualify the project with a hostname

Even when the enqueue command was done using the canonical project name.

Change-Id: I68210993ca4d5917c40df9a198f2e47dd2b0399c
2018-07-13 06:58:36 +00:00
..
__init__.py Move tests into test/unit 2017-01-24 10:18:38 -08:00
test_bubblewrap.py Fix bwrap leak test 2018-06-05 11:23:37 -07:00
test_change_matcher.py Fix branch matching logic 2017-10-02 17:30:51 -04:00
test_configloader.py Fix source context in split config 2018-07-05 09:50:58 -07:00
test_connection.py Merge "mqtt: add basic reporter" 2018-05-31 15:13:41 +00:00
test_cross_crd.py Add cross-source tests 2018-01-16 09:37:59 -08:00
test_daemon.py Move tests into test/unit 2017-01-24 10:18:38 -08:00
test_disk_accountant.py Use nested tempfile fixture for cleanups 2018-02-06 15:18:45 -08:00
test_encryption.py Use nested tempfile fixture for cleanups 2018-02-06 15:18:45 -08:00
test_executor.py Add min_avail_hdd governor for zuul-executor 2018-06-27 14:49:22 -04:00
test_gerrit.py Cleanup use of mock package in for python2 2018-03-29 18:10:23 -07:00
test_gerrit_crd.py Fix new depends-on format matching for prefixed gerrit ui 2018-05-23 13:13:11 +02:00
test_gerrit_legacy_crd.py Fix dependency cycle false positive 2018-01-17 04:23:39 +00:00
test_git_driver.py Stabilize git driver tests 2018-01-17 09:53:18 -08:00
test_github_crd.py Implement Depends-On for github 2017-06-29 11:26:19 -07:00
test_github_driver.py Merge "Add test facility to add file contents in github tests" 2018-07-10 22:32:48 +00:00
test_github_requirements.py Support regex matching of github status 2018-04-13 18:15:19 +02:00
test_inventory.py Inventory groups should be under children key 2018-04-30 12:59:13 -07:00
test_merger_repo.py Gracefully handle broken .gitmodule files 2018-05-09 16:01:03 +02:00
test_model.py Require tenant in Pipeline constructor 2018-07-09 13:58:23 -07:00
test_multi_driver.py Remove status handling from FakeGithubConnection 2017-08-03 19:22:54 +00:00
test_nodepool.py Add support for shared ansible_host in inventory 2017-11-18 16:22:01 -05:00
test_openstack.py Use correct label casing in tests 2017-07-27 07:50:03 +02:00
test_push_reqs.py Ensure ref-updated jobs run with their ref 2017-08-02 16:56:18 -07:00
test_requirements.py Use correct label casing in tests 2017-07-27 07:50:03 +02:00
test_scheduler.py scheduler: fix enqueue event to use canonical project name 2018-07-13 06:58:36 +00:00
test_ssh_agent.py Add SSH Agent Primitives and usage 2017-05-26 09:52:22 -07:00
test_stack_dump.py Several executor threading fixes 2017-10-17 09:49:29 -07:00
test_streaming.py Add timestamps to multiline debug message logs 2018-06-07 09:23:08 -07:00
test_supercedent.py Add supercedent pipeline manager 2018-06-14 16:32:03 -07:00
test_v3.py Merge "Report config errors when removing cross-repo jobs" 2018-07-11 20:57:27 +00:00
test_web.py zuul-web: key endpoint: return 404 when tenant or project not found 2018-07-11 18:27:26 +02:00
test_web_urls.py Fix zuul-web sql connections 2018-06-06 16:13:40 -07:00
test_zuultrigger.py Limit search scope of getChangesDependingOn to tenant 2018-05-24 00:15:51 +00:00