Exemple #1
0
 def test_should_read_config(self):
     instance = info_command.ConfigInfo(info_command.NullAnonymizer())
     text = str(instance)
     self.assertIn("TEST_EXECUTOR", text)
     self.assertIn("TEST_DAGS_FOLDER", text)
     self.assertIn("TEST_PLUGINS_FOLDER", text)
     self.assertIn("TEST_LOG_FOLDER", text)
     self.assertIn("postgresql+psycopg2://postgres:airflow@postgres/airflow", text)
Exemple #2
0
 def test_should_read_config(self):
     instance = info_command.ConfigInfo(info_command.NullAnonymizer())
     text = capture_show_output(instance)
     assert "TEST_EXECUTOR" in text
     assert "TEST_DAGS_FOLDER" in text
     assert "TEST_PLUGINS_FOLDER" in text
     assert "TEST_LOG_FOLDER" in text
     assert "postgresql+psycopg2://postgres:airflow@postgres/airflow" in text
Exemple #3
0
 def test_should_read_logging_configuration(self):
     with conf_vars({
         ('logging', 'remote_logging'): 'True',
         ('logging', 'remote_base_log_folder'): 'stackdriver://logs-name',
     }):
         importlib.reload(airflow_local_settings)
         configure_logging()
         instance = info_command.ConfigInfo(info_command.NullAnonymizer())
         text = str(instance)
         self.assertIn("StackdriverTaskHandler", text)