def test_cfn_cluster_stop_fail(self): template_url = setup_configurations() args = CreateClusterArgs(template_url, True) with self.assertRaises(SystemExit) as sys_ex: pcluster.stop(args) log = test_log_stream.getvalue() error_prefix = "CRITICAL:" self.assertTrue(error_prefix in log)
def test_cfn_cluster_stop_fail(self): template_url = setup_configurations() args = CreateClusterArgs(template_url, True) with self.assertRaises(SystemExit): pcluster.stop(args) log = test_log_stream.getvalue() error_prefix = "CRITICAL:" self.assertTrue(error_prefix in log)
def test_cfn_cluster_stop(self): template_url = setup_configurations() args = CreateClusterArgs(template_url, True) pcluster.create(args) pcluster.start(args) pcluster.stop(args) log = test_log_stream.getvalue() error_prefix = "CRITICAL:" success_message = "Stopping compute fleet" self.assertFalse(error_prefix in log) self.assertTrue(success_message in log)
def test_cfn_cluster_stop(self): template_url = setup_configurations() args = CreateClusterArgs(template_url, True) pcluster.create(args) pcluster.start(args) pcluster.stop(args) log = test_log_stream.getvalue() error_prefix = "CRITICAL:" success_message = "Stopping compute fleet" self.assertFalse(error_prefix in log) self.assertTrue(success_message in log)
def stop(args): pcluster.stop(args)
def stop(args): pcluster.stop(args)