fix cinder quota equality
The cinder quota test was of bad quality, and assumed that all
the functions in the class ran in linear order to work. If they
run in a different order the tenant could have additional quota
values beyond the strict defaults.
We can fix this by testing the returned quota contains the values
we're attempting to update.
Closes-Bug: #1291926
Change-Id: I53a154aac61368b7c20ac5703f3877fcf42f9781
diff --git a/tempest/api/volume/admin/test_volume_quotas.py b/tempest/api/volume/admin/test_volume_quotas.py
index 742f7e1..cf308f5 100644
--- a/tempest/api/volume/admin/test_volume_quotas.py
+++ b/tempest/api/volume/admin/test_volume_quotas.py
@@ -65,7 +65,10 @@
self.addCleanup(self.quotas_client.update_quota_set,
self.demo_tenant_id, **default_quota_set)
self.assertEqual(200, resp.status)
- self.assertEqual(new_quota_set, quota_set)
+ # test that the specific values we set are actually in
+ # the final result. There is nothing here that ensures there
+ # would be no other values in there.
+ self.assertDictContainsSubset(new_quota_set, quota_set)
@test.attr(type='gate')
def test_show_quota_usage(self):