Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit dfcd910

Browse files
Add test coverage for Bugzila
1 parent de3323e commit dfcd910

File tree

2 files changed

+98
-51
lines changed

2 files changed

+98
-51
lines changed

cfme/tests/ansible/test_embedded_ansible_manual.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,3 +361,43 @@ def test_embed_tower_playbook_with_retry_method():
361361
9. Check automation.log to make sure the playbook retried 3 times and then ended OK.
362362
"""
363363
pass
364+
365+
366+
@pytest.mark.tier(3)
367+
@pytest.mark.ignore_stream("5.10")
368+
@pytest.mark.meta(coverage=[1807928])
369+
@pytest.mark.parametrize("username, auth",
370+
[
371+
('username', 'password'),
372+
('username', 'access_token'),
373+
('username', 'ssh-key')
374+
],
375+
ids=['basic', 'access_token', 'ssh_key']
376+
)
377+
def test_embed_tower_exec_play_with_diff_auth(appliance, provider, username, auth):
378+
"""
379+
380+
Bugzilla:
381+
1807928
382+
383+
Polarion:
384+
assignee: gtalreja
385+
casecomponent: Ansible
386+
caseimportance: high
387+
initialEstimate: 1h
388+
tags: ansible_embed
389+
startsin: 5.11
390+
testSteps:
391+
1. Enable Embedded Ansible role.
392+
2. Add private repo (which is bare repo with `git submodule`).
393+
3. Add Credentials as per different `auth_type`.
394+
4. Add Catalog Item and Catalog.
395+
5. Order a Playbook.
396+
expectedResults:
397+
1. Check Embedded Ansible Role is started.
398+
2. Check repo is added.
399+
3. Check Credentials are added
400+
4.
401+
5. Playbook should execute.
402+
"""
403+
pass

cfme/tests/candu/test_candu_manual.py

Lines changed: 58 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33

44
from cfme import test_requirements
55

6+
pytestmark = [
7+
pytest.mark.manual,
8+
]
9+
610

7-
@pytest.mark.manual
811
@test_requirements.bottleneck
912
@pytest.mark.tier(2)
1013
def test_bottleneck_datastore():
@@ -21,7 +24,6 @@ def test_bottleneck_datastore():
2124
pass
2225

2326

24-
@pytest.mark.manual
2527
@test_requirements.bottleneck
2628
@pytest.mark.tier(2)
2729
def test_bottleneck_provider():
@@ -38,7 +40,6 @@ def test_bottleneck_provider():
3840
pass
3941

4042

41-
@pytest.mark.manual
4243
@test_requirements.bottleneck
4344
@pytest.mark.tier(2)
4445
def test_bottleneck_host():
@@ -55,7 +56,6 @@ def test_bottleneck_host():
5556
pass
5657

5758

58-
@pytest.mark.manual
5959
@test_requirements.bottleneck
6060
@pytest.mark.tier(2)
6161
def test_bottleneck_cluster():
@@ -72,7 +72,6 @@ def test_bottleneck_cluster():
7272
pass
7373

7474

75-
@pytest.mark.manual
7675
@test_requirements.bottleneck
7776
@pytest.mark.tier(1)
7877
def test_bottleneck_summary_graph():
@@ -91,9 +90,8 @@ def test_bottleneck_summary_graph():
9190
pass
9291

9392

94-
@pytest.mark.manual
95-
@test_requirements.c_and_u
9693
@pytest.mark.tier(1)
94+
@test_requirements.c_and_u
9795
def test_utilization_utilization_graphs():
9896
"""
9997
Polarion:
@@ -112,9 +110,8 @@ def test_utilization_utilization_graphs():
112110
pass
113111

114112

115-
@pytest.mark.manual
116-
@test_requirements.c_and_u
117113
@pytest.mark.tier(2)
114+
@test_requirements.c_and_u
118115
def test_utilization_provider():
119116
"""
120117
Verify гutilication data from providers
@@ -129,9 +126,8 @@ def test_utilization_provider():
129126
pass
130127

131128

132-
@pytest.mark.manual
133-
@test_requirements.c_and_u
134129
@pytest.mark.tier(2)
130+
@test_requirements.c_and_u
135131
def test_utilization_cluster():
136132
"""
137133
Verify гutilication data from cluster
@@ -146,9 +142,8 @@ def test_utilization_cluster():
146142
pass
147143

148144

149-
@pytest.mark.manual
150-
@test_requirements.c_and_u
151145
@pytest.mark.tier(2)
146+
@test_requirements.c_and_u
152147
def test_utilization_host():
153148
"""
154149
Verify utilication data from host
@@ -163,9 +158,8 @@ def test_utilization_host():
163158
pass
164159

165160

166-
@pytest.mark.manual
167-
@test_requirements.c_and_u
168161
@pytest.mark.tier(3)
162+
@test_requirements.c_and_u
169163
def test_crosshair_op_cluster_vsphere65():
170164
"""
171165
Requires:
@@ -189,9 +183,8 @@ def test_crosshair_op_cluster_vsphere65():
189183
pass
190184

191185

192-
@pytest.mark.manual
193-
@test_requirements.c_and_u
194186
@pytest.mark.tier(2)
187+
@test_requirements.c_and_u
195188
def test_crosshair_op_azone_azure():
196189
"""
197190
Utilization Test
@@ -205,9 +198,8 @@ def test_crosshair_op_azone_azure():
205198
pass
206199

207200

208-
@pytest.mark.manual
209-
@test_requirements.c_and_u
210201
@pytest.mark.tier(2)
202+
@test_requirements.c_and_u
211203
def test_crosshair_op_azone_ec2():
212204
"""
213205
test_crosshair_op_azone[ec2]
@@ -222,9 +214,8 @@ def test_crosshair_op_azone_ec2():
222214
pass
223215

224216

225-
@pytest.mark.manual
226-
@test_requirements.c_and_u
227217
@pytest.mark.tier(3)
218+
@test_requirements.c_and_u
228219
def test_host_tagged_crosshair_op_vsphere65():
229220
"""
230221
Required C&U enabled application:1. Navigate to host C&U graphs
@@ -241,9 +232,8 @@ def test_host_tagged_crosshair_op_vsphere65():
241232
pass
242233

243234

244-
@pytest.mark.manual
245-
@test_requirements.c_and_u
246235
@pytest.mark.tier(3)
236+
@test_requirements.c_and_u
247237
def test_cluster_graph_by_vm_tag_vsphere65():
248238
"""
249239
test_cluster_graph_by_vm_tag[vsphere65]
@@ -257,9 +247,8 @@ def test_cluster_graph_by_vm_tag_vsphere65():
257247
pass
258248

259249

260-
@pytest.mark.manual
261-
@test_requirements.c_and_u
262250
@pytest.mark.tier(3)
251+
@test_requirements.c_and_u
263252
def test_cluster_graph_by_host_tag_vsphere65():
264253
"""
265254
test_cluster_graph_by_host_tag[vsphere65]
@@ -273,9 +262,8 @@ def test_cluster_graph_by_host_tag_vsphere65():
273262
pass
274263

275264

276-
@pytest.mark.manual
277-
@test_requirements.c_and_u
278265
@pytest.mark.tier(3)
266+
@test_requirements.c_and_u
279267
def test_candu_graphs_vm_compare_host_vsphere65():
280268
"""
281269
test_candu_graphs_vm_compare_host[vsphere65]
@@ -289,9 +277,8 @@ def test_candu_graphs_vm_compare_host_vsphere65():
289277
pass
290278

291279

292-
@pytest.mark.manual
293-
@test_requirements.c_and_u
294280
@pytest.mark.tier(3)
281+
@test_requirements.c_and_u
295282
def test_candu_graphs_vm_compare_cluster_vsphere65():
296283
"""
297284
test_candu_graphs_vm_compare_cluster[vsphere65]
@@ -305,9 +292,8 @@ def test_candu_graphs_vm_compare_cluster_vsphere65():
305292
pass
306293

307294

308-
@pytest.mark.manual
309-
@test_requirements.c_and_u
310295
@pytest.mark.tier(3)
296+
@test_requirements.c_and_u
311297
def test_crosshair_op_vm_vsphere65():
312298
"""
313299
Requires:
@@ -329,9 +315,8 @@ def test_crosshair_op_vm_vsphere65():
329315
pass
330316

331317

332-
@pytest.mark.manual
333-
@test_requirements.c_and_u
334318
@pytest.mark.tier(2)
319+
@test_requirements.c_and_u
335320
def test_crosshair_op_instance_azure():
336321
"""
337322
Utilization Test
@@ -345,9 +330,8 @@ def test_crosshair_op_instance_azure():
345330
pass
346331

347332

348-
@pytest.mark.manual
349-
@test_requirements.c_and_u
350333
@pytest.mark.tier(2)
334+
@test_requirements.c_and_u
351335
def test_crosshair_op_instance_ec2():
352336
"""
353337
Verify that the following cross-hair operations can be performed on
@@ -368,9 +352,8 @@ def test_crosshair_op_instance_ec2():
368352
pass
369353

370354

371-
@pytest.mark.manual
372-
@test_requirements.c_and_u
373355
@pytest.mark.tier(3)
356+
@test_requirements.c_and_u
374357
def test_crosshair_op_datastore_vsphere65():
375358
"""
376359
Requires:
@@ -392,9 +375,8 @@ def test_crosshair_op_datastore_vsphere65():
392375
pass
393376

394377

395-
@pytest.mark.manual
396-
@test_requirements.c_and_u
397378
@pytest.mark.tier(3)
379+
@test_requirements.c_and_u
398380
def test_group_by_tag_azone_azure():
399381
"""
400382
Utilization Test
@@ -408,9 +390,8 @@ def test_group_by_tag_azone_azure():
408390
pass
409391

410392

411-
@pytest.mark.manual
412-
@test_requirements.c_and_u
413393
@pytest.mark.tier(3)
394+
@test_requirements.c_and_u
414395
def test_azone_group_by_tag_ec2():
415396
"""
416397
test_azone_group_by_tag[ec2]
@@ -425,9 +406,8 @@ def test_azone_group_by_tag_ec2():
425406
pass
426407

427408

428-
@pytest.mark.manual
429-
@test_requirements.c_and_u
430409
@pytest.mark.tier(2)
410+
@test_requirements.c_and_u
431411
def test_candu_graphs_datastore_vsphere6():
432412
"""
433413
test_candu_graphs_datastore[vsphere6]
@@ -441,9 +421,8 @@ def test_candu_graphs_datastore_vsphere6():
441421
pass
442422

443423

444-
@pytest.mark.manual
445-
@test_requirements.c_and_u
446424
@pytest.mark.tier(3)
425+
@test_requirements.c_and_u
447426
def test_crosshair_op_host_vsphere65():
448427
"""
449428
Requires:
@@ -466,9 +445,8 @@ def test_crosshair_op_host_vsphere65():
466445
pass
467446

468447

469-
@pytest.mark.manual
470-
@test_requirements.c_and_u
471448
@pytest.mark.tier(3)
449+
@test_requirements.c_and_u
472450
def test_candu_collection_tab():
473451
"""
474452
Test case to cover -
@@ -489,9 +467,8 @@ def test_candu_collection_tab():
489467
pass
490468

491469

492-
@pytest.mark.manual
493-
@test_requirements.c_and_u
494470
@pytest.mark.tier(3)
471+
@test_requirements.c_and_u
495472
def test_cluster_tagged_crosshair_op_vsphere65():
496473
"""
497474
Required C&U enabled application:1. Navigate to cluster C&U graphs
@@ -508,15 +485,15 @@ def test_cluster_tagged_crosshair_op_vsphere65():
508485
pass
509486

510487

511-
@pytest.mark.manual
488+
@pytest.mark.tier(3)
512489
@test_requirements.c_and_u
513490
def test_ec2_instance_memory_metrics():
514491
"""
515492
Bugzilla:
516493
1684525
517494
518495
Polarion:
519-
assignee: mmojzis
496+
assignee: gtalreja
520497
casecomponent: Cloud
521498
initialEstimate: 1h
522499
caseimportance: medium
@@ -540,3 +517,33 @@ def test_ec2_instance_memory_metrics():
540517
7. Memory metrics should have data.
541518
"""
542519
pass
520+
521+
522+
@pytest.mark.tier(3)
523+
@test_requirements.c_and_u
524+
@pytest.mark.meta(coverage=[1776684])
525+
def test_candu_verify_global_utilization_metrics():
526+
"""
527+
Bugzilla:
528+
1776684
529+
530+
Polarion:
531+
assignee: gtalreja
532+
casecomponent: CandU
533+
initialEstimate: 1h
534+
caseimportance: medium
535+
startsin: 5.10
536+
testSteps:
537+
1. Set up replication with 2 appliances global and remote
538+
2. Enable C&U data on both appliances
539+
3. Add provider on the remote, check data on the provider's dashboard
540+
4. Add same provider on the global, check data on the provider's dashboard
541+
5. Wait for at least 1 day for "Global Utilization" tab for providers
542+
expectedResults:
543+
1.
544+
2.
545+
3.
546+
4.
547+
5. Metrics should be same for Global and Remote regions.
548+
"""
549+
pass

0 commit comments

Comments
 (0)