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
This commit is contained in:
parent
2354c2a0d2
commit
fd774f3af0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user