History log of /external/autotest/frontend/afe/urls.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/urls.py
3981f4450e25f75aa81844f7a45c5850d2444040 16-Feb-2010 jamesren <jamesren@592f7852-d20e-0410-864c-8624ca9c26a4> New, more consistent way of representing relationships in RESTful interface. A relationship between two entrys is represented as a relationship itself, contained in a collection. For example,

resources/labelings?host=myhost

retrieves all labelings for host myhost, each with a URI like

resources/labelings/myhost,mylabel

which represents that the label mylabel is applied to the host myhost. The user can POST to the former URI to relate two entries and DELETE the latter URI to break the relationship. This makes it much more consistent with the rest of the interface.

There are various other refactorings included in here that came up as I worked through this change to make things cleaner.

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


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4246 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/urls.py
32444c27d21894efa319826a91c4467f2042ffd8 12-Feb-2010 jamesren <jamesren@592f7852-d20e-0410-864c-8624ca9c26a4> Fix debug paths in AFE URLs

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


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4237 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/urls.py
f828c77299496a78d8e7f5afe608f7e73851fbd0 25-Jan-2010 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> First version of new RESTful AFE interface. Includes a substantial library (under frontend/shared) and a definition of the interface for AFE (frontend/afe/resources.py).

If you want to see what this interface looks like, I encourage you to check out

http://your-autotest-server/afe/server/resources/?alt=json-html

>From there you can explore the entire interface through your browser (this is one of its great strengths).

For an introduction to the idea behind RESTful services, try http://bitworking.org/news/How_to_create_a_REST_Protocol.

This is still very much under development and there are plenty of TODOs, but it's working so I wanted to get it out there so we can start seeing how useful it turns out to be.

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



git-svn-id: http://test.kernel.org/svn/autotest/trunk@4165 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/urls.py
a849ceba3b15091666ddec1630b1fb64635f45df 20-Jan-2010 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Fix error when accessing some pages of the admin interface

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


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4153 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/urls.py
f713072bce3ed8fe082449baddf7b2ac2d74f2de 23-Dec-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Change URLconfs to collect results of calling patterns(), rather than collecting tuples and then passing them into patterns all at the end. Django documentation specifically states that it's OK to concatenate the result of patterns().
Also get rid of the from ... import * to conform to our coding style.

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


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4042 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/urls.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/urls.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/urls.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/urls.py
9865997a354f669584c1cc3ef210efbdefb9a508 17-Jul-2008 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> -fixed url redirection for /tko URLs in debug server, to ease development pain
-changed links in job details table a bit (added status log link and changed text)
-change rpc_utils.py to handle datetime.date objects
-various minor changes needed for new TKO



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1861 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/urls.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/urls.py
2074cd82bf24a8169665f7ca93bab766e6946948 06-Jun-2008 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Couple of reorg-related changes that didn't make it in.


git-svn-id: http://test.kernel.org/svn/autotest/trunk@1645 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/urls.py
acdbe3535529a24555d874a8038993c62fd690c2 06-Jun-2008 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> -moved StaticDataRepository to autotest.common so new TKO can use it
-moved most logic from AfeClient into CustomTabPanel so new TKO can share it
-converted JsonRpcProxy to use new RequestBuilder in place of deprecated HTTPRequest
-converted JSONArrayList to use generics
-few more leftover changes from GWT reorganization

This CL introduces dependency on GWT 1.5 so you'll need to upgrade before using this. It's a painless upgrade.


git-svn-id: http://test.kernel.org/svn/autotest/trunk@1623 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/urls.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/urls.py
b91c3b91c2629d2408b26d99c3cdd2d8afe20b7d 23-Apr-2008 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Add support for completed/failed jobs RSS feeds.
From: Ian Lawrence <ext-ian.lawrence@nokia.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@1460 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/urls.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/urls.py