From fd774f3af05e0656005b30a5c7b9cd17ddc66920 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Wed, 26 Jun 2024 10:43:45 +0200 Subject: [PATCH] Don't send project_id as QoS rule attribute in the tests Qos rules don't really have project_id attribute and they belon to the project to which QoS policy belongs to. For that reason there is no need to send project_id in the body of the POST request to create QoS rule in tests module. Related-bug: #2022043 Change-Id: Ie4d99bcbf67419f80dbe74b2265eb87f90720673 --- neutron/tests/unit/db/test_db_base_plugin_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/tests/unit/db/test_db_base_plugin_v2.py b/neutron/tests/unit/db/test_db_base_plugin_v2.py index 5c0487f176b..0a8fbf60572 100644 --- a/neutron/tests/unit/db/test_db_base_plugin_v2.py +++ b/neutron/tests/unit/db/test_db_base_plugin_v2.py @@ -675,7 +675,7 @@ class NeutronDbPluginV2TestCase(testlib_api.WebTestCase): qos_const.RULE_TYPE_MINIMUM_BANDWIDTH]) project_id = project_id or self._tenant_id type_req = rule_type + '_rule' - data = {type_req: {'project_id': project_id}} + data = {type_req: {}} if rule_type == qos_const.RULE_TYPE_BANDWIDTH_LIMIT: data[type_req][qos_const.MAX_KBPS] = max_kbps data[type_req][qos_const.MAX_BURST] = max_burst_kbps