| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The LUCI Authors. All rights reserved. | 2 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 """Smoke test for Cloud Endpoints support in auth component. | 6 """Smoke test for Cloud Endpoints support in auth component. |
| 7 | 7 |
| 8 It launches app via dev_appserver and queries a bunch of cloud endpoints | 8 It launches app via dev_appserver and queries a bunch of cloud endpoints |
| 9 methods. | 9 methods. |
| 10 """ | 10 """ |
| 11 | 11 |
| 12 import unittest | 12 import unittest |
| 13 import os | 13 import os |
| 14 import sys | 14 import sys |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 def check_forbidden(self): | 63 def check_forbidden(self): |
| 64 response = self.app.client.json_request( | 64 response = self.app.client.json_request( |
| 65 '/_ah/api/testing_service/v1/forbidden') | 65 '/_ah/api/testing_service/v1/forbidden') |
| 66 self.assertEqual(403, response.http_code) | 66 self.assertEqual(403, response.http_code) |
| 67 | 67 |
| 68 | 68 |
| 69 if __name__ == '__main__': | 69 if __name__ == '__main__': |
| 70 fix_encoding.fix_encoding() | 70 fix_encoding.fix_encoding() |
| 71 gae_sdk_utils.setup_gae_env() | 71 gae_sdk_utils.setup_gae_env() |
| 72 unittest.main() | 72 unittest.main() |
| OLD | NEW |