tirumaraiselvan / graphql-engine

Blazing fast, instant realtime GraphQL APIs on Postgres with fine grained access control
https://hasura.io
Apache License 2.0
2 stars 0 forks source link

add node graphql test server #13

Closed tirumaraiselvan closed 5 years ago

tirumaraiselvan commented 5 years ago

Use apollo-server for easier testing of remote schema server

tirumaraiselvan commented 5 years ago

TODO:

tirumaraiselvan commented 5 years ago

We can use with image: hasura/graphql-engine-server-builder:20190507-1-with-node

docker run --rm -it --network host --name hasura-server -v`pwd`:`pwd` -w`pwd`/server/tests-py hasura/graphql-engine-server-builder:20190507-1-with-node sh
# pip3 install -r requirements.txt
# cd remote_schemas/nodejs && npm install & cd ../../
# pytest -vv --hge-url="http://localhost:8080" --pg-url="postgres://postgres:password@localhost:6432/postgres" test_events.py