def test_hawkular_jdr(provider): """Tests Hawkular server's Generate JDR button. Steps: * Chooses Hawkular server. * Clicks on Generate JDR button. * Verifies that JDR report is queued. * Waits until JDR Report is generated. """ server = get_hawkular_server(provider) before_test_date = datetime.utcnow() server.generate_jdr() jdr_rc = JDRReportCollection(parent=server) verify_report_ready(jdr_rc, date_after=before_test_date)
def test_container_server_jdr(provider): """Tests Container based EAP7 server's Generate JDR button. Steps: * Chooses container based server. * Clicks on Generate JDR button. * Verifies that JDR report is queued. * Waits until JDR Report is generated. """ server = get_eap_container_server(provider) verify_server_running(provider, server) before_test_date = datetime.utcnow() server.generate_jdr() jdr_rc = JDRReportCollection(parent=server) verify_report_ready(jdr_rc, date_after=before_test_date)