Skip to content

Commit 9043e49

Browse files
author
Prasanna Santhanam
committed
migrating tags to attr decorators for nose attrib classification
1 parent bb8016e commit 9043e49

13 files changed

Lines changed: 99 additions & 144 deletions

‎test/integration/component/test_network_offering.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,11 @@ def tearDown(self):
209209
raise Exception("Warning: Exception during cleanup : %s" % e)
210210
return
211211

212+
@attr(tags = ["advanced"])
212213
def test_01_network_off_without_conserve_mode(self):
213214
"""Test Network offering with Conserve mode off and VR - All services
214215
"""
215216

216-
tags = ["advanced"]
217217

218218
# Validate the following
219219
# 1. Create a Network from the above network offering and deploy a VM.
@@ -454,11 +454,11 @@ def test_01_network_off_without_conserve_mode(self):
454454
)
455455
return
456456

457+
@attr(tags = ["advanced"])
457458
def test_02_network_off_with_conserve_mode(self):
458459
"""Test Network offering with Conserve mode ON and VR - All services
459460
"""
460461

461-
tags = ["advanced"]
462462

463463
# Validate the following
464464
# 1. Create a Network from the above network offering and deploy a VM.
@@ -787,11 +787,11 @@ def tearDown(self):
787787
raise Exception("Warning: Exception during cleanup : %s" % e)
788788
return
789789

790+
@attr(tags = ["advancedns"])
790791
def test_01_network_off_without_conserve_mode(self):
791792
"""Test Nw off with Conserve mode off, VR-All services, LB-netscaler
792793
"""
793794

794-
tags = ["advancedns"]
795795

796796
# Validate the following
797797
# 1. Create a Network from the above network offering and deploy a VM.
@@ -1056,11 +1056,11 @@ def test_01_network_off_without_conserve_mode(self):
10561056
)
10571057
return
10581058

1059+
@attr(tags = ["advancedns"])
10591060
def test_02_network_off_with_conserve_mode_netscaler(self):
10601061
"""Test NW off with Conserve mode ON, LB-Netscaler and VR-All services
10611062
"""
10621063

1063-
tags = ["advancedns"]
10641064

10651065
# Validate the following
10661066
# 1. Create a Network from the above network offering and deploy a VM.
@@ -1431,11 +1431,11 @@ def tearDown(self):
14311431
raise Exception("Warning: Exception during cleanup : %s" % e)
14321432
return
14331433

1434+
@attr(tags = ["advancedns"])
14341435
def test_01_nwupgrade_netscaler_conserve_on(self):
14351436
"""Test Nw upgrade to netscaler lb service and conserve mode ON
14361437
"""
14371438

1438-
tags = ["advancedns"]
14391439

14401440
# Validate the following
14411441
# 1. Upgrade a network with VR and conserve mode ON TO
@@ -1630,11 +1630,11 @@ def test_01_nwupgrade_netscaler_conserve_on(self):
16301630
)
16311631
return
16321632

1633+
@attr(tags = ["advancedns"])
16331634
def test_02_nwupgrade_netscaler_conserve_off(self):
16341635
"""Test Nw upgrade to netscaler lb service and conserve mode OFF
16351636
"""
16361637

1637-
tags = ["advancedns"]
16381638

16391639
# Validate the following
16401640
# 1. Upgrade a network with VR and conserve mode ON TO

‎test/integration/component/test_project_configs.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ def tearDown(self):
173173
raise Exception("Warning: Exception during cleanup : %s" % e)
174174
return
175175

176+
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
176177
def test_admin_project_creation(self):
177178
"""Test create project as a domain admin and domain user
178179
"""
179-
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
180180
# Validate the following
181181
# 1. Check if 'allow.user.create.projects' configuration is true
182182
# 2. Create a Project as domain admin
@@ -338,11 +338,11 @@ def tearDown(self):
338338
raise Exception("Warning: Exception during cleanup : %s" % e)
339339
return
340340

341+
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
341342
@unittest.skip("Known bug-able to create project as a domain user")
342343
def test_user_project_creation(self):
343344
"""Test create project as a domain admin and domain user
344345
"""
345-
346346
# Validate the following
347347
# 1. Check if 'allow.user.create.projects' configuration is false
348348
# 2. Create a Project as domain admin. Project creation should be
@@ -479,10 +479,10 @@ def tearDown(self):
479479
raise Exception("Warning: Exception during cleanup : %s" % e)
480480
return
481481

482+
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
482483
def test_add_user_to_project(self):
483484
"""Add user to project when 'project.invite.required' is false"""
484485

485-
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
486486

487487
# Validate the following:
488488
# 1. Create a Project

‎test/integration/component/test_project_limits.py‎

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ def tearDown(self):
155155
raise Exception("Warning: Exception during cleanup : %s" % e)
156156
return
157157

158+
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
158159
def test_01_project_limits(self):
159160
""" Test project limits
160161
"""
161-
162162
# Validate the following
163163
# 1. Create a Project. Verify once projects are created, they inherit
164164
# a default set of resource limits as configured by the Cloud Stack
@@ -302,11 +302,11 @@ def test_01_project_limits(self):
302302
)
303303
return
304304

305+
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
305306
@unittest.skip("No provision for updating resource limits from account through API")
306307
def test_02_project_limits_normal_user(self):
307308
""" Test project limits
308309
"""
309-
310310
# Validate the following
311311
# 1. Create a Project
312312
# 2. Reduce the projects limits as a domain admin. Verify resource
@@ -526,10 +526,10 @@ def tearDown(self):
526526
raise Exception("Warning: Exception during cleanup : %s" % e)
527527
return
528528

529+
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
529530
def test_03_vm_per_project(self):
530531
"""Test VM limit per project
531532
"""
532-
533533
# Validate the following
534534
# 1. Set max VM per project to 2
535535
# 2. Create account and start 2 VMs. Verify VM state is Up and Running
@@ -591,11 +591,7 @@ def test_03_vm_per_project(self):
591591
def test_04_publicip_per_project(self):
592592
"""Test Public IP limit per project
593593
"""
594-
<<<<<<< HEAD
595-
596-
=======
597594
tags = ["advanced", "eip", "advancedns"]
598-
>>>>>>> 6d17e21... This commit has following fixes:
599595
# Validate the following
600596
# 1. set max no of IPs per project to 2.
601597
# 2. Create an account in this domain
@@ -806,13 +802,7 @@ def test_06_volumes_per_project(self):
806802
def test_07_templates_per_project(self):
807803
"""Test Templates limit per project
808804
"""
809-
<<<<<<< HEAD
810-
811-
# Validate the following
812-
=======
813805
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
814-
# Validate the following
815-
>>>>>>> 6d17e21... This commit has following fixes:
816806
# 1. set max no of templates per project to 1.
817807
# 2. Create a template in this project. Both template should be in
818808
# ready state

‎test/integration/component/test_project_resources.py‎

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ def tearDown(self):
206206
raise Exception("Warning: Exception during cleanup : %s" % e)
207207
return
208208

209+
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
209210
def test_01_service_offerings(self):
210211
""" Test service offerings in a project
211212
"""
212-
213213
# Validate the following
214214
# 1. Create a project.
215215
# 2. List service offerings for the project. All SO available in the
@@ -248,6 +248,7 @@ def test_01_service_offerings(self):
248248

249249
return
250250

251+
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
251252
def test_02_project_disk_offerings(self):
252253
""" Test project disk offerings
253254
"""
@@ -380,14 +381,10 @@ def tearDown(self):
380381
raise Exception("Warning: Exception during cleanup : %s" % e)
381382
return
382383

384+
@attr(tags = ["advanced", "advancedns"])
383385
def test_03_network_create(self):
384386
""" Test create network in project
385387
"""
386-
<<<<<<< HEAD
387-
388-
=======
389-
tags = ["advanced", "advancedns"]
390-
>>>>>>> 6d17e21... This commit has following fixes:
391388
# Validate the following
392389
# 1. Create a project.
393390
# 2. Add virtual/direct network resource to the project. User shared
@@ -588,16 +585,10 @@ def tearDown(self):
588585
raise Exception("Warning: Exception during cleanup : %s" % e)
589586
return
590587

588+
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
591589
def test_04_public_template_use_in_project(self):
592590
"""Test Templates creation in projects
593591
"""
594-
<<<<<<< HEAD
595-
596-
# Validate the following
597-
=======
598-
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
599-
# Validate the following
600-
>>>>>>> 6d17e21... This commit has following fixes:
601592
# 1. Create a project
602593
# 2. Verify Public templates can be used without any restriction
603594
# 3. Verify that template created in project can be used in project
@@ -652,16 +643,10 @@ def test_04_public_template_use_in_project(self):
652643
)
653644
return
654645

646+
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
655647
def test_05_use_private_template_in_project(self):
656648
"""Test use of private template in a project
657649
"""
658-
<<<<<<< HEAD
659-
660-
# Validate the following
661-
=======
662-
tags = ["advanced", "basic", "sg", "eip", "advancedns"]
663-
# Validate the following
664-
>>>>>>> 6d17e21... This commit has following fixes:
665650
# 1. Create a project
666651
# 2. Verify that in order to use somebody’s Private template for vm
667652
# creation in the project, permission to use the template has to
@@ -823,10 +808,10 @@ def tearDown(self):
823808
raise Exception("Warning: Exception during cleanup : %s" % e)
824809
return
825810

811+
@attr(tags = ["advanced", "basic", "sg", "eip", "advancedns"])
826812
def test_06_create_snapshots_in_project(self):
827813
"""Test create snapshots in project
828814
"""
829-
830815
# Validate the following
831816
# 1. Create a project
832817
# 2. Add some snapshots to the project
@@ -976,14 +961,10 @@ def tearDown(self):
976961
raise Exception("Warning: Exception during cleanup : %s" % e)
977962
return
978963

964+
@attr(tags = ["advanced", "advancedns"])
979965
def test_07_associate_public_ip(self):
980966
"""Test associate public IP within the project
981967
"""
982-
<<<<<<< HEAD
983-
984-
=======
985-
tags = ["advanced", "eip", "advancedns"]
986-
>>>>>>> 6d17e21... This commit has following fixes:
987968
# Validate the following
988969
# 1. Create a project
989970
# 2. Add some public Ips to the project
@@ -1256,10 +1237,10 @@ def tearDownClass(cls):
12561237

12571238
return
12581239

1240+
@attr(tags = ["sg", "eip"])
12591241
def test_08_security_group(self):
12601242
"""Test security groups in project
12611243
"""
1262-
12631244
# Validate the following:
12641245
# 1. Create a project
12651246
# 2. Assign some security groups to that project

0 commit comments

Comments
 (0)