sanic/tests
Harsha Narayana 348964fe12 Enable Middleware Support for Blueprint Groups (#1399)
* enable blueprint group middleware support

This commit will enable the users to implement a middleware at the
blueprint group level whereby enforcing the middleware automatically to
each of the available Blueprints that are part of the group.

This will eanble a simple way in which a certain set of common features
and criteria can be enforced on a Blueprint group. i.e. authentication
and authorization

This commit will address the feature request raised as part of Issue #1386

Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>

* enable indexing of BlueprintGroup object

Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>

* rename blueprint group file to fix spelling error

Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>

* add documentation and additional unit tests

Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>

* cleanup and optimize headers in unit test file

Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>

* fix Bluprint Group iteratable method

Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>

* add additional unit test to check StopIteration condition

Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>

* cleanup iter protocol implemenation for blueprint group and add slots

Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>

* fix blueprint group middleware invocation identification

Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>

* feat: enable list behavior on blueprint group object and use append instead of properly to add blueprint to group

Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
2019-03-03 16:26:05 -06:00
..
benchmark Add Route Resolution Benchmarking to Unit Test (#1499) 2019-02-28 08:56:41 -06:00
certs initial commit 2017-03-03 11:44:50 -05:00
performance Run linter 2018-12-30 13:18:06 +02:00
static Add content_type flag to Sanic.static (#1267) 2018-07-20 22:31:15 -07:00
conftest.py Add Route Resolution Benchmarking to Unit Test (#1499) 2019-02-28 08:56:41 -06:00
test_app.py Add Route Resolution Benchmarking to Unit Test (#1499) 2019-02-28 08:56:41 -06:00
test_bad_request.py Run linter 2018-12-30 13:18:06 +02:00
test_blueprint_group.py Enable Middleware Support for Blueprint Groups (#1399) 2019-03-03 16:26:05 -06:00
test_blueprints.py Run linter 2018-12-30 13:18:06 +02:00
test_config.py Add Route Resolution Benchmarking to Unit Test (#1499) 2019-02-28 08:56:41 -06:00
test_cookies.py Add Route Resolution Benchmarking to Unit Test (#1499) 2019-02-28 08:56:41 -06:00
test_create_task.py Run linter 2018-12-30 13:18:06 +02:00
test_custom_protocol.py Run linter 2018-12-30 13:18:06 +02:00
test_custom_request.py Created methods to append and finish body content on Request (#1379) 2018-11-12 09:11:41 -06:00
test_dynamic_routes.py Add Route Resolution Benchmarking to Unit Test (#1499) 2019-02-28 08:56:41 -06:00
test_exceptions_handler.py Run linter 2018-12-30 13:18:06 +02:00
test_exceptions.py Add Route Resolution Benchmarking to Unit Test (#1499) 2019-02-28 08:56:41 -06:00
test_helpers.py Run linter 2018-12-30 13:18:06 +02:00
test_keep_alive_timeout.py Enforce Datetime Type for Expires on Set-Cookie (#1484) 2019-02-06 12:29:33 -06:00
test_logging.py Run linter 2018-12-30 13:18:06 +02:00
test_logo.py Enforce Datetime Type for Expires on Set-Cookie (#1484) 2019-02-06 12:29:33 -06:00
test_middleware.py upgrade pytest version that compatible with pytest-cov, fixes some caplog unit tests (#1464) 2019-01-08 09:15:23 -06:00
test_multiprocessing.py Run linter 2018-12-30 13:18:06 +02:00
test_named_routes.py Run linter 2018-12-30 13:18:06 +02:00
test_payload_too_large.py Run linter 2018-12-30 13:18:06 +02:00
test_redirect.py Run linter 2018-12-30 13:18:06 +02:00
test_request_cancel.py Run linter 2018-12-30 13:18:06 +02:00
test_request_data.py Run linter 2018-12-30 13:18:06 +02:00
test_request_stream.py Add Route Resolution Benchmarking to Unit Test (#1499) 2019-02-28 08:56:41 -06:00
test_request_timeout.py Enforce Datetime Type for Expires on Set-Cookie (#1484) 2019-02-06 12:29:33 -06:00
test_requests.py Add Route Resolution Benchmarking to Unit Test (#1499) 2019-02-28 08:56:41 -06:00
test_response_timeout.py fix access_log in run server and fix bool in env variables 2019-01-02 23:28:05 +01:00
test_response.py Run linter 2018-12-30 13:18:06 +02:00
test_routes.py Run linter 2018-12-30 13:18:06 +02:00
test_server_events.py Enforce Datetime Type for Expires on Set-Cookie (#1484) 2019-02-06 12:29:33 -06:00
test_signal_handlers.py Run linter 2018-12-30 13:18:06 +02:00
test_static.py Run linter 2018-12-30 13:18:06 +02:00
test_url_building.py Add Route Resolution Benchmarking to Unit Test (#1499) 2019-02-28 08:56:41 -06:00
test_url_for_static.py Run linter 2018-12-30 13:18:06 +02:00
test_utf8.py Run linter 2018-12-30 13:18:06 +02:00
test_vhosts.py Run linter 2018-12-30 13:18:06 +02:00
test_views.py Run linter 2018-12-30 13:18:06 +02:00
test_worker.py Enforce Datetime Type for Expires on Set-Cookie (#1484) 2019-02-06 12:29:33 -06:00