Closed ElliottKasoar closed 7 months ago
Largely implemented, based both on opensearch-py and Elastic's GitHub Actions.
Occasional issues remain with connection issues, as sometimes the container fails to start in time.
Further tests, both in terms of ABCD functionality and OpenSearch docker settings, could be implemented. See also: #11
Some unit tests are already written via openmock, but more may be possible for newer functionality e.g. adding/renaming properties.
However, the mocked functionality provided by openmock is limited, so more complete testing through a temporary live database (e.g. spun up through GitHub Actions), or using a self-hosted runner, may be preferable.
See opensearch-py for examples, which roughly does the following: