From: Ihar Hrachyshka Date: Sat, 25 Jul 2015 15:42:23 +0000 (+0200) Subject: Don't set tenant_id for rule objects X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=9193048edf186d90739ff2e1b3d9737fc3ba06fb;p=openstack-build%2Fneutron-build.git Don't set tenant_id for rule objects There is no such field anyway. Partially-Implements: blueprint quantum-qos-api Change-Id: Iac895d7eff8dc4f34b56007a48fa6fc64535fca3 --- diff --git a/neutron/tests/unit/objects/qos/test_policy.py b/neutron/tests/unit/objects/qos/test_policy.py index afd6a7982..ea7d230cb 100644 --- a/neutron/tests/unit/objects/qos/test_policy.py +++ b/neutron/tests/unit/objects/qos/test_policy.py @@ -94,7 +94,6 @@ class QosPolicyDbObjectTestCase(test_base.BaseDbObjectTestCase, rule_fields = self.get_random_fields( obj_cls=rule.QosBandwidthLimitRule) rule_fields['qos_policy_id'] = policy_obj.id - rule_fields['tenant_id'] = policy_obj.tenant_id rule_obj = rule.QosBandwidthLimitRule(self.context, **rule_fields) rule_obj.create()