def test_terminate_job_flow(self): jf_id = self.make_job_flow(pool_emr_job_flows=True) self.monkey_patch_argv('--quiet', '--no-conf', 'j-MOCKJOBFLOW0') terminate_main() emr_conn = EMRJobRunner(conf_paths=[]).make_emr_conn() self.assertEqual(emr_conn.describe_jobflow(jf_id).state, 'TERMINATED')
def test_terminate_job_flow(self): cluster_id = self.make_cluster(pool_emr_job_flows=True) self.monkey_patch_argv('--quiet', '--no-conf', 'j-MOCKCLUSTER0') terminate_main() emr_conn = EMRJobRunner(conf_paths=[]).make_emr_conn() cluster = emr_conn.describe_cluster(cluster_id) self.assertEqual(cluster.status.state, 'TERMINATED')
def test_terminate_job_flow(self): jf_id = self.make_job_flow(pool_emr_job_flows=True) self.monkey_patch_argv('--quiet', '--no-conf', 'j-MOCKJOBFLOW0') terminate_main() emr_conn = EMRJobRunner(conf_paths=[]).make_emr_conn() self.assertEqual(emr_conn.describe_jobflow(jf_id).state, 'TERMINATED')
def test_terminate_job_flow(self): cluster_id = self.make_cluster(pool_emr_job_flows=True) self.monkey_patch_argv('--quiet', '--no-conf', 'j-MOCKCLUSTER0') terminate_main() emr_conn = EMRJobRunner(conf_paths=[]).make_emr_conn() cluster = patched_describe_cluster(emr_conn, cluster_id) self.assertEqual(cluster.status.state, 'TERMINATED')