Beispiel #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_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'))
Beispiel #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'))
 def test_scaling_group_form_vpc_network_choices_with_vpc_disabled_on_eucalyptus(self):
     self.assertTrue(('None', _(u'No VPC')) in self.form.vpc_network.choices)
Beispiel #4
0
 def test_public_ip_auto_assignment_field(self):
     expected_choices = (
         ('true', _('Enabled')),
         ('false', _('Disabled')),
     )
     self.assertEqual(self.form.public_ip_auto_assignment.choices, expected_choices)
 def test_instances_filters_form_vpc_id_choices_on_aws(self):
     self.assertTrue(('None', _(u'No VPC')) in self.form.vpc_id.choices)
 def test_launch_instance_form_vpc_network_choices_with_vpc_disabled_on_eucalyptus(self):
     self.assertTrue(('None', _(u'No VPC')) in self.form.vpc_network.choices)
 def test_instances_filters_form_vpc_id_choices_on_aws(self):
     self.assertTrue(('None', _(u'No VPC')) in self.form.vpc_id.choices)
 def test_launch_instance_form_vpc_network_choices_with_vpc_disabled_on_eucalyptus(
         self):
     self.assertTrue(('None',
                      _(u'No VPC')) in self.form.vpc_network.choices)
 def test_security_group_form_vpc_network_choices_with_vpc_disabled_on_eucalyptus(self):
     self.assertTrue(('None', _(u'No VPC')) in self.form.securitygroup_vpc_network.choices)
Beispiel #10
0
 def test_security_group_form_vpc_network_choices_with_vpc_enabled_on_eucalyptus(self):
     self.assertFalse(('None', _(u'No VPC')) in self.form.securitygroup_vpc_network.choices)
 def test_scaling_group_form_vpc_network_choices_with_vpc_enabled_on_eucalyptus(
         self):
     self.assertFalse(('None',
                       _(u'No VPC')) in self.form.vpc_network.choices)