Esempio n. 1
0
    def setUp(self):
        # ensure pipelines do not get deleted on APM Server startup, otherwise `overwrite` flag cannot be tested
        self.skip_clean_pipelines = True

        # Ensure all pipelines are deleted before test
        es = Elasticsearch([self.get_elasticsearch_url()])
        wait_until_pipelines_deleted(es)

        # Ensure `apm` pipeline is already registered in ES before APM Server is started
        self.pipeline_apm = "apm"
        es.ingest.put_pipeline(id=self.pipeline_apm, body={"description": "empty apm test pipeline", "processors": []})
        wait_until_pipelines(es, ["apm"])

        # When starting APM Server pipeline `apm` is already registered, the other pipelines are not
        super(PipelineOverwriteBase, self).setUp()
Esempio n. 2
0
 def setUp(self):
     # ensure environment is clean before cmd is run
     self.es = Elasticsearch([self.get_elasticsearch_url()])
     wait_until_pipelines_deleted(self.es)
     # pipelines are setup when running the command
     super(SetupCmdPipelinesDefaultTest, self).setUp()