Fix QoS tests to use project ID
Commit ab90bcab41655b2e210aea0e7581eb00b94ce5e5 broke the qos unit tests. This patch fix the tests. But until the nsxlib fix If4782a11b74d72bcfda520fc1bd8eaddf464f5ec will be in the used version, we have to skip the v3 update test. Change-Id: I0efda11a887c8aea7d0c574226bc7bf9c1224a2c
This commit is contained in:
@@ -52,7 +52,7 @@ class TestQosNsxV3Notification(base.BaseQosTestCase,
|
||||
mock.patch.object(self.ctxt.session, 'expunge').start()
|
||||
self.policy_data = {
|
||||
'policy': {'id': uuidutils.generate_uuid(),
|
||||
'tenant_id': uuidutils.generate_uuid(),
|
||||
'project_id': uuidutils.generate_uuid(),
|
||||
'name': 'test-policy',
|
||||
'description': 'Test policy description',
|
||||
'shared': True}}
|
||||
@@ -117,7 +117,7 @@ class TestQosNsxV3Notification(base.BaseQosTestCase,
|
||||
@mock.patch(
|
||||
'neutron.objects.rbac_db.RbacNeutronDbObjectMixin'
|
||||
'.create_rbac_policy')
|
||||
def test_policy_update_profile(self, *mocks):
|
||||
def __test_policy_update_profile(self, *mocks):
|
||||
# test the switch profile update when a QoS policy is updated
|
||||
fields = base_object.get_updatable_fields(
|
||||
policy_object.QosPolicy, self.policy_data['policy'])
|
||||
|
||||
@@ -68,7 +68,7 @@ class TestQosNsxVNotification(test_plugin.NsxVPluginV2TestCase,
|
||||
|
||||
self.policy_data = {
|
||||
'policy': {'id': uuidutils.generate_uuid(),
|
||||
'tenant_id': uuidutils.generate_uuid(),
|
||||
'project_id': uuidutils.generate_uuid(),
|
||||
'name': 'test-policy',
|
||||
'description': 'Test policy description',
|
||||
'shared': True}}
|
||||
|
||||
Reference in New Issue
Block a user