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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/login_SecondFactor/login_SecondFactor.py
diff --git a/client/site_tests/login_SecondFactor/login_SecondFactor.py b/client/site_tests/login_SecondFactor/login_SecondFactor.py
new file mode 100644
index 0000000000000000000000000000000000000000..90d45cdc27ced50419b4db77dae0c341438a4b2a
--- /dev/null
+++ b/client/site_tests/login_SecondFactor/login_SecondFactor.py
@@ -0,0 +1,29 @@
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from autotest_lib.client.bin import chromeos_constants, site_login, site_ui_test
+from autotest_lib.client.common_lib import error, site_auth_server
+
+class login_SecondFactor(site_ui_test.UITest):
+ version = 1
+
+ auto_login = False
+
+ def __login_denier(self, handler, url_args):
+ handler.send_response(403)
+ handler.end_headers()
+ handler.wfile.write('Error=BadAuthentication\n')
+ handler.wfile.write('Info=InvalidSecondFactor')
+
+
+ def start_authserver(self):
+ self._authServer = site_auth_server.GoogleAuthServer(
+ cl_responder=self.__login_denier)
+ self._authServer.run()
+
+ self.use_local_dns()
+
+
+ def run_once(self):
+ pass
« 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