| OLD | NEW |
| 1 # Copyright 2017 The LUCI Authors. All rights reserved. | 1 # Copyright 2017 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed under the Apache License, Version 2.0 | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # that can be found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 DEPS = [ | 5 DEPS = [ |
| 6 'context', | 6 'context', |
| 7 'path', | 7 'path', |
| 8 'step', | 8 'step', |
| 9 'url', | 9 'url', |
| 10 ] | 10 ] |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 api.test('basic') + | 99 api.test('basic') + |
| 100 api.url.text(get(TEST_HTTP_URL), '<html>The Chromium Projects</html>') + | 100 api.url.text(get(TEST_HTTP_URL), '<html>The Chromium Projects</html>') + |
| 101 api.url.json(get(TEST_JSON_URL), {'is_json': True}) + | 101 api.url.json(get(TEST_JSON_URL), {'is_json': True}) + |
| 102 | 102 |
| 103 api.url.error('error', 500, body='500 Internal Server Error') + | 103 api.url.error('error', 500, body='500 Internal Server Error') + |
| 104 api.url.error('infra error', 500, body='500 Internal Server Error') | 104 api.url.error('infra error', 500, body='500 Internal Server Error') |
| 105 ) | 105 ) |
| 106 for bad_cert in TEST_BAD_CERTS: | 106 for bad_cert in TEST_BAD_CERTS: |
| 107 test += api.step_data('GET ' + bad_cert, retcode=1) | 107 test += api.step_data('GET ' + bad_cert, retcode=1) |
| 108 yield test | 108 yield test |
| OLD | NEW |