Commit Graph

3 Commits

Author SHA1 Message Date
Rodolfo Alonso Hernandez 1da279b3ad Use "unittest.mock" library and drop "mock" installation
As commented in [1], "unittest.mock" has been supported in the Python
internal unit testing framework since version 3.3.

[1]http://lists.openstack.org/pipermail/openstack-discuss/2020-March/013281.html

Change-Id: If71241a412ecfe3471a472802e18c986bd05d5b1
2020-03-13 12:10:36 +00:00
Miguel Lavalle 3e44497d15 Use QoS constants definitions
Some of the QoS API extensions definitions were using literal string
constants when defining attributes, instead of commonly predefined
constants. This patch fixes that situation.

In addition, modules related to the metering extension are also
updated to re-use the DIRECTION constant.

Change-Id: Ib1c272f6ce11864bd461bb8c29ee8cad0e91945d
2018-10-19 11:44:32 -05:00
Boden R d35f7e1716 rehome qos service DriverBase class
The neutron.services.qos.drivers.base.DriverBase class is used by a
number of consumers [1]. This patch rehomes it into neutron_lib along
with the qos_consts that are also used by consumers [2].

UTs and a release note are also included.

[1] http://codesearch.openstack.org/?q=from%20neutron%5C.services%5C.qos%5C.drivers%20import%20base
[2] http://codesearch.openstack.org/?q=from%20neutron%5C.services%5C.qos%20import%20qos_consts

Change-Id: Ifaf4657c37791e8e11907c66fb6cab7128c122a6
2017-06-13 09:06:33 -06:00