Add tenant to url formatting.
Expose the tenant name to the executor and url formatter so that we can
store logs per tenant.
Change-Id: Ifad1ba668ee5b86e6c6f5cb71eae53ad8d49f3ff
Signed-off-by: Jamie Lennox <jamielennox@gmail.com>
diff --git a/tests/unit/test_github_driver.py b/tests/unit/test_github_driver.py
index 6cc010e..ab304b2 100644
--- a/tests/unit/test_github_driver.py
+++ b/tests/unit/test_github_driver.py
@@ -300,8 +300,8 @@
self.assertEqual('tenant-one/reporting', report_status['context'])
self.assertEqual('success', report_status['state'])
self.assertEqual(2, len(A.comments))
- report_url = ('http://logs.example.com/reporting/%s/%s/%s/' %
- (A.project, A.number, A.head_sha))
+ report_url = ('http://logs.example.com/tenant-one/reporting/'
+ '%s/%s/%s/' % (A.project, A.number, A.head_sha))
self.assertEqual(report_url, report_status['url'])
@simple_layout('layouts/merging-github.yaml', driver='github')