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

Commit

Permalink
Merge pull request #10103 from Gauravtalreja1/test_coverage
Browse files Browse the repository at this point in the history
[1LP][NOTEST][RFR] Add test coverage for Bugzila
  • Loading branch information
digitronik authored May 19, 2020
2 parents 88c4f4b + dfcd910 commit d08af9b
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 51 deletions.
40 changes: 40 additions & 0 deletions cfme/tests/ansible/test_embedded_ansible_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,43 @@ def test_embed_tower_playbook_with_retry_method():
9. Check automation.log to make sure the playbook retried 3 times and then ended OK.
"""
pass


@pytest.mark.tier(3)
@pytest.mark.ignore_stream("5.10")
@pytest.mark.meta(coverage=[1807928])
@pytest.mark.parametrize("username, auth",
[
('username', 'password'),
('username', 'access_token'),
('username', 'ssh-key')
],
ids=['basic', 'access_token', 'ssh_key']
)
def test_embed_tower_exec_play_with_diff_auth(appliance, provider, username, auth):
"""
Bugzilla:
1807928
Polarion:
assignee: gtalreja
casecomponent: Ansible
caseimportance: high
initialEstimate: 1h
tags: ansible_embed
startsin: 5.11
testSteps:
1. Enable Embedded Ansible role.
2. Add private repo (which is bare repo with `git submodule`).
3. Add Credentials as per different `auth_type`.
4. Add Catalog Item and Catalog.
5. Order a Playbook.
expectedResults:
1. Check Embedded Ansible Role is started.
2. Check repo is added.
3. Check Credentials are added
4.
5. Playbook should execute.
"""
pass
109 changes: 58 additions & 51 deletions cfme/tests/candu/test_candu_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@

from cfme import test_requirements

pytestmark = [
pytest.mark.manual,
]


@pytest.mark.manual
@test_requirements.bottleneck
@pytest.mark.tier(2)
def test_bottleneck_datastore():
Expand All @@ -21,7 +24,6 @@ def test_bottleneck_datastore():
pass


@pytest.mark.manual
@test_requirements.bottleneck
@pytest.mark.tier(2)
def test_bottleneck_provider():
Expand All @@ -38,7 +40,6 @@ def test_bottleneck_provider():
pass


@pytest.mark.manual
@test_requirements.bottleneck
@pytest.mark.tier(2)
def test_bottleneck_host():
Expand All @@ -55,7 +56,6 @@ def test_bottleneck_host():
pass


@pytest.mark.manual
@test_requirements.bottleneck
@pytest.mark.tier(2)
def test_bottleneck_cluster():
Expand All @@ -72,7 +72,6 @@ def test_bottleneck_cluster():
pass


@pytest.mark.manual
@test_requirements.bottleneck
@pytest.mark.tier(1)
def test_bottleneck_summary_graph():
Expand All @@ -91,9 +90,8 @@ def test_bottleneck_summary_graph():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(1)
@test_requirements.c_and_u
def test_utilization_utilization_graphs():
"""
Polarion:
Expand All @@ -112,9 +110,8 @@ def test_utilization_utilization_graphs():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(2)
@test_requirements.c_and_u
def test_utilization_provider():
"""
Verify гutilication data from providers
Expand All @@ -129,9 +126,8 @@ def test_utilization_provider():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(2)
@test_requirements.c_and_u
def test_utilization_cluster():
"""
Verify гutilication data from cluster
Expand All @@ -146,9 +142,8 @@ def test_utilization_cluster():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(2)
@test_requirements.c_and_u
def test_utilization_host():
"""
Verify utilication data from host
Expand All @@ -163,9 +158,8 @@ def test_utilization_host():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_crosshair_op_cluster_vsphere65():
"""
Requires:
Expand All @@ -189,9 +183,8 @@ def test_crosshair_op_cluster_vsphere65():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(2)
@test_requirements.c_and_u
def test_crosshair_op_azone_azure():
"""
Utilization Test
Expand All @@ -205,9 +198,8 @@ def test_crosshair_op_azone_azure():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(2)
@test_requirements.c_and_u
def test_crosshair_op_azone_ec2():
"""
test_crosshair_op_azone[ec2]
Expand All @@ -222,9 +214,8 @@ def test_crosshair_op_azone_ec2():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_host_tagged_crosshair_op_vsphere65():
"""
Required C&U enabled application:1. Navigate to host C&U graphs
Expand All @@ -241,9 +232,8 @@ def test_host_tagged_crosshair_op_vsphere65():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_cluster_graph_by_vm_tag_vsphere65():
"""
test_cluster_graph_by_vm_tag[vsphere65]
Expand All @@ -257,9 +247,8 @@ def test_cluster_graph_by_vm_tag_vsphere65():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_cluster_graph_by_host_tag_vsphere65():
"""
test_cluster_graph_by_host_tag[vsphere65]
Expand All @@ -273,9 +262,8 @@ def test_cluster_graph_by_host_tag_vsphere65():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_candu_graphs_vm_compare_host_vsphere65():
"""
test_candu_graphs_vm_compare_host[vsphere65]
Expand All @@ -289,9 +277,8 @@ def test_candu_graphs_vm_compare_host_vsphere65():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_candu_graphs_vm_compare_cluster_vsphere65():
"""
test_candu_graphs_vm_compare_cluster[vsphere65]
Expand All @@ -305,9 +292,8 @@ def test_candu_graphs_vm_compare_cluster_vsphere65():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_crosshair_op_vm_vsphere65():
"""
Requires:
Expand All @@ -329,9 +315,8 @@ def test_crosshair_op_vm_vsphere65():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(2)
@test_requirements.c_and_u
def test_crosshair_op_instance_azure():
"""
Utilization Test
Expand All @@ -345,9 +330,8 @@ def test_crosshair_op_instance_azure():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(2)
@test_requirements.c_and_u
def test_crosshair_op_instance_ec2():
"""
Verify that the following cross-hair operations can be performed on
Expand All @@ -368,9 +352,8 @@ def test_crosshair_op_instance_ec2():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_crosshair_op_datastore_vsphere65():
"""
Requires:
Expand All @@ -392,9 +375,8 @@ def test_crosshair_op_datastore_vsphere65():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_group_by_tag_azone_azure():
"""
Utilization Test
Expand All @@ -408,9 +390,8 @@ def test_group_by_tag_azone_azure():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_azone_group_by_tag_ec2():
"""
test_azone_group_by_tag[ec2]
Expand All @@ -425,9 +406,8 @@ def test_azone_group_by_tag_ec2():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(2)
@test_requirements.c_and_u
def test_candu_graphs_datastore_vsphere6():
"""
test_candu_graphs_datastore[vsphere6]
Expand All @@ -441,9 +421,8 @@ def test_candu_graphs_datastore_vsphere6():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_crosshair_op_host_vsphere65():
"""
Requires:
Expand All @@ -466,9 +445,8 @@ def test_crosshair_op_host_vsphere65():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_candu_collection_tab():
"""
Test case to cover -
Expand All @@ -489,9 +467,8 @@ def test_candu_collection_tab():
pass


@pytest.mark.manual
@test_requirements.c_and_u
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_cluster_tagged_crosshair_op_vsphere65():
"""
Required C&U enabled application:1. Navigate to cluster C&U graphs
Expand All @@ -508,15 +485,15 @@ def test_cluster_tagged_crosshair_op_vsphere65():
pass


@pytest.mark.manual
@pytest.mark.tier(3)
@test_requirements.c_and_u
def test_ec2_instance_memory_metrics():
"""
Bugzilla:
1684525
Polarion:
assignee: mmojzis
assignee: gtalreja
casecomponent: Cloud
initialEstimate: 1h
caseimportance: medium
Expand All @@ -540,3 +517,33 @@ def test_ec2_instance_memory_metrics():
7. Memory metrics should have data.
"""
pass


@pytest.mark.tier(3)
@test_requirements.c_and_u
@pytest.mark.meta(coverage=[1776684])
def test_candu_verify_global_utilization_metrics():
"""
Bugzilla:
1776684
Polarion:
assignee: gtalreja
casecomponent: CandU
initialEstimate: 1h
caseimportance: medium
startsin: 5.10
testSteps:
1. Set up replication with 2 appliances global and remote
2. Enable C&U data on both appliances
3. Add provider on the remote, check data on the provider's dashboard
4. Add same provider on the global, check data on the provider's dashboard
5. Wait for at least 1 day for "Global Utilization" tab for providers
expectedResults:
1.
2.
3.
4.
5. Metrics should be same for Global and Remote regions.
"""
pass

0 comments on commit d08af9b

Please sign in to comment.