def test_cfn_cluster_start_fail(self):
     template_url = setup_configurations()
     args = CreateClusterArgs(template_url, True)
     with self.assertRaises(SystemExit) as sys_ex:
         pcluster.start(args)
     self.assertEqual(sys_ex.exception.code, 1)
     log = test_log_stream.getvalue()
     error_prefix = "CRITICAL:"
     self.assertTrue(error_prefix in log)
예제 #2
0
 def test_cfn_cluster_start_fail(self):
     template_url = setup_configurations()
     args = CreateClusterArgs(template_url, True)
     with self.assertRaises(SystemExit) as sys_ex:
         pcluster.start(args)
     self.assertEqual(sys_ex.exception.code, 1)
     log = test_log_stream.getvalue()
     error_prefix = "CRITICAL:"
     self.assertTrue(error_prefix in log)
 def test_cfn_cluster_start(self):
     template_url = setup_configurations()
     args = CreateClusterArgs(template_url, True)
     pcluster.create(args)
     pcluster.start(args)
     log = test_log_stream.getvalue()
     error_prefix = "CRITICAL:"
     success_message = "Starting compute fleet"
     self.assertFalse(error_prefix in log)
     self.assertTrue(success_message in log)
예제 #4
0
 def test_cfn_cluster_start(self):
     template_url = setup_configurations()
     args = CreateClusterArgs(template_url, True)
     pcluster.create(args)
     pcluster.start(args)
     log = test_log_stream.getvalue()
     error_prefix = "CRITICAL:"
     success_message = "Starting compute fleet"
     self.assertFalse(error_prefix in log)
     self.assertTrue(success_message in log)
예제 #5
0
def start(args):
    pcluster.start(args)
예제 #6
0
파일: cli.py 프로젝트: awslabs/cfncluster
def start(args):
    pcluster.start(args)