|
Lines 69-86
class GardeningServerTest(unittest.TestC
Tools/Scripts/webkitpy/tool/servers/gardeningserver_unittest.py_sec1
|
| 69 |
handler.path = path |
69 |
handler.path = path |
| 70 |
OutputCapture().assert_outputs(self, handler.do_POST, expected_stderr=expected_stderr, expected_stdout=expected_stdout) |
70 |
OutputCapture().assert_outputs(self, handler.do_POST, expected_stderr=expected_stderr, expected_stdout=expected_stdout) |
| 71 |
|
71 |
|
| 72 |
def test_changelog(self): |
|
|
| 73 |
expected_stderr = "MOCK run_and_throw_if_fail: ['mock-update-webkit'], cwd=/mock-checkout\n" |
| 74 |
expected_stdout = """== Begin JSON Response == |
| 75 |
{"bug_id": 42, "author_email": "abarth@webkit.org", "reviewer_text": "Darin Adler", "author_name": "Adam Barth", "changed_files": ["path/to/file", "another/file"]} |
| 76 |
== End JSON Response == |
| 77 |
""" |
| 78 |
self._post_to_path("/changelog?revision=2314", expected_stderr=expected_stderr, expected_stdout=expected_stdout) |
| 79 |
|
| 80 |
def test_buildbot(self): |
| 81 |
expected_stdout = '== Begin JSON Response ==\n[{"is_green": true, "name": "Builder1", "activity": "building"}, {"is_green": true, "name": "Builder2", "activity": "idle"}]\n== End JSON Response ==\n' |
| 82 |
self._post_to_path("/buildbot", expected_stdout=expected_stdout, expected_stderr='') |
| 83 |
|
| 84 |
def test_rollout(self): |
72 |
def test_rollout(self): |
| 85 |
expected_stderr = "MOCK run_command: ['echo', 'rollout', '--force-clean', '--non-interactive', '2314', 'MOCK rollout reason'], cwd=/mock-checkout\n" |
73 |
expected_stderr = "MOCK run_command: ['echo', 'rollout', '--force-clean', '--non-interactive', '2314', 'MOCK rollout reason'], cwd=/mock-checkout\n" |
| 86 |
expected_stdout = "== Begin Response ==\nsuccess\n== End Response ==\n" |
74 |
expected_stdout = "== Begin Response ==\nsuccess\n== End Response ==\n" |