Skip to content

Commit a725fdc

Browse files
author
Prasanna Santhanam
committed
Adding the tags for different configurations in to testcase
1 parent 8d74305 commit a725fdc

5 files changed

Lines changed: 39 additions & 12 deletions

File tree

test/integration/component/test_resource_limits.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def tearDown(self):
153153
def test_01_vm_per_account(self):
154154
"""Test VM limit per account
155155
"""
156+
tags = ["advanced","advancedns"]
156157

157158
# Validate the following
158159
# 1. Set user_vm=1 limit for account 1.
@@ -245,6 +246,7 @@ def test_01_vm_per_account(self):
245246
def test_02_publicip_per_account(self):
246247
"""Test Public IP limit per account
247248
"""
249+
tags = ["advanced","advancedns"]
248250

249251
# Validate the following
250252
# 1. Set Public_IP= 2 limit for account 1.
@@ -387,6 +389,7 @@ def test_02_publicip_per_account(self):
387389
def test_03_snapshots_per_account(self):
388390
"""Test Snapshot limit per account
389391
"""
392+
tags = ["advanced","advancedns"]
390393

391394
# Validate the following
392395
# 1. Set snapshot= 2 limit for account 1.
@@ -542,6 +545,7 @@ def test_03_snapshots_per_account(self):
542545
def test_04_volumes_per_account(self):
543546
"""Test Volumes limit per account
544547
"""
548+
tags = ["advanced","advancedns"]
545549

546550
# Validate the following
547551
# 1. Set volumes=2 limit for account 1.
@@ -683,6 +687,7 @@ def test_04_volumes_per_account(self):
683687
def test_05_templates_per_account(self):
684688
"""Test Templates limit per account
685689
"""
690+
tags = ["advanced","advancedns"]
686691

687692
# Validate the following
688693
# 1. Set templates=1 limit for account 1.
@@ -912,6 +917,7 @@ def tearDown(self):
912917
def test_01_vm_per_domain(self):
913918
"""Test VM limit per domain
914919
"""
920+
tags = ["advanced","advancedns"]
915921

916922
# Validate the following
917923
# 1. Set max VM per domain to 2
@@ -977,6 +983,7 @@ def test_01_vm_per_domain(self):
977983
def test_01_publicip_per_domain(self):
978984
"""Test Public IP limit per domain
979985
"""
986+
tags = ["advanced","advancedns"]
980987

981988
# Validate the following
982989
# 1. set max no of IPs per domain to 2.
@@ -1046,6 +1053,7 @@ def test_01_publicip_per_domain(self):
10461053
def test_03_snapshots_per_domain(self):
10471054
"""Test Snapshot limit per domain
10481055
"""
1056+
tags = ["advanced","advancedns"]
10491057

10501058
# Validate the following
10511059
# 1. set max no of snapshots per domain to 1.
@@ -1128,6 +1136,7 @@ def test_03_snapshots_per_domain(self):
11281136
def test_04_volumes_per_domain(self):
11291137
"""Test Volumes limit per domain
11301138
"""
1139+
tags = ["advanced","advancedns"]
11311140

11321141
# Validate the following
11331142
# 1. set max no of volume per domain to 1.
@@ -1180,6 +1189,7 @@ def test_04_volumes_per_domain(self):
11801189
def test_05_templates_per_domain(self):
11811190
"""Test Templates limit per domain
11821191
"""
1192+
tags = ["advanced","advancedns"]
11831193

11841194
# Validate the following
11851195
# 1. set max no of templates per domain to 2.
@@ -1325,6 +1335,7 @@ def tearDown(self):
13251335

13261336
def test_01_zones(self):
13271337
"""Check the status of zones"""
1338+
tags = ["advanced","advancedns"]
13281339

13291340
# Validate the following
13301341
# 1. List zones
@@ -1350,6 +1361,7 @@ def test_01_zones(self):
13501361

13511362
def test_02_pods(self):
13521363
"""Check the status of pods"""
1364+
tags = ["advanced","advancedns"]
13531365

13541366
# Validate the following
13551367
# 1. List pods
@@ -1375,6 +1387,7 @@ def test_02_pods(self):
13751387

13761388
def test_03_clusters(self):
13771389
"""Check the status of clusters"""
1390+
tags = ["advanced","advancedns"]
13781391

13791392
# Validate the following
13801393
# 1. List clusters
@@ -1400,6 +1413,7 @@ def test_03_clusters(self):
14001413

14011414
def test_04_hosts(self):
14021415
"""Check the status of hosts"""
1416+
tags = ["advanced","advancedns"]
14031417

14041418
# Validate the following
14051419
# 1. List hosts with type=Routing
@@ -1426,6 +1440,7 @@ def test_04_hosts(self):
14261440

14271441
def test_05_storage_pools(self):
14281442
"""Check the status of Storage pools"""
1443+
tags = ["advanced","advancedns"]
14291444

14301445
# Validate the following
14311446
# 1. List storage pools for the zone
@@ -1451,6 +1466,7 @@ def test_05_storage_pools(self):
14511466

14521467
def test_06_secondary_storage(self):
14531468
"""Check the status of secondary storage"""
1469+
tags = ["advanced","advancedns"]
14541470

14551471
# Validate the following
14561472
# 1. List secondary storage

test/integration/component/test_routers.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def setUp(self):
170170
def test_01_AdvancedZoneRouterServices(self):
171171
"""Test advanced zone router services
172172
"""
173-
173+
tags = ["advanced"]
174174
# Validate the following:
175175
# 1. Verify that list of services provided by this network are running
176176
# a. DNS
@@ -316,7 +316,7 @@ def test_01_AdvancedZoneRouterServices(self):
316316
def test_02_NetworkGarbageCollection(self):
317317
"""Test network garbage collection
318318
"""
319-
319+
tags = ["advanced"]
320320
# Validate the following
321321
# 1. wait for router to start and guest network to be created
322322
# a.listRouters account=user, domainid=1 (router state=Running)
@@ -474,6 +474,7 @@ def test_02_NetworkGarbageCollection(self):
474474
def test_03_RouterStartOnVmDeploy(self):
475475
"""Test router start on VM deploy
476476
"""
477+
tags = ["advanced"]
477478
# Validate the following
478479
# 1. deployVirtualMachine in the account
479480
# 2. listVirtualMachines account=user, domainid=1
@@ -649,7 +650,7 @@ def setUp(self):
649650
def test_01_RouterStopCreatePF(self):
650651
"""Test router stop create port forwarding
651652
"""
652-
653+
tags = ["advanced"]
653654
# validate the following
654655
# 1. wait for router to start, guest network to be implemented and
655656
# VM to report Running
@@ -858,7 +859,7 @@ def setUp(self):
858859
def test_01_RouterStopCreateLB(self):
859860
"""Test router stop create Load balancing
860861
"""
861-
862+
tags = ["advanced"]
862863
# validate the following
863864
# 1. listLoadBalancerRules (publicipid=ipaddressid of source NAT)
864865
# 2. rule should be for port 2222 as applied and
@@ -1068,7 +1069,7 @@ def setUp(self):
10681069
def test_01_RouterStopCreateFW(self):
10691070
"""Test router stop create Firewall rule
10701071
"""
1071-
1072+
tags = ["advanced"]
10721073
# validate the following
10731074
# 1. 1. listFirewallRules (filter by ipaddressid of sourcenat)
10741075
# 2. rule should be for ports 1-600 and in state=Active

test/integration/component/test_snapshots.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def tearDown(self):
165165
def test_01_createVM_snapshotTemplate(self):
166166
"""Test create VM, Snapshot and Template
167167
"""
168-
168+
tags = ["advanced","advancedns"]
169169
# Validate the following
170170
# 1. Deploy VM using default template, small service offering
171171
# and small data disk offering.
@@ -473,7 +473,7 @@ def tearDown(self):
473473
def test_02_accountSnapshotClean(self):
474474
"""Test snapshot cleanup after account deletion
475475
"""
476-
476+
tags = ["advanced","advancedns"]
477477
# Validate the following
478478
# 1. listAccounts API should list out the newly created account
479479
# 2. listVirtualMachines() command should return the deployed VM.
@@ -804,7 +804,7 @@ def tearDown(self):
804804
def test_03_snapshot_detachedDisk(self):
805805
"""Test snapshot from detached disk
806806
"""
807-
807+
tags = ["advanced","advancedns"]
808808
# Validate the following
809809
# 1. login in VM and write some data on data disk(use fdisk to
810810
# partition datadisk,fdisk /dev/sdb, and make filesystem using
@@ -1076,7 +1076,7 @@ def tearDown(self):
10761076
def test_04_snapshot_limit(self):
10771077
"""Test snapshot limit in snapshot policies
10781078
"""
1079-
1079+
tags = ["advanced","advancedns"]
10801080
# Validate the following
10811081
# 1. Perform hourly recurring snapshot on the root disk of VM and keep
10821082
# the maxsnapshots as 1
@@ -1328,7 +1328,7 @@ def tearDown(self):
13281328
def test_05_snapshot_events(self):
13291329
"""Test snapshot events
13301330
"""
1331-
1331+
tags = ["advanced","advancedns"]
13321332
# Validate the following
13331333
# 1. Perform snapshot on the root disk of this VM and check the events/alerts.
13341334
# 2. delete the snapshots and check the events/alerts

test/integration/component/test_templates.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def tearDownClass(cls):
162162
def test_01_create_template(self):
163163
"""Test create public & private template
164164
"""
165-
165+
tags = ["advanced","advancedns"]
166166
# Validate the following:
167167
# 1. Upload a templates in raw img format. Create a Vm instances from
168168
# raw img template.
@@ -378,6 +378,7 @@ def tearDown(self):
378378
def test_01_create_template_volume(self):
379379
"""Test Create template from volume
380380
"""
381+
tags = ["advanced","advancedns"]
381382

382383
# Validate the following:
383384
# 1. Deploy new VM using the template created from Volume
@@ -416,6 +417,7 @@ def test_01_create_template_volume(self):
416417

417418
def test_02_copy_template(self):
418419
"""Test for copy template from one zone to another"""
420+
tags = ["advanced","advancedns"]
419421

420422
# Validate the following
421423
# 1. copy template should be successful and
@@ -474,6 +476,7 @@ def test_02_copy_template(self):
474476
def test_03_delete_template(self):
475477
"""Test Delete template
476478
"""
479+
tags = ["advanced","advancedns"]
477480

478481
# Validate the following:
479482
# 1. Create a template and verify it is shown in list templates response
@@ -528,6 +531,7 @@ def test_03_delete_template(self):
528531
def test_04_template_from_snapshot(self):
529532
"""Create Template from snapshot
530533
"""
534+
tags = ["advanced","advancedns"]
531535

532536
# Validate the following
533537
# 2. Snapshot the Root disk

test/integration/component/test_volumes.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def setUp(self):
143143
def test_01_volume_attach(self):
144144
"""Test Attach volumes (max capacity)
145145
"""
146-
146+
tags = ["advanced","advancedns"]
147147
# Validate the following
148148
# 1. Deploy a vm and create 5 data disk
149149
# 2. Attach all the created Volume to the vm.
@@ -295,6 +295,7 @@ def test_01_volume_attach(self):
295295
def test_02_volume_attach_max(self):
296296
"""Test attach volumes (more than max) to an instance
297297
"""
298+
tags = ["advanced","advancedns"]
298299

299300
# Validate the following
300301
# 1. Attach one more data volume to VM (Already 5 attached)
@@ -425,6 +426,7 @@ def tearDownClass(cls):
425426
def test_01_volume_attach_detach(self):
426427
"""Test Volume attach/detach to VM (5 data volumes)
427428
"""
429+
tags = ["advanced","advancedns"]
428430

429431
# Validate the following
430432
# 1. Deploy a vm and create 5 data disk
@@ -672,6 +674,7 @@ def tearDown(self):
672674
def test_01_volume_iso_attach(self):
673675
"""Test Volumes and ISO attach
674676
"""
677+
tags = ["advanced","advancedns"]
675678

676679
# Validate the following
677680
# 1. Create and attach 5 data volumes to VM
@@ -867,6 +870,7 @@ def tearDown(self):
867870
def test_01_attach_volume(self):
868871
"""Attach a created Volume to a Running VM
869872
"""
873+
tags = ["advanced","advancedns"]
870874
# Validate the following
871875
# 1. Create a data volume.
872876
# 2. List Volumes should not have vmname and virtualmachineid fields in
@@ -950,6 +954,7 @@ def test_01_attach_volume(self):
950954
def test_02_detach_volume(self):
951955
"""Detach a Volume attached to a VM
952956
"""
957+
tags = ["advanced","advancedns"]
953958

954959
# Validate the following
955960
# 1. Data disk should be detached from instance
@@ -997,6 +1002,7 @@ def test_02_detach_volume(self):
9971002
def test_03_delete_detached_volume(self):
9981003
"""Delete a Volume unattached to an VM
9991004
"""
1005+
tags = ["advanced","advancedns"]
10001006
# Validate the following
10011007
# 1. volume should be deleted successfully and listVolume should not
10021008
# contain the deleted volume details.

0 commit comments

Comments
 (0)