Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: appengine/components/tests/endpoints_smoke_test.py

Issue 1860863002: Update copyright notice from Swarming to LUCI; add AUTHORS and CONTRIBUTORS. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Swarming 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 by the Apache v2.0 license that can be
4 # found in the LICENSE file. 4 # 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
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 response = self.app.client.json_request( 78 response = self.app.client.json_request(
79 '/_ah/api/testing_service/v1/who', headers={'X-Host-Token-V1': token}) 79 '/_ah/api/testing_service/v1/who', headers={'X-Host-Token-V1': token})
80 self.assertEqual(200, response.http_code) 80 self.assertEqual(200, response.http_code)
81 self.assertEqual('host-name', response.body.get('host')) 81 self.assertEqual('host-name', response.body.get('host'))
82 82
83 83
84 if __name__ == '__main__': 84 if __name__ == '__main__':
85 fix_encoding.fix_encoding() 85 fix_encoding.fix_encoding()
86 gae_sdk_utils.setup_gae_env() 86 gae_sdk_utils.setup_gae_env()
87 unittest.main() 87 unittest.main()
OLDNEW
« no previous file with comments | « appengine/components/test_support/test_env.py ('k') | appengine/components/tests/test_endpoints_app/main.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698