graphql-engine/server/tests-py/queries/event_triggers/headers/setup.yaml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
581 B
YAML
Raw Normal View History

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_all
table:
schema: hge_tests
name: test_t1
insert:
columns: '*'
update:
columns: '*'
delete:
columns: '*'
webhook: http://127.0.0.1:5592
headers:
- name: X-Header-From-Value
value: MyValue
- name: X-Header-From-Env
value_from_env: EVENT_WEBHOOK_HEADER