def setUpClass(cls):
        if cls._overridden_settings:
            cls._cls_overridden_context = override_settings(**cls._overridden_settings)
            cls._cls_overridden_context.enable()

        connections.configure(**settings.ELASTICSEARCH_CONNECTIONS)
        cls.es_client = cls._get_client()

        IngestClient(cls.es_client).put_pipeline(id='ingest_attachment', body={
            'description': "Extract attachment information",
            'processors': [
                {
                    "attachment": {
                        "field": "data",
                        "indexed_chars": "-1"
                    },
                    "remove": {
                        "field": "data"
                    }
                }
            ]
        })

        super().setUpClass()