Age | Commit message (Collapse) | Author |
|
* We validate the token to make sure it is valid. But we also
need to make sure the token used can send boot reports for
the provided lab.
* Add some tests to cover this case.
Change-Id: I5a09d8845f08cac63a43f10b533aa5804b643486
|
|
Change-Id: I49822be826a3d59ab2d69560c95c4d66308ada6a
|
|
* Use new validation logic as provided by base handler.
* Add new common fields.
Change-Id: I0f7eadf0b86acb6ea7b7493547e79f6f073e98b3
|
|
Change-Id: Id0707b7f916d7d08fadcfde48c63be5a9311b467
|
|
* Add master_key validation where it belongs, only in the
token handler.
* Rework validation methods.
* Add tests.
Change-Id: Ib457963bc2ae2018e8241297f75b8667dac0e572
|
|
Change-Id: I529aaf81d922db1f110cb8ddd22e88227ac3c462
|
|
* Turn _valid_keys into a static method for all handlers.
* Use in batch handlers the valid keys defined in common.
* Change the JSON serializer using the default one, and change
how mongodb Cursor results are stored (should be slightly
faster).
Change-Id: I17cf26d9011e34125bf6873edda7179a5202aa39
|
|
* Refactor handlers code to use the newly defined keys.
Change-Id: Ib14578bd1f2a57297b2296a0c1d12824700c9f2e
|
|
* Move all the handlers common methods into a single
module (making them "static").
* Refactor methods and tests.
* Add new tests.
Change-Id: Ied713e6d5a9d4c16dcc27794509bdc6dd1193c1f
|
|
* Add a more complex DELETE method that accepts either an ID
or a query to specify which boot reports to delete. This is
specific only to the boot handler.
* Refactor the base handler and created a new method to retrieve
the date_range query. This is necesary to limit the boot delete
method to not include date range deletion.
* Add boot handler test focused on the DELETE implementation.
Change-Id: I6ac159e8bddd5f0a094692ed891aefa1b0f31a41
|
|
Change-Id: Ida91454fc0d3e97699643ddc07bbf74e996b5678
|
|
* Will break the frontend.
* Rework BaseHandler in order for that to handle all the async
calls setup, and leave the subclasses to implement just the
correct methods.
* TokenHandler is a special case, since we need special token
protection for that.
* Fix db.py so that it returns plaun mongodb objects (Cursor)
and store them as is: they are iteratable.
* Make HandlerResponse the only accepted response type to
create the response that is sent to the clients.
* Fixe, rework and add tests.
Change-Id: Ief7dad65b2801f701e7e5f67b3a360329aca69f6
|
|
|
|
* Apparently, mongodb internally has a field called 'created',
that collides with the 'created' attribute we have in the
models. Sort operations on that field returned weird results
when you drop the DB and re-import everything and are expecting
to see the real documents date.
* Rename created models attribute into created_on, and move it
into the base model.
* Fix tests.
|
|
* Fix default return value to empty list.
|
|
* Add URL for boot handler.
|
|
|