Пример #1
0
 def test_elb_monitoring_tab_view(self):
     elb_conn, elb = self.make_elb()
     request = self.create_request()
     view = ELBMonitoringView(request, elb=elb).elb_monitoring()
     options_json = json.loads(view.get('controller_options_json'))
     chart_item = {"metric": "RequestCount", "unit": "Count", "statistic": "Sum"}
     self.assertEqual(view.get('elb_name'), 'test_elb')
     self.assert_(chart_item in options_json.get('charts_list'))
Пример #2
0
 def test_elb_monitoring_tab_view(self):
     elb_conn, elb = self.make_elb()
     request = self.create_request()
     view = ELBMonitoringView(request, elb=elb).elb_monitoring()
     options_json = json.loads(view.get('controller_options_json'))
     chart_help = _(
         'The total number of completed requests that were received and routed to the registered instances. '
         'Defaults to the sum statistic for the best output results.')
     chart_item = {
         "metric": "RequestCount", "unit": "Count", "statistic": "Sum", "empty_msg": ELB_EMPTY_DATA_MESSAGE,
         "help": chart_help
     }
     self.assertEqual(view.get('elb_name'), 'test_elb')
     self.assert_(chart_item in options_json.get('charts_list'))
Пример #3
0
 def test_elb_monitoring_tab_view(self):
     elb_conn, elb = self.make_elb()
     request = self.create_request()
     view = ELBMonitoringView(request, elb=elb).elb_monitoring()
     options_json = json.loads(view.get('controller_options_json'))
     chart_help = _(
         'The total number of completed requests that were received and routed to the registered instances. '
         'Defaults to the sum statistic for the best output results.')
     chart_item = {
         "metric": "RequestCount", "unit": "Count", "statistic": "Sum", "empty_msg": ELB_EMPTY_DATA_MESSAGE,
         "help": chart_help
     }
     self.assertEqual(view.get('elb_name'), 'test_elb')
     self.assert_(chart_item in options_json.get('charts_list'))