Use Werkzeug modern version
Request class from Werkzeug now includes json capability by default. See [1] and [2] for more info. [1]2cd4fa9484
[2]7b52ecd8f3
Change-Id: I3c74b26ef4aff07c371364203a5b39c658b552a7
This commit is contained in:
parent
f9a7871ea0
commit
8111475eb0
@ -20,7 +20,6 @@ from oslo_service import wsgi
|
||||
import werkzeug
|
||||
from werkzeug import exceptions as http_exc
|
||||
from werkzeug import routing
|
||||
from werkzeug.wrappers import json as http_json
|
||||
|
||||
from ironic_python_agent import encoding
|
||||
|
||||
@ -30,7 +29,7 @@ _CUSTOM_MEDIA_TYPE = 'application/vnd.openstack.ironic-python-agent.v1+json'
|
||||
_DOCS_URL = 'https://docs.openstack.org/ironic-python-agent'
|
||||
|
||||
|
||||
class Request(werkzeug.Request, http_json.JSONMixin):
|
||||
class Request(werkzeug.Request):
|
||||
"""Custom request class with JSON support."""
|
||||
|
||||
|
||||
|
@ -18,7 +18,6 @@ from unittest import mock
|
||||
from oslo_config import cfg
|
||||
from werkzeug import test as http_test
|
||||
from werkzeug import wrappers
|
||||
from werkzeug.wrappers import json as http_json
|
||||
|
||||
from ironic_python_agent import agent
|
||||
from ironic_python_agent.api import app
|
||||
@ -29,7 +28,7 @@ from ironic_python_agent.tests.unit import base as ironic_agent_base
|
||||
PATH_PREFIX = '/v1'
|
||||
|
||||
|
||||
class Response(wrappers.Response, http_json.JSONMixin):
|
||||
class Response(wrappers.Response):
|
||||
pass
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
Pint==0.5
|
||||
Werkzeug==1.0.1
|
||||
Werkzeug==2.0.0
|
||||
bandit==1.1.0
|
||||
coverage==4.0
|
||||
cryptography==2.3
|
||||
|
@ -18,6 +18,6 @@ requests>=2.14.2 # Apache-2.0
|
||||
stevedore>=1.20.0 # Apache-2.0
|
||||
tenacity>=6.2.0 # Apache-2.0
|
||||
ironic-lib>=5.1.0 # Apache-2.0
|
||||
Werkzeug>=1.0.1 # BSD License
|
||||
Werkzeug>=2.0.0 # BSD License
|
||||
cryptography>=2.3 # BSD/Apache-2.0
|
||||
tooz>=2.7.2 # Apache-2.0
|
||||
|
Loading…
Reference in New Issue
Block a user