Esempio n. 1
0
 def config(self):
     cfg = super(SubCommandTest, self).config()
     cfg.update({
         "elasticsearch_host": get_elasticsearch_url(),
         "file_enabled": "false",
     })
     return cfg
Esempio n. 2
0
    def test_setup_default_template(self):
        """
        Test setup default template
        """

        es = Elasticsearch([get_elasticsearch_url()])
        assert es.indices.exists_template(name='apm-*')
        assert self.log_contains("Loaded index template")
        assert self.log_contains("Index setup complete")
        # by default overwrite is set to true when `setup` cmd is run
        assert self.log_contains(
            "Existing template will be overwritten, as overwrite is enabled.")
        self.assertNotRegexpMatches(self.get_log(), "ILM")
Esempio n. 3
0
 def setUp(self):
     # TODO (gr): consolidate with ElasticTest
     self.es = Elasticsearch([get_elasticsearch_url()])
     self.es.ingest.delete_pipeline(id="*")
     super(SetupPipelinesDefaultTest, self).setUp()