]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Don't set tenant_id for rule objects
authorIhar Hrachyshka <ihrachys@redhat.com>
Sat, 25 Jul 2015 15:42:23 +0000 (17:42 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Mon, 27 Jul 2015 11:54:27 +0000 (11:54 +0000)
There is no such field anyway.

Partially-Implements: blueprint quantum-qos-api
Change-Id: Iac895d7eff8dc4f34b56007a48fa6fc64535fca3

neutron/tests/unit/objects/qos/test_policy.py

index afd6a79829b22356452d2c31e45fa9ba46055913..ea7d230cbe48829ae30fe0823586111aca1923cb 100644 (file)
@@ -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()