Example #1
0
    def setUp(self):
        super(TestCommandSetupIndexManagement, self).setUp()
        self.cmd = "--index-management"

        self._es = Elasticsearch([self.get_elasticsearch_url()])
        logging.getLogger("elasticsearch").setLevel(logging.ERROR)
        logging.getLogger("urllib3").setLevel(logging.WARNING)

        self.idxmgmt = IdxMgmt(self._es, index_name)
        cleanup(self._es, delete_pipelines=[])
        self.render_config()
Example #2
0
    def setUp(self):
        self.es = Elasticsearch([self.get_elasticsearch_url()])
        self.kibana_url = self.get_kibana_url()

        delete_pipelines = [] if self.skip_clean_pipelines else default_pipelines
        cleanup(self.es, delete_pipelines=delete_pipelines)

        super(ElasticTest, self).setUp()

        # try make sure APM Server is fully up
        self.wait_until_ilm_logged()
        self.wait_until_pipeline_logged()
Example #3
0
    def setUp(self):
        admin_user = os.getenv("ES_SUPERUSER_USER", "admin")
        admin_password = os.getenv("ES_SUPERUSER_PASS", "changeme")
        self.admin_es = Elasticsearch([self.get_elasticsearch_url(admin_user, admin_password)])
        self.es = Elasticsearch([self.get_elasticsearch_url()])
        self.kibana_url = self.get_kibana_url()

        delete_pipelines = [] if self.skip_clean_pipelines else default_pipelines
        cleanup(self.admin_es, delete_pipelines=delete_pipelines)

        super(ElasticTest, self).setUp()

        # try make sure APM Server is fully up
        self.wait_until_ilm_logged()
        self.wait_until_pipeline_logged()