Chromium Code Reviews| Index: appengine/findit/waterfall/test/buildbot_test.py |
| diff --git a/appengine/findit/waterfall/test/buildbot_test.py b/appengine/findit/waterfall/test/buildbot_test.py |
| index f1125424552a48d25d6cc2516fc74ed99d4a2004..82befead3ec52ab6a7577890afedd99c08f0a980 100644 |
| --- a/appengine/findit/waterfall/test/buildbot_test.py |
| +++ b/appengine/findit/waterfall/test/buildbot_test.py |
| @@ -5,6 +5,10 @@ |
| from datetime import datetime |
| import os |
| import unittest |
| +from testing_utils import testing |
| + |
| +import cloudstorage as gcs |
| +import gzip |
|
stgao
2015/05/21 00:29:56
order.
|
| from common.retry_http_client import RetryHttpClient |
| from waterfall import buildbot |
| @@ -26,7 +30,7 @@ class DummyHttpClient(RetryHttpClient): |
| return self.status_code, self.response_content |
| -class BuildBotTest(unittest.TestCase): |
| +class BuildBotTest(testing.AppengineTestCase): |
| def testGetMasternameFromUrl(self): |
| cases = { |
| None: None, |
| @@ -120,6 +124,19 @@ class BuildBotTest(unittest.TestCase): |
| buildbot.CreateStdioLogUrl( |
| master_name, builder_name, build_number, step_name)) |
| + def testCreateStepLogPath(self): |
| + master_name = 'a' |
| + builder_name = 'Win7 Tests (1)' |
| + build_number = 123 |
| + step_name = '[trigger] abc_tests' |
| + expected_stdio_log_url = ('/chrome-gtest-results/buildbot/a/Win7 Tests ' |
| + '(1)/123/[trigger] abc_tests.json.gz') |
| + |
| + self.assertEqual( |
| + expected_stdio_log_url, |
| + buildbot.CreateStepLogPath( |
| + master_name, builder_name, build_number, step_name)) |
| + |
| def testGetBuildDataFromArchiveSuccess(self): |
| master_name = 'a' |
| builder_name = 'b c' |