griptape icon indicating copy to clipboard operation
griptape copied to clipboard

Add containerized storage backends to CI tests

Open andrewfrench opened this issue 1 year ago • 0 comments

Currently, our storage drivers (SqlDriver, RedisVectorStore, etc) are unit tested using mocks. In these tests, we define the response the storage backend will return when presented with an input.

We can extend these tests to connect to a containerized version of the storage backend (Redis, Postgres, Mongo) to more comprehensively validate the behavior of each driver. Additional services should be added to the unit/integration test Github actions specification. If a connection is not present, the tests depending on it should be skipped. An entrypoint should be provided for local development that will start any necessary test dependencies (e.g. to the Makefile).

andrewfrench avatar Oct 04 '23 17:10 andrewfrench