From 1536538055faf56fc53910a8c7d50539b15678f5 Mon Sep 17 00:00:00 2001 From: Parthvi Vala Date: Tue, 11 Feb 2020 21:25:24 +0530 Subject: [PATCH] [WIPTEST] Automate: test_created_on_time_report_field (#9896) --- .../intelligence/reports/test_reports.py | 36 +++++++++++++++++-- .../reports/test_reports_manual.py | 23 ------------ cfme/tests/test_rest_manual.py | 1 + cfme/tests/webui/test_general_ui.py | 2 +- 4 files changed, 36 insertions(+), 26 deletions(-) diff --git a/cfme/tests/intelligence/reports/test_reports.py b/cfme/tests/intelligence/reports/test_reports.py index a99ddf0ade..41821c5c93 100644 --- a/cfme/tests/intelligence/reports/test_reports.py +++ b/cfme/tests/intelligence/reports/test_reports.py @@ -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 @@ -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 != "" diff --git a/cfme/tests/intelligence/reports/test_reports_manual.py b/cfme/tests/intelligence/reports/test_reports_manual.py index 482cb2e099..702d3407ae 100644 --- a/cfme/tests/intelligence/reports/test_reports_manual.py +++ b/cfme/tests/intelligence/reports/test_reports_manual.py @@ -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) diff --git a/cfme/tests/test_rest_manual.py b/cfme/tests/test_rest_manual.py index 423197888f..fdd953472b 100644 --- a/cfme/tests/test_rest_manual.py +++ b/cfme/tests/test_rest_manual.py @@ -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(): """ diff --git a/cfme/tests/webui/test_general_ui.py b/cfme/tests/webui/test_general_ui.py index 9fea7c2e9e..9bf532b610 100644 --- a/cfme/tests/webui/test_general_ui.py +++ b/cfme/tests/webui/test_general_ui.py @@ -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(): """