def __init__(self, username, password, confluence_username, confluence_password, parent_page, build_rpm_ci_name, build_testing_ci_name, IS_COVERAGE_NEEDED): self.username = username self.password = password self.confluence_username = confluence_username self.confluence_password = confluence_password self.build_rpm_ci_name = build_rpm_ci_name self.build_testing_ci_name = build_testing_ci_name self.build_rpm_ci = CI3_JENKINS.TalkToRCCI(self.username, self.password, self.build_rpm_ci_name) self.build_rpm_ci_jenkins = self.build_rpm_ci.server self.build_testing_ci = CI3_JENKINS.TalkToRCCI(self.username, self.password, self.build_testing_ci_name) self.build_testing_ci_jenkins = self.build_rpm_ci.server self.build_testing_parameter = {} self.parent_page = parent_page self.IS_COVERAGE_NEEDED = IS_COVERAGE_NEEDED self.et_jenkins_url = "https://errata-jenkins.rhev-ci-vms.eng.rdu2.redhat.com"
def __init__(self, username, password, confluence_username, confluence_password, build_name, expected_rc_version): self.build_name = build_name self.ci_jenkins = talk_to_rc_jenkins.TalkToRCCI( username, password, build_name) self.ci_jenkins.get_test_report_for_build() self.test_report = self.ci_jenkins.test_report self.current_rc_version = self.ci_jenkins.current_rc_version self.expected_rc_version = "ET RC Version: " + expected_rc_version self.test_table_html = "" self.head_row_html = "" self.test_enviroment_html = "" self.test_report_row_html = "" self.test_type = "" self.perf_env = ''' <p>ET Server: errata-stage-perf.host.stage.eng.bos.redhat.com</p> <p>ET DB: errata-stage-perf-db.host.stage.eng.bos.redhat.com</p> ''' self.robotframework_uat_env = 'ET Server: errata-web-01.host.qe.eng.pek2.redhat.com' self.e2e_env = ''' <p>ET Server: et-e2e.usersys.redhat.com</p> <p>Pub Server: pub-e2e.usersys.redhat.com</p> <p>pulp Rpm Server: pulp-e2e.usersys.redhat.com</p> <p>pulp Docker Server: pulp-docker-e2e.usersys.redhat.com</p> <p>Pub and Pulp Versions:</p> ''' self.bug_regression_env = 'ET Server: errata-web-03.host.qe.eng.pek2.redhat.com' self.ts2_uat_env = 'ET server: et-system-test-qe-02.usersys.redhat.com' self.env_options = "" self.get_pub_pulp_content = get_all_pub_pulp_product_version_content.GetAllPubPulpVersionContent( confluence_username, confluence_password)
def __init__(self, username, password, expected_rc_version, tolerance, max_accepted_time, perf_jmeter_slave_server): self.build_name = "Trigger_Perf_Testing_Remotely" self.ci_jenkins = talk_to_rc_jenkins.TalkToRCCI( username, password, self.build_name) self.ci_jenkins.get_test_report_for_build() self.test_report = self.ci_jenkins.test_report self.testing_type = self.test_report[0] self.testing_result = self.test_report[1] self.testing_result_url = self.test_report[2] self.current_rc_version = self.ci_jenkins.current_rc_version self.expected_rc_version = "ET RC Version: " + expected_rc_version self.get_last_successful_build_number = 0 self.cu = common_usage.CommonUsage() self.perf_jmeter_slave_server = perf_jmeter_slave_server self.cwd = os.getcwd() self.perf_remote_base_path = "/data/jenkins_workspace/workspace/ET_Baseline_PDI/perf-output/builds/" self.local_destination_new_report_path = "" self.local_destination_old_report_path = "" self.worsen_transactions = {} self.tolerance = tolerance self.max_accepted_time = max_accepted_time