fix the dumplicate qos rule create
see the below unit test error neutron.common.exceptions.QoSRulesConflict: Rule bandwidth_limit conflicts with rule a7c31561-6918-4ab3-b72e-daf49aabf0de which already exists in QoS Policy 4580b79c-f44c-4fa0-9321-105e4cc7fde9. Signed-off-by: song baisen <songbaisen@szzt.com.cn> Co-Authored-By: tangzhuo <ztang@hnu.edu.cn>, zhiyuan_cai <luckyvega.g@gmail.com> Change-Id: Ib0244e5d6ce7e53a5274a541f990a29b972bdf37
This commit is contained in:
parent
1e7e1b3a54
commit
9c50205e53
|
@ -139,19 +139,6 @@ class TricircleQosTestMixin(object):
|
|||
db_api.create_resource_mapping(t_ctx, res['id'], b_policy_id,
|
||||
pod_id, project_id, constants.RT_QOS)
|
||||
|
||||
rule_data = {
|
||||
"minimum_bandwidth_rule": {
|
||||
"min_kbps": "1000"
|
||||
}
|
||||
}
|
||||
|
||||
t_rule = plugin.create_policy_rule(
|
||||
q_ctx, rule.QosMinimumBandwidthRule, res['id'], rule_data)
|
||||
|
||||
self.assertEqual(1, len(bottom_policy[0]['rules']))
|
||||
b_rule = bottom_policy[0]['rules'][0]
|
||||
self.assertEqual(b_policy_id, b_rule['qos_policy_id'])
|
||||
|
||||
def _test_delete_policy_rule(self, plugin, q_ctx,
|
||||
t_ctx, pod_id, bottom_policy):
|
||||
project_id = 'test_prject_id'
|
||||
|
|
Loading…
Reference in New Issue