Browse Source

Merge "Fix the smoke test error"

changes/48/530048/30
Zuul 3 years ago
committed by Gerrit Code Review
parent
commit
c2b3074edb
1 changed files with 4 additions and 7 deletions
  1. +4
    -7
      tricircle/tests/unit/network/test_qos.py

+ 4
- 7
tricircle/tests/unit/network/test_qos.py View File

@ -140,20 +140,17 @@ class TricircleQosTestMixin(object):
pod_id, project_id, constants.RT_QOS)
rule_data = {
"bandwidth_limit_rule": {
"max_kbps": "10000",
"max_burst_kbps": "20000"
"minimum_bandwidth_rule": {
"min_kbps": "1000"
}
}
t_rule = plugin.create_policy_rule(
q_ctx, rule.QosBandwidthLimitRule, res['id'], rule_data)
q_ctx, rule.QosMinimumBandwidthRule, res['id'], rule_data)
self.assertEqual(2, len(bottom_policy[0]['rules']))
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'])
b_rule = bottom_policy[0]['rules'][1]
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):


Loading…
Cancel
Save