mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
44ad07eeab
This fixes the existing tests around query caching and other Redis-related behaviors so they actually run. Some of the tests still fail because of a couple of bugs, but the error messages are now meaningful. They do not yet run in CI. We will enable them once they are fixed. I added a bit of extra logging; we now log the Redis server host and port. I also left in the `Show` instance derivations I used for debugging, as I don't think they'll harm anything and might be useful in the future. The changes are as follows: 1. I added a `redis` server to the tests and configured both HGE and the test runner to talk to it. 2. I fixed up the action tests so they set up and tear down correctly, including a fix to the output type of the action. 3. Caching has been implemented for actions with client header forwarding, so I have changed the test accordingly. 4. Tests now fail correctly if the response headers are wrong but the body is correct. 5. I have updated the keys in the response headers as the algorithm for generating them seems to have changed. 6. A few improvements have been made to the Python tests to handle lint warnings and improve logging. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10839 GitOrigin-RevId: 5d31a376346190b5c7b398b4dee84b88a9d1b18b
35 lines
671 B
YAML
35 lines
671 B
YAML
# These services are brought up in 'run.sh' (see that file)
|
|
|
|
version: "3.6"
|
|
|
|
name: hge-python-tests
|
|
|
|
services:
|
|
postgres:
|
|
extends:
|
|
file: ../../docker-compose/databases.yaml
|
|
service: postgres
|
|
environment:
|
|
POSTGRES_PASSWORD: "hasura"
|
|
volumes:
|
|
- ./docker/postgres-init.sh:/docker-entrypoint-initdb.d/init.sh:ro
|
|
deploy:
|
|
replicas: 2
|
|
|
|
citus:
|
|
extends:
|
|
file: ../../docker-compose/databases.yaml
|
|
service: citus
|
|
environment:
|
|
POSTGRES_PASSWORD: "hasura"
|
|
|
|
sqlserver:
|
|
extends:
|
|
file: ../../docker-compose/databases.yaml
|
|
service: sqlserver
|
|
|
|
redis:
|
|
image: redis:7
|
|
ports:
|
|
- 6379
|