graphql-engine/server/tests-py/queries/event_triggers/flood/setup_mssql.yaml
Samir Talwar 1e1a36a192 server/tests-py: Use environment variables for services in queries.
I'm trying to shore up the Python integration tests to make them more reliable. In doing so, I noticed this.

---

Rather than hard-coding hostnames and ports, we can (and already do) inject these into the HGE process using environment variables.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5255
GitOrigin-RevId: 6bb593999ece42cedef6619f31f9d9b2e39f30ef
2022-08-03 20:05:46 +00:00

29 lines
550 B
YAML

type: bulk
args:
- type: mssql_track_table
args:
source: mssql
table:
schema: hge_tests
name: test_flood
- type: mssql_create_event_trigger
args:
source: mssql
name: flood_all
table:
schema: hge_tests
name: test_flood
insert:
columns: '*'
update:
columns: '*'
delete:
columns: '*'
webhook: "{{EVENT_WEBHOOK_HANDLER}}/block"
retry_conf:
# We will manuallally unblock() before this is reached:
timeout_sec: 60
num_retries: 0
interval_sec: 1