Fix policy check for healthcheck and version
Change-Id: I436b7ade5ff6f890eab56439a8b2219421518ce0
This commit is contained in:
parent
5fced3ed4d
commit
08c8709b4f
|
@ -74,7 +74,9 @@ def create_version_app(global_conf, **local_conf):
|
|||
'/version/{version_id}': ctrl # display details of the version
|
||||
}
|
||||
|
||||
wsgi_app = falcon.API()
|
||||
wsgi_app = falcon.API(
|
||||
request_type=request.Request
|
||||
)
|
||||
for route, ctrl in controllers.items():
|
||||
wsgi_app.add_route(route, ctrl)
|
||||
return wsgi_app
|
||||
|
@ -89,7 +91,9 @@ def create_healthcheck_app(global_conf, **local_conf):
|
|||
'/': ctrl
|
||||
}
|
||||
|
||||
wsgi_app = falcon.API()
|
||||
wsgi_app = falcon.API(
|
||||
request_type=request.Request
|
||||
)
|
||||
for route, ctrl in controllers.items():
|
||||
wsgi_app.add_route(route, ctrl)
|
||||
return wsgi_app
|
||||
|
|
|
@ -26,7 +26,7 @@ rules = [
|
|||
check_str=CHECK_AUTHORIZED_ROLES,
|
||||
description='Healthcheck head rule',
|
||||
operations=[
|
||||
{'path': '/', 'method': 'HEAD'}
|
||||
{'path': '/healthcheck', 'method': 'HEAD'}
|
||||
]
|
||||
),
|
||||
policy.DocumentedRuleDefault(
|
||||
|
@ -34,7 +34,7 @@ rules = [
|
|||
check_str=CHECK_AUTHORIZED_ROLES,
|
||||
description='Healthcheck get rule',
|
||||
operations=[
|
||||
{'path': '/', 'method': 'GET'}
|
||||
{'path': '/healthcheck', 'method': 'GET'}
|
||||
]
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue