From 9c50205e534aafe0dd6ea8f77f61f3c4bc2a9979 Mon Sep 17 00:00:00 2001 From: songbaisen Date: Tue, 4 Sep 2018 13:58:58 +0800 Subject: [PATCH] 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 Co-Authored-By: tangzhuo , zhiyuan_cai Change-Id: Ib0244e5d6ce7e53a5274a541f990a29b972bdf37 --- tricircle/tests/unit/network/test_qos.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tricircle/tests/unit/network/test_qos.py b/tricircle/tests/unit/network/test_qos.py index 1ded9bbb..b91e2b34 100644 --- a/tricircle/tests/unit/network/test_qos.py +++ b/tricircle/tests/unit/network/test_qos.py @@ -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'