griptape
griptape copied to clipboard
Add containerized storage backends to CI tests
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).