History log of /external/autotest/frontend/afe/views.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ee480ade8d9c29938a3cc1dfa7a7d0bf1dfd2c4d 17-Apr-2017 Aviv Keshet <akeshet@chromium.org> autotest: raw_post_data -> body (address django DeprecationWarning)

BUG=chromium:711808
TEST=None

Change-Id: I66e4b5c39c7cbfceeed61a148cbf9943c4076854
Reviewed-on: https://chromium-review.googlesource.com/479694
Commit-Ready: Aviv Keshet <akeshet@chromium.org>
Tested-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
/external/autotest/frontend/afe/views.py
cdd00f20ac7607ff89a97e83e2483a4c8feddb7b 02-Feb-2017 Allen Li <ayatane@chromium.org> [autotest] Remove site_rpc_interface

BUG=chromium:672727
TEST=Run unittests

Change-Id: I8535b121ba7f2317cccec981bf2a8a36ca2639cf
Reviewed-on: https://chromium-review.googlesource.com/435850
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>
/external/autotest/frontend/afe/views.py
ba232a36e058b58188a662647eeaa52c2b76a945 26-Aug-2016 xixuan <xixuan@chromium.org> Autotest: Move moblab-related RPC to moblab_rpc_interface.py.

This CL moves all RPCs that can only be run on moblab to moblab_rpc_interface.
Also move related unittests to moblab_rpc_interface_unittest.

BUG=chromium:641549
TEST=cros flash to a local moblab, upload boto key, then run a suite on it.

Change-Id: I8246282a4c7250350dd9a4e9043eaeba293ccb34
Reviewed-on: https://chromium-review.googlesource.com/377418
Commit-Ready: Xixuan Wu <xixuan@chromium.org>
Tested-by: Xixuan Wu <xixuan@chromium.org>
Reviewed-by: Fang Deng <fdeng@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/frontend/afe/views.py
71206ef92012e5a5c36bbd1ae47e9176be04036d 13-Aug-2014 Simran Basi <sbasi@chromium.org> [MobLab] Moblab Setup page.

* Adds a new page located at /moblab_setup
* 2 are on this page: 1 to upload a Boto Key and 1 to edit the config values.
* Link to /moblab_setup is visible only on a moblab system.
* RPC's that execute moblab_setup's actions are gated by a decorator that
limits them to only run on a moblab_system.
* Unittests for new RPC's.
* Editting the config values, writes the full config to shadow_config.ini and
reboots the system so changes takes effort.
* Resetting the config values, makes shadow_config.ini an empty file and
reboots the system so it is restored.
* Uploading the boto key uses shutil.copyfile to write in the new boto file's
contents to the boto file location.

BUG=chromium:396694
TEST=unittests, Uploaded a boto key and successfully ran a suite, editted
config and ensured changes were written into shadow_config, & reset config
and ensured that the default settings were restored.
DEPLOY=afe,apache
CQ-DEPEND=CL:212322
CQ-DEPEND=CL:212323
CQ-DEPEND=CL:212295

Change-Id: Ie354a2df310393045f3116e93004f58ea671de36
Reviewed-on: https://chromium-review.googlesource.com/209685
Reviewed-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
/external/autotest/frontend/afe/views.py
f2341ebc50501393e4ee8a4d15d27fe5d7a17b40 21-Jun-2010 jamesren <jamesren@592f7852-d20e-0410-864c-8624ca9c26a4> Switch urllib2 with httplib2 in frontend/afe/views.py.
urllib2 was causing random 'Connection reset by peer' on GWT devmode; appears to
be a bug in the library, as httplib2 does not cause this error.

Signed-off-by: James Ren <jamesren@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@4655 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/views.py
26b7ec787d8fc566294ca39f6ceb7dcf3395a6c2 21-Dec-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Note: This change is to support a project that I am working on. You should see no change in the behavior of your current Autotest installations.

-----

Implement the models and set up the RPC framework for the Test Planner

Signed-off-by: James Ren <jamesren@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@4039 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/views.py
5deef7fb0ae83271dbd43f4f381d4cdbe5fa6480 09-Sep-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> * added import_site_module() to other import_site_*() methods in utils
* made site_rpc_interface.py optional using import_site_module()
* made import_site_*() methods fail with an exception when a site file exists but isn't readable

Signed-off-by: Steve Howard <showard@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3679 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/views.py
a5288b4bb2b09aafe914d0b7d5aab79a7e433eaf 28-Jul-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Upgrade from Django 0.96 to Django 1.0.2.

Risk: high (framework change)
Visibility: medium

Signed-off-by: James Ren <jamesren@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3457 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/views.py
ef6fe028fcc667366e8ac30fe63ba314a4b1d745 27-Mar-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> generic JSON-RPC implementation using JSONP (JSON with Padding). the central part of this change consists of:
* refactored JsonRpcProxy to extract all XmlHttpRequest-specific logic into a new XhrHttpRequest subclass, and made JsonRpcProxy abstract
* introduced new PaddedJsonRpcProxy subclass of XmlHttpRequest that uses JSONP instead of XHR
* added new handle_jsonp_rpc_request() method to rpc_handler.py, to handle JSONP requests on the server side

This enables the entire frontend (either AFE or TKO) to operate via JSONP instead of XHR. I didn't make them do that now, since there's no reason, but it will be critical when we go to make components embeddable in other pages (on other domains). Other changes here include:

* made TestDetailView use PaddedJsonRpcProxy (it previous had its own custom JSONP logic, which was all moved into PaddedJsonRpcProxy).
* made retrieve_logs.cgi and jsonp_fetcher.cgi support JSONP requests, so that log fetching requests could go through the shared JsonRpcProxy codepath. retrieve_logs.cgi still supports the old GET params interface for backwards compatibility (at least old TKO still uses it, and possible other scripts).

Signed-off-by: Steve Howard <showard@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2943 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/views.py
205fd60f9c9d2f64ec2773f295de1cf5cfd3bc77 21-Mar-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Fix the AtomicGroup name display in the admin interface.

Adds an invalid bool column and use the existing invalid model to avoid
problems when deleting from the django admin interface.

Signed-off-by: Gregory Smith <gps@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2918 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/views.py
37c7fe6ad221d6d60807ce75220aee34e14020fd 24-Jul-2008 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Added templates for 404 and 500 errors. 404 displays a generic "page
not found" error. 500 displays the exception type and value, along with
a traceback that can be revealed.

Risk: low
Visibility: medium (changing the look and feel of errors)

Signed-off-by: James Ren <jamesren@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@1895 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/views.py
ff9013885970838cb7b2e868ff7f8b762757b989 08-Jul-2008 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> -move logged-in user tracking to separate thread_local module. models.py will soon depend on it, so it had to be moved to avoid circular dependencies.
-made apache_auth set the logged-in user, rather than the rpc handling view. this way the user will be set when the admin interface is accessed as well.



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1776 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/views.py
0afbb6369aa5aa9a75ea67dd9e95ec4b21c0c181 06-Jun-2008 jadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4> Convert all python code to use four-space indents instead of eight-space tabs.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1658 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/views.py
7c7852819d0611b4d0e8e69b3011b79e4016a770 29-May-2008 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Restructure code in preparation for sharing with new TKO.

-Change structure of RPC handler. New rpc_handler.py is independent of AFE and will eventually be moved to a common dir, along with the JSON and JSON-RPC stuff. rpc_handler.py now has a class structure that allows multiple apps to instantiate their own RPC handlers with different interfaces.

-Pull out generic model extensions from models.py into model_logic.py. This too will be moved to a common dir.


git-svn-id: http://test.kernel.org/svn/autotest/trunk@1566 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/views.py
e8819cdf80ca0e0602d22551a50f970aa68e108d 15-Feb-2008 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Add frontend and scheduler for Autotest

The attached tarball includes the new Autotest web frontend for creating
and monitoring jobs and the new scheduler for executing jobs. We've
been working hard to get these complete and stabilized, and although
they still have a long, long way to go in terms of features, we believe
they are now stable and powerful enough to be useful.

The frontend consists of two parts, the server and the client. The
server is implemented in Python using the Django web framework, and is
contained under frontend/ and frontend/afe. The client is implemented
using Google Web Toolkit and is contained under frontend/client. We
tried to use Dojo initially, as was generally agreed on, but it proved
to be too young and poorly documented of a framework, and developing in
it was just too inefficient.

The scheduler is contained entirely in the scheduler/monitor_db Python
file. It looks at the database used by the web frontend and spawns
autoserv processes to run jobs, monitoring them and recording status.
The scheduler was developed by Paul Turner, who will be sending out some
detailed documentation of it soon.

I've also included the DB migrations code for which I recently submitted
a patch to the mailing list. I've included this code because it is
necessary to create the frontend DB, but it will (hopefully) soon be
part of the SVN repository.

Lastly, there is an apache directory containing configuration files for
running the web server through Apache.

I've put instructions for installing a full Autotest server, including
the web frontend, the scheduler, and the existing "tko" results backend,
at http://test.kernel.org/autotest/AutotestServerInstall. I've also
created a brief guide to using the web frontend, with plenty of
screenshots, at http://test.kernel.org/autotest/WebFrontendHowTo.
Please let me know if you find any problems with either of these pages.

Take a look, try it out, send me comments, complaints, and bugs, and I
hope you find it useful!

Steve Howard, and the rest of the Google Autotest team

From: Steve Howard <showard@google.com>




git-svn-id: http://test.kernel.org/svn/autotest/trunk@1242 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/views.py