Beispiel #1
0
 def test_missing_password_option(self):
     self.config.remove_option('latency_monitor', 'password')
     self.assertRaises(UPtimeMonException,
                       lambda: uptime_mon.validate_args(self.config))
Beispiel #2
0
 def test_missing_cache_file_path_option(self):
     self.config.remove_option('latency_monitor', 'cache_file_path')
     self.assertRaises(UPtimeMonException,
                       lambda: uptime_mon.validate_args(self.config))
Beispiel #3
0
    def test_missing_logging_section(self):
        self.config.remove_section('logging')

        self.assertRaises(UPtimeMonException,
                          lambda: uptime_mon.validate_args(self.config))
Beispiel #4
0
 def test_missing_object_store_url_option(self):
     self.config.remove_option('latency_monitor', 'object_store_url')
     self.assertRaises(UPtimeMonException,
                       lambda: uptime_mon.validate_args(self.config))
Beispiel #5
0
 def test_missing_project_details_option(self):
     self.config.remove_option('latency_monitor', 'project_id')
     self.config.remove_option('latency_monitor', 'project_name')
     self.assertRaises(UPtimeMonException,
                       lambda: uptime_mon.validate_args(self.config))