graphql-engine/server/tests-py/queries/event_triggers/selected_payload/setup.yaml
Swann Moreau 5bc0355bdd [server] coalesce multiple run_sql calls in tests (#270)
GitOrigin-RevId: abd7303aaf8e7a8739fd10574249aec450082ef8
2021-01-06 16:07:22 +00:00

35 lines
567 B
YAML

type: bulk
args:
- type: run_sql
args:
sql: |
create table hge_tests.test_t1(
c1 int,
c2 text
);
- type: track_table
args:
schema: hge_tests
name: test_t1
- type: create_event_trigger
args:
name: t1_payload
table:
schema: hge_tests
name: test_t1
insert:
columns: '*'
payload: '*'
update:
columns: '*'
payload: [c1]
delete:
columns: '*'
payload: [c2]
webhook: http://127.0.0.1:5592
retry_conf:
num_retries: 10
interval_sec: 100