trim compute smoke tag
Delete the following from the compute smoke tag, these are more advanced things that should just be caught by full Tempest testing. - resize operations - all actions except hard reboot - all use of proxy APIs (image / volume) Trim the rest of the tests if it looks like they are doing very related activities, which means we'll typically only have one or two smoke tests per class. Change-Id: Ib91db7204848e8c0892f43251e8937dec6b23232
This commit is contained in:
parent
7daa4d10d7
commit
fbd5b3f7de
@ -38,7 +38,6 @@ class FlavorsV2TestJSON(base.BaseComputeTest):
|
|||||||
'name': flavor['name']}
|
'name': flavor['name']}
|
||||||
self.assertIn(flavor_min_detail, flavors)
|
self.assertIn(flavor_min_detail, flavors)
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('6e85fde4-b3cd-4137-ab72-ed5f418e8c24')
|
@test.idempotent_id('6e85fde4-b3cd-4137-ab72-ed5f418e8c24')
|
||||||
def test_list_flavors_with_detail(self):
|
def test_list_flavors_with_detail(self):
|
||||||
# Detailed list of all flavors should contain the expected flavor
|
# Detailed list of all flavors should contain the expected flavor
|
||||||
|
@ -73,7 +73,6 @@ class ImagesOneServerTestJSON(base.BaseV2ComputeTest):
|
|||||||
flavor = self.flavors_client.get_flavor_details(flavor_id)
|
flavor = self.flavors_client.get_flavor_details(flavor_id)
|
||||||
return flavor['disk']
|
return flavor['disk']
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('3731d080-d4c5-4872-b41a-64d0d0021314')
|
@test.idempotent_id('3731d080-d4c5-4872-b41a-64d0d0021314')
|
||||||
def test_create_delete_image(self):
|
def test_create_delete_image(self):
|
||||||
|
|
||||||
|
@ -34,14 +34,12 @@ class ListImagesTestJSON(base.BaseV2ComputeTest):
|
|||||||
super(ListImagesTestJSON, cls).setup_clients()
|
super(ListImagesTestJSON, cls).setup_clients()
|
||||||
cls.client = cls.images_client
|
cls.client = cls.images_client
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('490d0898-e12a-463f-aef0-c50156b9f789')
|
@test.idempotent_id('490d0898-e12a-463f-aef0-c50156b9f789')
|
||||||
def test_get_image(self):
|
def test_get_image(self):
|
||||||
# Returns the correct details for a single image
|
# Returns the correct details for a single image
|
||||||
image = self.client.get_image(self.image_ref)
|
image = self.client.get_image(self.image_ref)
|
||||||
self.assertEqual(self.image_ref, image['id'])
|
self.assertEqual(self.image_ref, image['id'])
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('fd51b7f4-d4a3-4331-9885-866658112a6f')
|
@test.idempotent_id('fd51b7f4-d4a3-4331-9885-866658112a6f')
|
||||||
def test_list_images(self):
|
def test_list_images(self):
|
||||||
# The list of all images should contain the image
|
# The list of all images should contain the image
|
||||||
@ -49,7 +47,6 @@ class ListImagesTestJSON(base.BaseV2ComputeTest):
|
|||||||
found = any([i for i in images if i['id'] == self.image_ref])
|
found = any([i for i in images if i['id'] == self.image_ref])
|
||||||
self.assertTrue(found)
|
self.assertTrue(found)
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('9f94cb6b-7f10-48c5-b911-a0b84d7d4cd6')
|
@test.idempotent_id('9f94cb6b-7f10-48c5-b911-a0b84d7d4cd6')
|
||||||
def test_list_images_with_detail(self):
|
def test_list_images_with_detail(self):
|
||||||
# Detailed list of all images should contain the expected images
|
# Detailed list of all images should contain the expected images
|
||||||
|
@ -78,7 +78,6 @@ class SecurityGroupRulesTestJSON(base.BaseSecurityGroupsTest):
|
|||||||
self.expected['ip_range'] = {'cidr': '0.0.0.0/0'}
|
self.expected['ip_range'] = {'cidr': '0.0.0.0/0'}
|
||||||
self._check_expected_response(rule)
|
self._check_expected_response(rule)
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('7a01873e-3c38-4f30-80be-31a043cfe2fd')
|
@test.idempotent_id('7a01873e-3c38-4f30-80be-31a043cfe2fd')
|
||||||
@test.services('network')
|
@test.services('network')
|
||||||
def test_security_group_rules_create_with_optional_cidr(self):
|
def test_security_group_rules_create_with_optional_cidr(self):
|
||||||
@ -102,7 +101,6 @@ class SecurityGroupRulesTestJSON(base.BaseSecurityGroupsTest):
|
|||||||
self.expected['ip_range'] = {'cidr': cidr}
|
self.expected['ip_range'] = {'cidr': cidr}
|
||||||
self._check_expected_response(rule)
|
self._check_expected_response(rule)
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('7f5d2899-7705-4d4b-8458-4505188ffab6')
|
@test.idempotent_id('7f5d2899-7705-4d4b-8458-4505188ffab6')
|
||||||
@test.services('network')
|
@test.services('network')
|
||||||
def test_security_group_rules_create_with_optional_group_id(self):
|
def test_security_group_rules_create_with_optional_group_id(self):
|
||||||
@ -167,7 +165,6 @@ class SecurityGroupRulesTestJSON(base.BaseSecurityGroupsTest):
|
|||||||
self.assertTrue(any([i for i in rules if i['id'] == rule1_id]))
|
self.assertTrue(any([i for i in rules if i['id'] == rule1_id]))
|
||||||
self.assertTrue(any([i for i in rules if i['id'] == rule2_id]))
|
self.assertTrue(any([i for i in rules if i['id'] == rule2_id]))
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('fc5c5acf-2091-43a6-a6ae-e42760e9ffaf')
|
@test.idempotent_id('fc5c5acf-2091-43a6-a6ae-e42760e9ffaf')
|
||||||
@test.services('network')
|
@test.services('network')
|
||||||
def test_security_group_rules_delete_when_peer_group_deleted(self):
|
def test_security_group_rules_delete_when_peer_group_deleted(self):
|
||||||
|
@ -60,7 +60,6 @@ class SecurityGroupsTestJSON(base.BaseSecurityGroupsTest):
|
|||||||
"list" % ', '.join(m_group['name']
|
"list" % ', '.join(m_group['name']
|
||||||
for m_group in deleted_sgs))
|
for m_group in deleted_sgs))
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('ecc0da4a-2117-48af-91af-993cca39a615')
|
@test.idempotent_id('ecc0da4a-2117-48af-91af-993cca39a615')
|
||||||
@test.services('network')
|
@test.services('network')
|
||||||
def test_security_group_create_get_delete(self):
|
def test_security_group_create_get_delete(self):
|
||||||
@ -83,7 +82,6 @@ class SecurityGroupsTestJSON(base.BaseSecurityGroupsTest):
|
|||||||
self.client.delete_security_group(securitygroup['id'])
|
self.client.delete_security_group(securitygroup['id'])
|
||||||
self.client.wait_for_resource_deletion(securitygroup['id'])
|
self.client.wait_for_resource_deletion(securitygroup['id'])
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('fe4abc0d-83f5-4c50-ad11-57a1127297a2')
|
@test.idempotent_id('fe4abc0d-83f5-4c50-ad11-57a1127297a2')
|
||||||
@test.services('network')
|
@test.services('network')
|
||||||
def test_server_security_groups(self):
|
def test_server_security_groups(self):
|
||||||
@ -127,7 +125,6 @@ class SecurityGroupsTestJSON(base.BaseSecurityGroupsTest):
|
|||||||
self.client.delete_security_group(sg['id'])
|
self.client.delete_security_group(sg['id'])
|
||||||
self.client.delete_security_group(sg2['id'])
|
self.client.delete_security_group(sg2['id'])
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('7d4e1d3c-3209-4d6d-b020-986304ebad1f')
|
@test.idempotent_id('7d4e1d3c-3209-4d6d-b020-986304ebad1f')
|
||||||
@test.services('network')
|
@test.services('network')
|
||||||
def test_update_security_groups(self):
|
def test_update_security_groups(self):
|
||||||
|
@ -118,7 +118,6 @@ class AttachInterfacesTestJSON(base.BaseV2ComputeTest):
|
|||||||
|
|
||||||
self.assertEqual(sorted(list1), sorted(list2))
|
self.assertEqual(sorted(list1), sorted(list2))
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('73fe8f02-590d-4bf1-b184-e9ca81065051')
|
@test.idempotent_id('73fe8f02-590d-4bf1-b184-e9ca81065051')
|
||||||
@test.services('network')
|
@test.services('network')
|
||||||
def test_create_list_show_delete_interfaces(self):
|
def test_create_list_show_delete_interfaces(self):
|
||||||
|
@ -85,7 +85,6 @@ class ServersTestJSON(base.BaseV2ComputeTest):
|
|||||||
found = any([i for i in servers if i['id'] == self.server['id']])
|
found = any([i for i in servers if i['id'] == self.server['id']])
|
||||||
self.assertTrue(found)
|
self.assertTrue(found)
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('585e934c-448e-43c4-acbf-d06a9b899997')
|
@test.idempotent_id('585e934c-448e-43c4-acbf-d06a9b899997')
|
||||||
def test_list_servers_with_detail(self):
|
def test_list_servers_with_detail(self):
|
||||||
# The created server should be in the detailed list of all servers
|
# The created server should be in the detailed list of all servers
|
||||||
|
@ -105,13 +105,11 @@ class ServerActionsTestJSON(base.BaseV2ComputeTest):
|
|||||||
self._test_reboot_server('HARD')
|
self._test_reboot_server('HARD')
|
||||||
|
|
||||||
@decorators.skip_because(bug="1014647")
|
@decorators.skip_because(bug="1014647")
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('4640e3ef-a5df-482e-95a1-ceeeb0faa84d')
|
@test.idempotent_id('4640e3ef-a5df-482e-95a1-ceeeb0faa84d')
|
||||||
def test_reboot_server_soft(self):
|
def test_reboot_server_soft(self):
|
||||||
# The server should be signaled to reboot gracefully
|
# The server should be signaled to reboot gracefully
|
||||||
self._test_reboot_server('SOFT')
|
self._test_reboot_server('SOFT')
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('aaa6cdf3-55a7-461a-add9-1c8596b9a07c')
|
@test.idempotent_id('aaa6cdf3-55a7-461a-add9-1c8596b9a07c')
|
||||||
def test_rebuild_server(self):
|
def test_rebuild_server(self):
|
||||||
# The server should be rebuilt using the provided image and data
|
# The server should be rebuilt using the provided image and data
|
||||||
@ -220,14 +218,12 @@ class ServerActionsTestJSON(base.BaseV2ComputeTest):
|
|||||||
@test.idempotent_id('1499262a-9328-4eda-9068-db1ac57498d2')
|
@test.idempotent_id('1499262a-9328-4eda-9068-db1ac57498d2')
|
||||||
@testtools.skipUnless(CONF.compute_feature_enabled.resize,
|
@testtools.skipUnless(CONF.compute_feature_enabled.resize,
|
||||||
'Resize not available.')
|
'Resize not available.')
|
||||||
@test.attr(type='smoke')
|
|
||||||
def test_resize_server_confirm(self):
|
def test_resize_server_confirm(self):
|
||||||
self._test_resize_server_confirm(stop=False)
|
self._test_resize_server_confirm(stop=False)
|
||||||
|
|
||||||
@test.idempotent_id('138b131d-66df-48c9-a171-64f45eb92962')
|
@test.idempotent_id('138b131d-66df-48c9-a171-64f45eb92962')
|
||||||
@testtools.skipUnless(CONF.compute_feature_enabled.resize,
|
@testtools.skipUnless(CONF.compute_feature_enabled.resize,
|
||||||
'Resize not available.')
|
'Resize not available.')
|
||||||
@test.attr(type='smoke')
|
|
||||||
def test_resize_server_confirm_from_stopped(self):
|
def test_resize_server_confirm_from_stopped(self):
|
||||||
self._test_resize_server_confirm(stop=True)
|
self._test_resize_server_confirm(stop=True)
|
||||||
|
|
||||||
|
@ -77,7 +77,6 @@ class ServerRescueTestJSON(base.BaseV2ComputeTest):
|
|||||||
self.servers_client.unrescue_server(server_id)
|
self.servers_client.unrescue_server(server_id)
|
||||||
self.servers_client.wait_for_server_status(server_id, 'ACTIVE')
|
self.servers_client.wait_for_server_status(server_id, 'ACTIVE')
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('fd032140-714c-42e4-a8fd-adcd8df06be6')
|
@test.idempotent_id('fd032140-714c-42e4-a8fd-adcd8df06be6')
|
||||||
def test_rescue_unrescue_instance(self):
|
def test_rescue_unrescue_instance(self):
|
||||||
self.servers_client.rescue_server(
|
self.servers_client.rescue_server(
|
||||||
|
@ -43,7 +43,6 @@ class QuotasTestJSON(base.BaseV2ComputeTest):
|
|||||||
'instances', 'security_group_rules',
|
'instances', 'security_group_rules',
|
||||||
'cores', 'security_groups'))
|
'cores', 'security_groups'))
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('f1ef0a97-dbbb-4cca-adc5-c9fbc4f76107')
|
@test.idempotent_id('f1ef0a97-dbbb-4cca-adc5-c9fbc4f76107')
|
||||||
def test_get_quotas(self):
|
def test_get_quotas(self):
|
||||||
# User can get the quota set for it's tenant
|
# User can get the quota set for it's tenant
|
||||||
@ -60,7 +59,6 @@ class QuotasTestJSON(base.BaseV2ComputeTest):
|
|||||||
for quota in expected_quota_set:
|
for quota in expected_quota_set:
|
||||||
self.assertIn(quota, quota_set.keys())
|
self.assertIn(quota, quota_set.keys())
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('9bfecac7-b966-4f47-913f-1a9e2c12134a')
|
@test.idempotent_id('9bfecac7-b966-4f47-913f-1a9e2c12134a')
|
||||||
def test_get_default_quotas(self):
|
def test_get_default_quotas(self):
|
||||||
# User can get the default quota set for it's tenant
|
# User can get the default quota set for it's tenant
|
||||||
@ -70,7 +68,6 @@ class QuotasTestJSON(base.BaseV2ComputeTest):
|
|||||||
for quota in expected_quota_set:
|
for quota in expected_quota_set:
|
||||||
self.assertIn(quota, quota_set.keys())
|
self.assertIn(quota, quota_set.keys())
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('cd65d997-f7e4-4966-a7e9-d5001b674fdc')
|
@test.idempotent_id('cd65d997-f7e4-4966-a7e9-d5001b674fdc')
|
||||||
def test_compare_tenant_quotas_with_default_quotas(self):
|
def test_compare_tenant_quotas_with_default_quotas(self):
|
||||||
# Tenants are created with the default quota values
|
# Tenants are created with the default quota values
|
||||||
|
@ -38,7 +38,6 @@ class VolumesGetTestJSON(base.BaseV2ComputeTest):
|
|||||||
super(VolumesGetTestJSON, cls).setup_clients()
|
super(VolumesGetTestJSON, cls).setup_clients()
|
||||||
cls.client = cls.volumes_extensions_client
|
cls.client = cls.volumes_extensions_client
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
|
||||||
@test.idempotent_id('f10f25eb-9775-4d9d-9cbe-1cf54dae9d5f')
|
@test.idempotent_id('f10f25eb-9775-4d9d-9cbe-1cf54dae9d5f')
|
||||||
def test_volume_create_get_delete(self):
|
def test_volume_create_get_delete(self):
|
||||||
# CREATE, GET, DELETE Volume
|
# CREATE, GET, DELETE Volume
|
||||||
|
Loading…
Reference in New Issue
Block a user