Add Functional test for the Elasticsearch backend

Created on 12 February 2025, 2 months ago

Problem/Motivation

We have a Functional test, \Drupal\Tests\elasticsearch_connector\Functional\ElasticsearchConnectorBackendTest that tests if we can connect to an ElasticSearch backend, but we don't have a Functional test to test whether the ElasticSearch backend acts in the way that we expect for the basic functions of the module.

Note that tests in CI run against an elasticsearch service defined in the module's /.gitlab-ci.yml. Local test environments set up in a complementary way (i.e.: according to the documentation to Set up a local environment ) are able to run tests in an environment very similar to the environment that runs in CI.

Proposed resolution

Update the ElasticsearchConnectorBackendTest with a basic test of the module's functionality, by ensuring that we can see indexed entities in the test_elasticsearch_index_search defined in the elasticsearch_connector_test module, and make a simple fulltext query.

Remaining tasks

  1. Write a patch
  2. Review and feedback
  3. RTBC and feedback
  4. Commit
  5. Release

User interface changes

None.

API changes

None.

Data model changes

None.

Feature request
Status

Active

Version

8.0

Component

Code

Created by

🇨🇦Canada mparker17 UTC-4

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024