diff --git a/requirements.txt b/requirements.txt index c4c7fcc78e..a118856a35 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,3 +21,4 @@ stevedore>=1.20.0 # Apache-2.0 PrettyTable>=0.7.1 # BSD urllib3>=1.21.1 # MIT debtcollector>=1.2.0 # Apache-2.0 +defusedxml>=0.7.1 # PSFL diff --git a/tempest/lib/services/object_storage/account_client.py b/tempest/lib/services/object_storage/account_client.py index 52b253423b..d7ce526a62 100644 --- a/tempest/lib/services/object_storage/account_client.py +++ b/tempest/lib/services/object_storage/account_client.py @@ -14,8 +14,8 @@ # under the License. from urllib import parse as urllib -from xml.etree import ElementTree as etree +from defusedxml import ElementTree as etree from oslo_serialization import jsonutils as json from tempest.lib.common import rest_client diff --git a/tempest/lib/services/object_storage/container_client.py b/tempest/lib/services/object_storage/container_client.py index 6d07ec124b..ee87726ff1 100644 --- a/tempest/lib/services/object_storage/container_client.py +++ b/tempest/lib/services/object_storage/container_client.py @@ -14,9 +14,9 @@ # under the License. from urllib import parse as urllib -from xml.etree import ElementTree as etree import debtcollector.moves +from defusedxml import ElementTree as etree from oslo_serialization import jsonutils as json from tempest.lib.common import rest_client