Skip to content

Commit 8d74305

Browse files
author
Prasanna Santhanam
committed
Adding tags that identify deployment configurations against test cases
* advanced - Advanced Zone only * basic - basic zone without SecurityGroups * sg - basic zone with security groups * eip - basic zone with EIP/ELB * advancedns - Advanced Zone with NetScalers
1 parent cddcc09 commit 8d74305

7 files changed

Lines changed: 113 additions & 0 deletions

File tree

‎test/integration/component/test_accounts.py‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ def tearDown(self):
140140
def test_01_create_account(self):
141141
"""Test Create Account and user for that account
142142
"""
143+
144+
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
143145

144146
# Validate the following
145147
# 1. Create an Account. Verify the account is created.
@@ -273,6 +275,8 @@ def tearDown(self):
273275
def test_01_user_remove_VM_running(self):
274276
"""Test Remove one user from the account
275277
"""
278+
279+
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
276280

277281
# Validate the following
278282
# 1. Create an account with 2 users.
@@ -372,6 +376,8 @@ def test_01_user_remove_VM_running(self):
372376
def test_02_remove_all_users(self):
373377
"""Test Remove both users from the account
374378
"""
379+
380+
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
375381

376382
# Validate the following
377383
# 1. Remove both the users from the account.
@@ -528,6 +534,8 @@ def tearDown(self):
528534

529535
def test_01_non_root_admin_Privileges(self):
530536
"""Test to verify Non Root admin previleges"""
537+
538+
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
531539

532540
# Validate the following
533541
# 1. Create few accounts/users in ROOT domain
@@ -645,6 +653,8 @@ def tearDown(self):
645653

646654
def test_01_service_offering_siblings(self):
647655
"""Test to verify service offerings at same level in hierarchy"""
656+
657+
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
648658

649659
# Validate the following
650660
# 1. Verify service offering is visible for domain_1
@@ -758,6 +768,8 @@ def tearDown(self):
758768

759769
def test_01_service_offering_hierarchy(self):
760770
"""Test to verify service offerings at same level in hierarchy"""
771+
772+
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
761773

762774
# Validate the following
763775
# 1. Verify service offering is visible for domain_1
@@ -887,6 +899,8 @@ def tearDown(self):
887899

888900
def test_01_template_hierarchy(self):
889901
"""Test to verify template at same level in hierarchy"""
902+
903+
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
890904

891905
# Validate the following
892906
# 1. Verify template is visible for domain_1
@@ -1046,6 +1060,8 @@ def tearDown(self):
10461060
def test_01_add_vm_to_subdomain(self):
10471061
""" Test Sub domain allowed to launch VM when a Domain level zone is
10481062
created"""
1063+
1064+
tags = ["advanced", "basic", "eip", "advancedns", "sg"]
10491065

10501066
# Validate the following
10511067
# 1. Verify VM created by Account_1 is in Running state

‎test/integration/component/test_blocker_bugs.py‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ def test_01_volume_from_snapshot(self):
185185
"""TS_BUG_001-Test Creating snapshot from volume having spaces in name(KVM)
186186
"""
187187

188+
tags = ["advanced", "advancedns"]
189+
188190
# Validate the following
189191
#1. Create a virtual machine and data volume
190192
#2. Attach data volume to VM
@@ -454,6 +456,8 @@ def tearDownClass(cls):
454456
def test_01_create_template(self):
455457
"""TS_BUG_002-Test to create and deploy VM using password enabled template
456458
"""
459+
460+
tags = ["advanced", "advancedns", "basic", "sg"]
457461

458462
# Validate the following:
459463
#1. Create a password enabled template
@@ -596,6 +600,8 @@ def tearDown(self):
596600

597601
def test_01_firewall_rules_port_fw(self):
598602
""""Checking firewall rules deletion after static NAT disable"""
603+
604+
tags = ["advanced"]
599605

600606
# Validate the following:
601607
#1. Enable static NAT for a VM
@@ -796,6 +802,8 @@ def tearDown(self):
796802
def test_01_list_routers_admin(self):
797803
"""TS_BUG_007-Check listRouters() using Admin User
798804
"""
805+
806+
tags = ["advanced", "advancedns"]
799807

800808
# Validate the following
801809
# 1. PreReq: have rounters that are owned by other account
@@ -905,6 +913,8 @@ def setUp(self):
905913
def test_01_restart_network_cleanup(self):
906914
"""TS_BUG_008-Test restart network
907915
"""
916+
917+
tags = ["advanced", "basic", "sg", "advancedns", "eip"]
908918

909919
# Validate the following
910920
# 1. When cleanup = true, router is destroyed and a new one created
@@ -1064,6 +1074,8 @@ def tearDown(self):
10641074
def test_01_check_template_size(self):
10651075
"""TS_BUG_009-Test the size of template created from root disk
10661076
"""
1077+
1078+
tags = ["advanced", "advancedns", "basic", "sg", "eip"]
10671079

10681080
# Validate the following:
10691081
# 1. Deploy new VM using the template created from Volume
@@ -1089,6 +1101,8 @@ def test_01_check_template_size(self):
10891101
def test_02_check_size_snapshotTemplate(self):
10901102
"""TS_BUG_010-Test check size of snapshot and template
10911103
"""
1104+
1105+
tags = ["advanced", "advancedns", "basic", "sg", "eip"]
10921106

10931107
# Validate the following
10941108
# 1. Deploy VM using default template, small service offering
@@ -1167,6 +1181,8 @@ def test_02_check_size_snapshotTemplate(self):
11671181
def test_03_resuse_template_name(self):
11681182
"""TS_BUG_011-Test Reusing deleted template name
11691183
"""
1184+
1185+
tags = ["advanced", "advancedns", "basic", "sg", "eip"]
11701186

11711187
# Validate the following
11721188
# 1. Deploy VM using default template, small service offering

‎test/integration/component/test_egress_rules.py‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ def tearDownClass(cls):
197197
def test_deployVM_InDefaultSecurityGroup(self):
198198
"""Test deploy VM in default security group with no egress rules
199199
"""
200+
201+
tags = ["sg", "eip"]
200202

201203
# Validate the following:
202204
# 1. Deploy a VM.
@@ -352,6 +354,8 @@ def tearDownClass(cls):
352354
def test_authorizeIngressRule(self):
353355
"""Test authorize ingress rule
354356
"""
357+
358+
tags = ["sg", "eip"]
355359

356360
# Validate the following:
357361
# 1. createaccount of type user
@@ -508,6 +512,8 @@ def tearDownClass(cls):
508512
def test_01_default_group_with_egress(self):
509513
"""Test default group with egress rule before VM deploy and ping, ssh
510514
"""
515+
516+
tags = ["sg", "eip"]
511517

512518
# Validate the following:
513519
# 1. createaccount of type user
@@ -708,6 +714,8 @@ def test_01_default_group_with_egress(self):
708714
""" Test default group with egress rule added after vm deploy and ping,
709715
ssh test
710716
"""
717+
718+
tags = ["sg", "eip"]
711719

712720
# Validate the following:
713721
# 1. createaccount of type user
@@ -888,6 +896,8 @@ def tearDownClass(cls):
888896
def test_revoke_egress_rule(self):
889897
"""Test revoke security group egress rule
890898
"""
899+
900+
tags = ["sg", "eip"]
891901

892902
# Validate the following:
893903
# 1. createaccount of type user
@@ -1148,6 +1158,8 @@ def tearDownClass(cls):
11481158
def test_invalid_account_authroize(self):
11491159
"""Test invalid account authroize
11501160
"""
1161+
1162+
tags = ["sg", "eip"]
11511163

11521164
# Validate the following:
11531165
# 1. createaccount of type user
@@ -1274,6 +1286,8 @@ def tearDownClass(cls):
12741286
def test_multiple_account_egress_rule_negative(self):
12751287
"""Test multiple account egress rules negative case
12761288
"""
1289+
1290+
tags = ["sg", "eip"]
12771291

12781292
# Validate the following:
12791293
# 1. createaccount of type user A
@@ -1520,6 +1534,8 @@ def tearDownClass(cls):
15201534
def test_multiple_account_egress_rule_positive(self):
15211535
"""Test multiple account egress rules positive case
15221536
"""
1537+
1538+
tags = ["sg", "eip"]
15231539

15241540
# Validate the following:
15251541
# 1. createaccount of type user A
@@ -1809,6 +1825,8 @@ def tearDownClass(cls):
18091825
def test_start_stop_vm_egress(self):
18101826
""" Test stop start Vm with egress rules
18111827
"""
1828+
1829+
tags = ["sg", "eip"]
18121830

18131831
# Validate the following:
18141832
# 1. createaccount of type user
@@ -2018,6 +2036,8 @@ def tearDownClass(cls):
20182036
def test_invalid_parameters(self):
20192037
""" Test invalid parameters for egress rules
20202038
"""
2039+
2040+
tags = ["sg", "eip"]
20212041

20222042
# Validate the following:
20232043
# 1. createUserAccount
@@ -2203,6 +2223,8 @@ def tearDownClass(cls):
22032223
def test_egress_after_host_maintainance(self):
22042224
"""Test maintenance case for egress
22052225
"""
2226+
2227+
tags = ["sg", "eip"]
22062228

22072229
# Validate the following:
22082230
# 1. createaccount of type user

‎test/integration/component/test_eip_elb.py‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ def tearDown(self):
183183
def test_01_eip_by_deploying_instance(self):
184184
"""Test EIP by deploying an instance
185185
"""
186+
187+
tags = ["eip"]
186188

187189
# Validate the following
188190
# 1. Instance gets an IP from GUEST IP range.
@@ -348,6 +350,8 @@ def test_01_eip_by_deploying_instance(self):
348350
def test_02_acquire_ip_enable_static_nat(self):
349351
"""Test associate new IP and enable static NAT for new IP and the VM
350352
"""
353+
354+
tags = ["eip"]
351355

352356
# Validate the following
353357
# 1. user_ip_address.is_system = 0 & user_ip_address.one_to_one_nat=1
@@ -490,6 +494,8 @@ def test_02_acquire_ip_enable_static_nat(self):
490494
def test_03_disable_static_nat(self):
491495
"""Test disable static NAT and release EIP acquired
492496
"""
497+
498+
tags = ["eip"]
493499

494500
# Validate the following
495501
# 1. Disable static NAT. Disables one-to-one NAT and releases EIP
@@ -687,6 +693,8 @@ def test_03_disable_static_nat(self):
687693
def test_04_disable_static_nat_system(self):
688694
"""Test disable static NAT with system = True
689695
"""
696+
697+
tags = ["eip"]
690698

691699
# Validate the following
692700
# 1. Try to disassociate/disable static NAT on EIP where is_system=1
@@ -754,6 +762,8 @@ def test_04_disable_static_nat_system(self):
754762
def test_05_destroy_instance(self):
755763
"""Test EIO after destroying instance
756764
"""
765+
766+
tags = ["eip"]
757767

758768
# Validate the following
759769
# 1. Destroy instance. Destroy should result in is_system=0 for EIP
@@ -990,6 +1000,8 @@ def tearDown(self):
9901000
def test_01_elb_create(self):
9911001
"""Test ELB by creating a LB rule
9921002
"""
1003+
1004+
tags = ["eip"]
9931005

9941006
# Validate the following
9951007
# 1. Deploy 2 instances
@@ -1161,6 +1173,8 @@ def test_01_elb_create(self):
11611173
def test_02_elb_acquire_and_create(self):
11621174
"""Test ELB by acquiring IP and then creating a LB rule
11631175
"""
1176+
1177+
tags = ["eip"]
11641178

11651179
# Validate the following
11661180
# 1. Deploy 2 instances
@@ -1307,6 +1321,8 @@ def test_02_elb_acquire_and_create(self):
13071321
def test_03_elb_delete_lb_system(self):
13081322
"""Test delete LB rule generated with public IP with is_system = 1
13091323
"""
1324+
1325+
tags = ["eip"]
13101326

13111327
# Validate the following
13121328
# 1. Deleting LB rule should release EIP where is_system=1
@@ -1409,6 +1425,8 @@ def test_03_elb_delete_lb_system(self):
14091425
def test_04_delete_lb_on_eip(self):
14101426
"""Test delete LB rule generated on EIP
14111427
"""
1428+
1429+
tags = ["eip"]
14121430

14131431
# Validate the following
14141432
# 1. Deleting LB rule won't release EIP where is_system=0

‎test/integration/component/test_high_availability.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ def tearDown(self):
175175
def test_01_host_maintenance_mode(self):
176176
"""Test host maintenance mode
177177
"""
178+
179+
tags = ["advanced", "advancedns"]
178180

179181
# Validate the following
180182
# 1. Create Vms. Acquire IP. Create port forwarding & load balancing
@@ -573,6 +575,8 @@ def test_01_host_maintenance_mode(self):
573575
def test_02_host_maintenance_mode_with_activities(self):
574576
"""Test host maintenance mode with activities
575577
"""
578+
579+
tags = ["advanced", "advancedns"]
576580

577581
# Validate the following
578582
# 1. Create Vms. Acquire IP. Create port forwarding & load balancing

‎test/integration/component/test_network_offering.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ def tearDown(self):
212212
def test_01_network_off_without_conserve_mode(self):
213213
"""Test Network offering with Conserve mode off and VR - All services
214214
"""
215+
216+
tags = ["advanced"]
215217

216218
# Validate the following
217219
# 1. Create a Network from the above network offering and deploy a VM.
@@ -455,6 +457,8 @@ def test_01_network_off_without_conserve_mode(self):
455457
def test_02_network_off_with_conserve_mode(self):
456458
"""Test Network offering with Conserve mode ON and VR - All services
457459
"""
460+
461+
tags = ["advanced"]
458462

459463
# Validate the following
460464
# 1. Create a Network from the above network offering and deploy a VM.
@@ -786,6 +790,8 @@ def tearDown(self):
786790
def test_01_network_off_without_conserve_mode(self):
787791
"""Test Nw off with Conserve mode off, VR-All services, LB-netscaler
788792
"""
793+
794+
tags = ["advancedns"]
789795

790796
# Validate the following
791797
# 1. Create a Network from the above network offering and deploy a VM.
@@ -1054,6 +1060,8 @@ def test_01_network_off_without_conserve_mode(self):
10541060
def test_02_network_off_with_conserve_mode_netscaler(self):
10551061
"""Test NW off with Conserve mode ON, LB-Netscaler and VR-All services
10561062
"""
1063+
1064+
tags = ["advancedns"]
10571065

10581066
# Validate the following
10591067
# 1. Create a Network from the above network offering and deploy a VM.
@@ -1428,6 +1436,8 @@ def tearDown(self):
14281436
def test_01_nwupgrade_netscaler_conserve_on(self):
14291437
"""Test Nw upgrade to netscaler lb service and conserve mode ON
14301438
"""
1439+
1440+
tags = ["advancedns"]
14311441

14321442
# Validate the following
14331443
# 1. Upgrade a network with VR and conserve mode ON TO
@@ -1625,6 +1635,8 @@ def test_01_nwupgrade_netscaler_conserve_on(self):
16251635
def test_02_nwupgrade_netscaler_conserve_off(self):
16261636
"""Test Nw upgrade to netscaler lb service and conserve mode OFF
16271637
"""
1638+
1639+
tags = ["advancedns"]
16281640

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

0 commit comments

Comments
 (0)