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

Side by Side Diff: client/site_tests/login_SecondFactor/login_SecondFactor.py

Issue 3126002: Add some more test cases for login (Closed) Base URL: http://src.chromium.org/git/autotest.git
Patch Set: improve docstring Created 10 years, 4 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
« no previous file with comments | « client/site_tests/login_SecondFactor/control ('k') | server/site_tests/suite_Nightly/control » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from autotest_lib.client.bin import chromeos_constants, site_login, site_ui_test
6 from autotest_lib.client.common_lib import error, site_auth_server
7
8 class login_SecondFactor(site_ui_test.UITest):
9 version = 1
10
11 auto_login = False
12
13 def __login_denier(self, handler, url_args):
14 handler.send_response(403)
15 handler.end_headers()
16 handler.wfile.write('Error=BadAuthentication\n')
17 handler.wfile.write('Info=InvalidSecondFactor')
18
19
20 def start_authserver(self):
21 self._authServer = site_auth_server.GoogleAuthServer(
22 cl_responder=self.__login_denier)
23 self._authServer.run()
24
25 self.use_local_dns()
26
27
28 def run_once(self):
29 pass
OLDNEW
« no previous file with comments | « client/site_tests/login_SecondFactor/control ('k') | server/site_tests/suite_Nightly/control » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698