Skip to content

Commit 598e9b1

Browse files
author
Girish Shilamkar
committed
CLOUDSTACK-7413: Adding required_hardware tag to regression test cases so that the test cases are picked up by simulator accordingly
1 parent 2995c7f commit 598e9b1

74 files changed

Lines changed: 527 additions & 527 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎test/integration/component/test_accounts.py‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def tearDown(self):
164164
raise Exception("Warning: Exception during cleanup : %s" % e)
165165
return
166166

167-
@attr(tags=["advanced", "basic", "eip", "advancedns", "sg", "selfservice"])
167+
@attr(tags=["advanced", "basic", "eip", "advancedns", "sg"], required_hardware="false")
168168
def test_01_create_account(self):
169169
"""Test Create Account and user for that account
170170
"""
@@ -300,7 +300,7 @@ def tearDown(self):
300300
raise Exception("Warning: Exception during cleanup : %s" % e)
301301
return
302302

303-
@attr(tags=["advanced", "basic", "eip", "advancedns", "sg", "selfservice"])
303+
@attr(tags=["advanced", "basic", "eip", "advancedns", "sg"], required_hardware="false")
304304
def test_01_user_remove_VM_running(self):
305305
"""Test Remove one user from the account
306306
"""
@@ -452,7 +452,7 @@ def tearDown(self):
452452
raise Exception("Warning: Exception during cleanup : %s" % e)
453453
return
454454

455-
@attr(tags=["advanced", "basic", "eip", "advancedns", "sg", "selfservice"])
455+
@attr(tags=["advanced", "basic", "eip", "advancedns", "sg"], required_hardware="false")
456456
def test_01_non_root_admin_Privileges(self):
457457
"""Test to verify Non Root admin previleges"""
458458

@@ -574,7 +574,7 @@ def tearDown(self):
574574
raise Exception("Warning: Exception during cleanup : %s" % e)
575575
return
576576

577-
@attr(tags=["advanced", "basic", "eip", "advancedns", "sg", "selfservice"])
577+
@attr(tags=["advanced", "basic", "eip", "advancedns", "sg"], required_hardware="false")
578578
def test_01_service_offering_siblings(self):
579579
"""Test to verify service offerings at same level in hierarchy"""
580580

@@ -692,7 +692,7 @@ def tearDown(self):
692692
raise Exception("Warning: Exception during cleanup : %s" % e)
693693
return
694694

695-
@attr(tags=["advanced", "basic", "eip", "advancedns", "sg", "selfservice"])
695+
@attr(tags=["advanced", "basic", "eip", "advancedns", "sg"], required_hardware="false")
696696
def test_01_service_offering_hierarchy(self):
697697
"""Test to verify service offerings at same level in hierarchy"""
698698

@@ -981,7 +981,7 @@ def tearDown(self):
981981
raise Exception("Warning: Exception during cleanup : %s" % e)
982982
return
983983

984-
@attr(tags=["advanced", "basic", "eip", "advancedns", "sg", "selfservice"])
984+
@attr(tags=["advanced", "basic", "eip", "advancedns", "sg"], required_hardware="false")
985985
def test_01_add_vm_to_subdomain(self):
986986
""" Test Sub domain allowed to launch VM when a Domain level zone is created"""
987987

@@ -1525,7 +1525,7 @@ def tearDown(self):
15251525
raise Exception("Warning: Exception during cleanup : %s" % e)
15261526
return
15271527

1528-
@attr(tags=["domains", "advanced", "advancedns", "simulator", "selfservice"])
1528+
@attr(tags=["domains", "advanced", "advancedns", "simulator"], required_hardware="false")
15291529
def test_forceDeleteDomain(self):
15301530
""" Test delete domain with force option"""
15311531

@@ -1695,7 +1695,7 @@ def test_forceDeleteDomain(self):
16951695
)
16961696
return
16971697

1698-
@attr(tags=["domains", "advanced", "advancedns", "simulator", "selfservice"])
1698+
@attr(tags=["domains", "advanced", "advancedns", "simulator"], required_hardware="false")
16991699
def test_DeleteDomain(self):
17001700
""" Test delete domain without force option"""
17011701

‎test/integration/component/test_affinity_groups.py‎

Lines changed: 40 additions & 40 deletions
Large diffs are not rendered by default.

‎test/integration/component/test_allocation_states.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def tearDown(self):
129129
raise Exception("Warning: Exception during cleanup : %s" % e)
130130
return
131131

132-
@attr(tags=["advanced", "advancedns", "simulator", "selfservice"])
132+
@attr(tags=["advanced", "advancedns", "simulator"], required_hardware="false")
133133
def test_01_zones(self):
134134
"""Check the status of zones"""
135135

@@ -155,7 +155,7 @@ def test_01_zones(self):
155155
)
156156
return
157157

158-
@attr(tags=["advanced", "advancedns", "simulator", "selfservice"])
158+
@attr(tags=["advanced", "advancedns", "simulator"], required_hardware="false")
159159
def test_02_pods(self):
160160
"""Check the status of pods"""
161161

@@ -181,7 +181,7 @@ def test_02_pods(self):
181181
)
182182
return
183183

184-
@attr(tags=["advanced", "advancedns", "simulator", "selfservice"])
184+
@attr(tags=["advanced", "advancedns", "simulator"], required_hardware="false")
185185
def test_03_clusters(self):
186186
"""Check the status of clusters"""
187187

@@ -207,7 +207,7 @@ def test_03_clusters(self):
207207
)
208208
return
209209

210-
@attr(tags=["advanced", "advancedns", "simulator", "selfservice"])
210+
@attr(tags=["advanced", "advancedns", "simulator"], required_hardware="false")
211211
def test_04_hosts(self):
212212
"""Check the status of hosts"""
213213

@@ -234,7 +234,7 @@ def test_04_hosts(self):
234234
)
235235
return
236236

237-
@attr(tags=["advanced", "advancedns", "simulator", "selfservice"])
237+
@attr(tags=["advanced", "advancedns", "simulator"], required_hardware="false")
238238
def test_05_storage_pools(self):
239239
"""Check the status of Storage pools"""
240240

@@ -260,7 +260,7 @@ def test_05_storage_pools(self):
260260
)
261261
return
262262

263-
@attr(tags=["advanced", "advancedns", "simulator", "selfservice"])
263+
@attr(tags=["advanced", "advancedns", "simulator"], required_hardware="false")
264264
def test_06_secondary_storage(self):
265265
"""Check the status of secondary storage"""
266266

‎test/integration/component/test_base_image_updation.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def verify_template_listing(self, template):
293293

294294
return
295295

296-
@attr(tags=["advanced", "basic", "selfservice"])
296+
@attr(tags=["advanced", "basic"], required_hardware="false")
297297
def test_01_deploy_instance_with_is_volatile_offering(self):
298298
""" Test deploy an instance with service offerings with IsVolatile set.
299299
"""
@@ -324,7 +324,7 @@ def test_01_deploy_instance_with_is_volatile_offering(self):
324324
)
325325
return
326326

327-
@attr(tags=["advanced", "basic", "selfservice"])
327+
@attr(tags=["advanced", "basic"], required_hardware="false")
328328
def test_02_reboot_instance_with_is_volatile_offering(self):
329329
""" Test rebooting instances created with isVolatile service offerings
330330
"""
@@ -402,7 +402,7 @@ def test_02_reboot_instance_with_is_volatile_offering(self):
402402

403403
return
404404

405-
@attr(tags=["advanced", "basic", "selfservice"])
405+
@attr(tags=["advanced", "basic"], required_hardware="false")
406406
def test_03_restore_vm_with_new_template(self):
407407
""" Test restoring a vm with different template than the one it was created with
408408
"""
@@ -518,7 +518,7 @@ def test_03_restore_vm_with_new_template(self):
518518
)
519519
return
520520

521-
@attr(tags=["advanced", "basic", "selfservice"])
521+
@attr(tags=["advanced", "basic"], required_hardware="false")
522522
def test_04_reoccuring_snapshot_rules(self):
523523
"""
524524
1) Create a VM using the Service offering IsVolatile enabled

‎test/integration/component/test_blocker_bugs.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def tearDownClass(cls):
165165

166166
return
167167

168-
@attr(tags=["advanced", "advancedns", "basic", "sg", "provisioning"])
168+
@attr(tags=["advanced", "advancedns", "basic", "sg"], required_hardware="true")
169169
def test_01_create_template(self):
170170
"""TS_BUG_002-Test to create and deploy VM using password enabled template
171171
"""
@@ -327,7 +327,7 @@ def tearDownClass(cls):
327327
except Exception as e:
328328
raise Exception("Warning: Exception during cleanup : %s" % e)
329329

330-
@attr(tags=["advanced", "selfservice"])
330+
@attr(tags=["advanced"], required_hardware="false")
331331
def test_01_firewall_rules_port_fw(self):
332332
""""Checking firewall rules deletion after static NAT disable"""
333333

@@ -536,7 +536,7 @@ def tearDown(self):
536536
raise Exception("Warning: Exception during cleanup : %s" % e)
537537
return
538538

539-
@attr(tags=["advanced", "advancedns", "selfservice"])
539+
@attr(tags=["advanced", "advancedns"], required_hardware="false")
540540
def test_01_list_routers_admin(self):
541541
"""TS_BUG_007-Check listRouters() using Admin User
542542
"""
@@ -653,7 +653,7 @@ def tearDown(self):
653653
# No need
654654
return
655655

656-
@attr(tags=["advanced", "advancedns", "eip", "selfservice"])
656+
@attr(tags=["advanced", "advancedns", "eip"], required_hardware="false")
657657
def test_01_restart_network_cleanup(self):
658658
"""TS_BUG_008-Test restart network
659659
"""
@@ -815,7 +815,7 @@ def tearDown(self):
815815
return
816816

817817
@attr(speed = "slow")
818-
@attr(tags=["advanced", "advancedns", "basic", "sg", "eip", "provisioning"])
818+
@attr(tags=["advanced", "advancedns", "basic", "sg", "eip"], required_hardware="true")
819819
def test_01_check_template_size(self):
820820
"""TS_BUG_009-Test the size of template created from root disk
821821
"""
@@ -843,7 +843,7 @@ def test_01_check_template_size(self):
843843
return
844844

845845
@attr(speed = "slow")
846-
@attr(tags=["advanced", "advancedns", "basic", "sg", "eip", "provisioning"])
846+
@attr(tags=["advanced", "advancedns", "basic", "sg", "eip"], required_hardware="true")
847847
def test_02_check_size_snapshotTemplate(self):
848848
"""TS_BUG_010-Test check size of snapshot and template
849849
"""
@@ -907,7 +907,7 @@ def test_02_check_size_snapshotTemplate(self):
907907
return
908908

909909
@attr(speed = "slow")
910-
@attr(tags=["advanced", "advancedns", "basic", "sg", "eip", "provisioning"])
910+
@attr(tags=["advanced", "advancedns", "basic", "sg", "eip"], required_hardware="true")
911911
def test_03_reuse_template_name(self):
912912
"""TS_BUG_011-Test Reusing deleted template name
913913
"""

‎test/integration/component/test_cpu_domain_limits.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def setupAccounts(self):
218218
)
219219
return
220220

221-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
221+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
222222
def test_01_multiple_core_vm_start_stop_instance(self):
223223
"""Test Deploy VM with 4 core CPU & verify the usage"""
224224

@@ -291,7 +291,7 @@ def test_01_multiple_core_vm_start_stop_instance(self):
291291
"Resource count should be same as before, after starting the instance")
292292
return
293293

294-
@attr(tags=["advanced", "advancedns","simulator", "provisioning"])
294+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="true")
295295
def test_02_multiple_core_vm_migrate_instance(self):
296296
"""Test Deploy VM with 4 core CPU & verify the usage"""
297297

@@ -352,7 +352,7 @@ def test_02_multiple_core_vm_migrate_instance(self):
352352
"Resource count should be same as before, after migrating the instance")
353353
return
354354

355-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
355+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
356356
def test_03_multiple_core_vm_delete_instance(self):
357357
"""Test Deploy VM with 4 core CPU & verify the usage"""
358358

@@ -409,7 +409,7 @@ def test_03_multiple_core_vm_delete_instance(self):
409409
"Resource count for %s should be 0" % get_resource_type(resource_id=8))#CPU
410410
return
411411

412-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
412+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
413413
def test_04_deploy_multiple_vm_with_multiple_core(self):
414414
"""Test Deploy multiple VM with 4 core CPU & verify the usage"""
415415

@@ -664,7 +664,7 @@ def setupAccounts(self):
664664
}
665665
return users
666666

667-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
667+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
668668
def test_01_multiple_child_domains(self):
669669
"""Test CPU limits with multiple child domains"""
670670

‎test/integration/component/test_cpu_limits.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def createInstance(self, service_off, networks=None, api_client=None):
177177
except Exception as e:
178178
self.fail("Failed to deploy an instance: %s" % e)
179179

180-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
180+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
181181
def test_01_multiplecore_start_stop_instance(self):
182182
"""Test Deploy VM with multiple core CPU & verify the usage"""
183183

@@ -232,7 +232,7 @@ def test_01_multiplecore_start_stop_instance(self):
232232
"Resource count should be same after stopping the instance")
233233
return
234234

235-
@attr(tags=["advanced", "advancedns","simulator", "provisioning"])
235+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="true")
236236
def test_02_multiplecore_migrate_instance(self):
237237
"""Test Deploy VM with multiple core CPU & verify the usage"""
238238

@@ -273,7 +273,7 @@ def test_02_multiplecore_migrate_instance(self):
273273
"Resource count should be same after migrating the instance")
274274
return
275275

276-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
276+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
277277
def test_03_multiplecore_delete_instance(self):
278278
"""Test Deploy VM with multiple core CPU & verify the usage"""
279279

@@ -309,7 +309,7 @@ def test_03_multiplecore_delete_instance(self):
309309
self.assertEqual(resource_count, 0 , "Resource count for %s should be 0" % get_resource_type(resource_id=8))#CPU
310310
return
311311

312-
@attr(tags=["advanced", "advancedns","simulator", "provisioning"])
312+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="true")
313313
def test_04_deploy_multiple_vm_with_multiple_cpus(self):
314314
"""Test Deploy multiple VM with 4 core CPU & verify the usage"""
315315

@@ -465,7 +465,7 @@ def setupAccounts(self):
465465

466466
return
467467

468-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
468+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
469469
def test_01_stop_start_instance(self):
470470
"""Test Deploy VM with 4 core CPU & verify the usage"""
471471

@@ -537,7 +537,7 @@ def test_01_stop_start_instance(self):
537537
"Resource count should be same after starting the instance")
538538
return
539539

540-
@attr(tags=["advanced", "advancedns","simulator", "provisioning"])
540+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="true")
541541
def test_02_migrate_instance(self):
542542
"""Test Deploy VM with 4 core CPU & verify the usage"""
543543

@@ -597,7 +597,7 @@ def test_02_migrate_instance(self):
597597
"Resource count should be same after starting the instance")
598598
return
599599

600-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
600+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
601601
def test_03_delete_instance(self):
602602
"""Test Deploy VM with 4 core CPU & verify the usage"""
603603

‎test/integration/component/test_cpu_max_limits.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def setupAccounts(self, account_limit=2, domain_limit=2, project_limit=2):
228228

229229
return
230230

231-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
231+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
232232
def test_01_deploy_vm_domain_limit_reached(self):
233233
"""Test Try to deploy VM with admin account where account has not used
234234
the resources but @ domain they are not available"""
@@ -261,7 +261,7 @@ def test_01_deploy_vm_domain_limit_reached(self):
261261
service_off=self.service_offering, api_client=api_client_admin)
262262
return
263263

264-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
264+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
265265
def test_02_deploy_vm_account_limit_reached(self):
266266
"""Test Try to deploy VM with admin account where account has used
267267
the resources but @ domain they are available"""
@@ -302,7 +302,7 @@ def test_02_deploy_vm_account_limit_reached(self):
302302
service_off=self.service_offering, api_client=api_client_admin)
303303
return
304304

305-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
305+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
306306
def test_03_deploy_vm_project_limit_reached(self):
307307
"""Test TTry to deploy VM with admin account where account has not used
308308
the resources but @ project they are not available"""
@@ -337,7 +337,7 @@ def test_03_deploy_vm_project_limit_reached(self):
337337
service_off=self.service_offering, api_client=api_client_admin)
338338
return
339339

340-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
340+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
341341
def test_04_deployVm__account_limit_reached(self):
342342
"""Test Try to deploy VM with admin account where account has used
343343
the resources but @ project they are available"""

‎test/integration/component/test_cpu_project_limits.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def setupProjectAccounts(self):
218218
"Check project name from list response")
219219
return
220220

221-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
221+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
222222
def test_01_project_counts_start_stop_instance(self):
223223

224224
# Validate the following
@@ -273,7 +273,7 @@ def test_01_project_counts_start_stop_instance(self):
273273
"Resource count should be same after starting the instance")
274274
return
275275

276-
@attr(tags=["advanced", "advancedns","simulator", "provisioning"])
276+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="true")
277277
def test_02_project_counts_migrate_instance(self):
278278

279279
# Validate the following
@@ -315,7 +315,7 @@ def test_02_project_counts_migrate_instance(self):
315315
"Resource count should be same after migrating the instance")
316316
return
317317

318-
@attr(tags=["advanced", "advancedns","simulator", "selfservice"])
318+
@attr(tags=["advanced", "advancedns","simulator"], required_hardware="false")
319319
def test_03_project_counts_delete_instance(self):
320320

321321
# Validate the following

0 commit comments

Comments
 (0)