Skip to content
Snippets Groups Projects
Commit c1f12d26 authored by Erik Reid's avatar Erik Reid
Browse files

enable testing blueprint

parent 61ed86ff
Branches
Tags
No related merge requests found
......@@ -35,6 +35,9 @@ def create_app():
from inventory_provider.routes import poller
app.register_blueprint(poller.routes, url_prefix='/poller')
from inventory_provider.routes import testing
app.register_blueprint(testing.routes, url_prefix='/testing')
if "SETTINGS_FILENAME" not in os.environ:
assert False, \
"environment variable SETTINGS_FILENAME' must be defined"
......
from flask import Blueprint, Response
from inventory_provider.routes import common
routes = Blueprint("inventory-data-testing-support-routes", __name__)
@routes.route("/flushdb", methods=['GET', 'POST'])
@common.require_accepts_json
def flushdb():
common.get_redis().flushdb()
return Response('OK')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment