def test_instance_monitoring_tab_title_on_aws(self):
     session = {'cloud_type': 'aws'}
     request = self.create_request(session=session)
     instance = self.make_instance()
     view = InstanceMonitoringView(request, instance=instance).instance_monitoring()
     monitoring_tab_title = view.get('monitoring_tab_title')
     self.assertEqual(monitoring_tab_title, u'Detailed Monitoring')
 def test_instance_monitoring_tab_title_on_aws(self):
     session = {'cloud_type': 'aws'}
     request = self.create_request(session=session)
     instance = self.make_instance()
     view = InstanceMonitoringView(request, instance=instance).instance_monitoring()
     monitoring_tab_title = view.get('monitoring_tab_title')
     self.assertEqual(monitoring_tab_title, u'Detailed Monitoring')
 def test_instance_monitoring_view_duration_choices(self):
     request = testing.DummyRequest()
     instance = self.make_instance()
     view = InstanceMonitoringView(request, instance=instance).instance_monitoring()
     duration_choices = dict(view.get('duration_choices'))
     for choice in [3600, 10800, 21600, 43200, 86400, 259200, 604800, 1209600]:
         assert choice in duration_choices
 def test_instance_monitoring_view_duration_choices(self):
     request = testing.DummyRequest()
     instance = self.make_instance()
     view = InstanceMonitoringView(request, instance=instance).instance_monitoring()
     duration_choices = dict(view.get('duration_choices'))
     for choice in [3600, 10800, 21600, 43200, 86400, 259200, 604800, 1209600]:
         assert choice in duration_choices
 def test_instance_monitoring_tab_title_on_aws(self):
     request = self.create_request()
     self.setup_session(request)
     instance = self.make_instance()
     request.matchdict['id'] = instance.id
     view = InstanceMonitoringView(request).instance_monitoring()
     monitoring_tab_title = view.get('monitoring_tab_title')
     self.assertEqual(monitoring_tab_title, u'Basic Monitoring')
Exemple #6
0
 def test_instance_monitoring_tab_title_on_aws(self):
     request = self.create_request()
     self.setup_session(request)
     instance = self.make_instance()
     request.matchdict['id'] = instance.id
     view = InstanceMonitoringView(request).instance_monitoring()
     monitoring_tab_title = view.get('monitoring_tab_title')
     self.assertEqual(monitoring_tab_title, u'Basic Monitoring')
Exemple #7
0
 def test_instance_monitoring_view_duration_choices(self):
     request = testing.DummyRequest()
     self.setup_session(request)
     instance = self.make_instance()
     request.matchdict['id'] = instance.id
     request.is_xhr = True
     view = InstanceMonitoringView(request).instance_monitoring()
     duration_choices = dict(view.get('duration_choices'))
     for choice in [3600, 10800, 21600, 43200, 86400, 259200, 604800, 1209600]:
         assert choice in duration_choices
 def test_instance_monitoring_view_duration_choices(self):
     request = testing.DummyRequest()
     self.setup_session(request)
     instance = self.make_instance()
     request.matchdict['id'] = instance.id
     request.is_xhr = True
     view = InstanceMonitoringView(request).instance_monitoring()
     duration_choices = dict(view.get('duration_choices'))
     for choice in [
             3600, 10800, 21600, 43200, 86400, 259200, 604800, 1209600
     ]:
         assert choice in duration_choices