Disable features without required Redis modules

Some features, like querying and embedded models, require
either the RediSearch or RedisJSON modules running in Redis.
Without these modules, using these features would result
in inscrutable errors.

We now disable some tests if the Redis module required for the
test is not found in the Redis instance the tests are using,
and raise errors or log messages if the same is true during
execution of HashModel and JsonModel.
This commit is contained in:
Andrew Brookins 2021-11-03 12:37:09 -07:00
parent ca48b222f3
commit 2b1994b98b
8 changed files with 269 additions and 10 deletions

View file

@ -9,3 +9,11 @@ services:
- "6380:6379"
volumes:
- ./data:/data
oss_redis:
image: "redis:latest"
restart: always
ports:
- "6381:6379"
volumes:
- ./oss_data:/oss_data