Change log streaming link to finger protocol
The new upcoming log streaming will be based on a protocol nearly
identical to finger. So much so, that it's actually finger. Isn't that
cool?
Change-Id: I51ef51ee236227e7816effe6683733ae3f29750a
diff --git a/tests/unit/test_connection.py b/tests/unit/test_connection.py
index 142a248..fcfaf5d 100644
--- a/tests/unit/test_connection.py
+++ b/tests/unit/test_connection.py
@@ -120,9 +120,10 @@
# Check the first result, which should be the project-merge job
self.assertEqual('project-merge', buildset0_builds[0]['job_name'])
self.assertEqual("SUCCESS", buildset0_builds[0]['result'])
- self.assertEqual('https://server/job/project-merge/0/',
- buildset0_builds[0]['log_url'])
-
+ self.assertEqual(
+ 'finger://zl.example.com/{uuid}'.format(
+ uuid=buildset0_builds[0]['uuid']),
+ buildset0_builds[0]['log_url'])
self.assertEqual('check', buildset1['pipeline'])
self.assertEqual('org/project', buildset1['project'])
self.assertEqual(2, buildset1['change'])
@@ -142,8 +143,10 @@
# which failed
self.assertEqual('project-test1', buildset1_builds[-2]['job_name'])
self.assertEqual("FAILURE", buildset1_builds[-2]['result'])
- self.assertEqual('https://server/job/project-test1/0/',
- buildset1_builds[-2]['log_url'])
+ self.assertEqual(
+ 'finger://zl.example.com/{uuid}'.format(
+ uuid=buildset1_builds[-2]['uuid']),
+ buildset1_builds[-2]['log_url'])
def test_multiple_sql_connections(self):
"Test putting results in different databases"