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

Commit

Permalink
[WIPTEST] Automate: test_created_on_time_report_field (#9896)
Browse files Browse the repository at this point in the history
  • Loading branch information
valaparthvi authored Feb 11, 2020
1 parent 51b5a4b commit 1536538
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 26 deletions.
36 changes: 34 additions & 2 deletions cfme/tests/intelligence/reports/test_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from cfme.rest.gen_data import users as _users
from cfme.rest.gen_data import vm as _vm
from cfme.utils.appliance.implementations.ui import navigate_to
from cfme.utils.blockers import BZ
from cfme.utils.conf import cfme_data
from cfme.utils.ftp import FTPClientWrapper
from cfme.utils.ftp import FTPException
Expand Down Expand Up @@ -770,7 +771,38 @@ def test_reports_generate_custom_conditional_filter_report(
1. Report must be generated successfully.
"""
service, vm = edit_service_name
report = get_report("vm_service_report", "VM Service")
saved_report = report.queue(wait_for_finish=True)
saved_report = get_report("vm_service_report", "VM Service").queue(wait_for_finish=True)
view = navigate_to(saved_report, "Details")
assert view.table.row(name__contains=vm.name)["Service Name"].text == service.name


@pytest.mark.tier(2)
@pytest.mark.meta(
automates=[1743579], blockers=[BZ(1743579, forced_streams=["5.11", "5.10"])]
)
@pytest.mark.provider([InfraProvider], selector=ONE_PER_CATEGORY)
@pytest.mark.parametrize("create_vm", ["small_template"], indirect=True, ids=[""])
def test_created_on_time_report_field(create_vm, get_report):
"""
Bugzilla:
1743579
Polarion:
assignee: pvala
casecomponent: Reporting
caseimportance: medium
initialEstimate: 1/2h
setup:
1. Add a provider and provision a VM
testSteps:
1. Create a report based on 'VMs and Instances' with [Created on Time, Name] field.
expectedResults:
1. `Created on Time` field column must not be empty for the recently created VM.
"""
report = get_report("vm_created_on_time_report.yaml", "VM Created on Time").queue(
wait_for_finish=True
)
view = navigate_to(report, "Details")
row = view.table.row(name=create_vm.name)
# TODO BZ(1743579): assert with VM's created_on_time once the BZ is fixed.
assert row.created_on_time.text != ""
23 changes: 0 additions & 23 deletions cfme/tests/intelligence/reports/test_reports_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,29 +65,6 @@ def test_reports_in_global_region(context, report):
pass


@test_requirements.report
@pytest.mark.tier(2)
@pytest.mark.meta(coverage=[1743579])
def test_created_on_time_report_field():
"""
Bugzilla:
1743579
Polarion:
assignee: pvala
casecomponent: Reporting
caseimportance: medium
initialEstimate: 1/2h
setup:
1. Add a provider and provision a VM
testSteps:
1. Create a report based on 'VMs and Instances' with [Created on Time, Name] field.
expectedResults:
1. `Created on Time` field column must not be empty for the recently created VM.
"""
pass


@pytest.mark.ignore_stream("5.10")
@test_requirements.report
@pytest.mark.tier(2)
Expand Down
1 change: 1 addition & 0 deletions cfme/tests/test_rest_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@test_requirements.rest
@pytest.mark.customer_scenario
@pytest.mark.tier(1)
@pytest.mark.manual("manualonly")
@pytest.mark.meta(coverage=[1700378])
def test_notification_url_parallel_requests():
"""
Expand Down
2 changes: 1 addition & 1 deletion cfme/tests/webui/test_general_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def test_compare_vm_from_datastore_relationships(appliance, setup_provider, prov
assert compare_view.is_displayed


@pytest.mark.manual
@pytest.mark.manual("manualonly")
@pytest.mark.tier(1)
def test_ui_pinning_after_relog():
"""
Expand Down

0 comments on commit 1536538

Please sign in to comment.