Enable H302 check (api/compute/{c*,f*,i*,s*,t*})
We can use H302 rule but ignore it now. This commit prepares for
enabling H302 rule. But this commit modifies a part of Tempest only
because if we fix all of them at one time, it's hard to merge this
commit.
---------------
tempest/api/compute/admin
tempest/api/compute/{c*,f*,i*,s*,t*} <- This patch
tempest/api/compute/{v3,volumes},data_processing
tempest/api/identity/admin
tempest/api/image
tempest/api/{n*,o*,t*}
tempest/api/volume,tempest/*
tempest/services/compute/json
tempest/services/compute/v3/json
tempest/services/compute/xml
tempest/services/identity
tempest/services/{im*,n*,o*,t*}
tempest/services/volume
tempest/clients.py: TBD
---------------
Change-Id: I9d4041754df0e9f20937300b1e19c8ae63d4090a
diff --git a/tempest/api/compute/test_quotas.py b/tempest/api/compute/test_quotas.py
index 112e4fb..1695b19 100644
--- a/tempest/api/compute/test_quotas.py
+++ b/tempest/api/compute/test_quotas.py
@@ -14,7 +14,7 @@
# under the License.
from tempest.api.compute import base
-from tempest.test import attr
+from tempest import test
class QuotasTestJSON(base.BaseV2ComputeTest):
@@ -36,7 +36,7 @@
'instances', 'security_group_rules',
'cores', 'security_groups'))
- @attr(type='smoke')
+ @test.attr(type='smoke')
def test_get_quotas(self):
# User can get the quota set for it's tenant
expected_quota_set = self.default_quota_set | set(['id'])
@@ -46,7 +46,7 @@
sorted(quota_set.keys()))
self.assertEqual(quota_set['id'], self.tenant_id)
- @attr(type='smoke')
+ @test.attr(type='smoke')
def test_get_default_quotas(self):
# User can get the default quota set for it's tenant
expected_quota_set = self.default_quota_set | set(['id'])
@@ -56,7 +56,7 @@
sorted(quota_set.keys()))
self.assertEqual(quota_set['id'], self.tenant_id)
- @attr(type='smoke')
+ @test.attr(type='smoke')
def test_compare_tenant_quotas_with_default_quotas(self):
# Tenants are created with the default quota values
resp, defualt_quota_set = \