graphql-engine/server/tests-py/queries/event_triggers/create-delete/create_and_delete.yaml
Naveen Naidu 955db8ab11 server: Use quote_ident for quoting table name when using regclass
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4413
Co-authored-by: Karthikeyan Chinnakonda <15602904+codingkarthik@users.noreply.github.com>
GitOrigin-RevId: 721fae15587bdab6f27b8d1189fe6e41c42097e7
2022-05-02 13:16:55 +00:00

105 lines
2.0 KiB
YAML

- description: create and then drop an event trigger
url: /v1/query
status: 200
query:
type: bulk
args:
- type: track_table
args:
schema: hge_tests
name: test_t1
- type: create_event_trigger
args:
name: t1_1
table:
schema: hge_tests
name: test_t1
insert:
columns: "*"
update:
columns: "*"
delete:
columns: "*"
webhook: http://127.0.0.1:5592
- type: delete_event_trigger
args:
name: t1_1
- type: untrack_table
args:
table:
schema: hge_tests
name: test_t1
- description: create an event trigger on case sensitive table name and then drop that event trigger
url: /v1/query
status: 200
query:
type: bulk
args:
- type: track_table
args:
schema: hge_tests
name: TEST_T2
- type: create_event_trigger
args:
name: t1_2
table:
schema: hge_tests
name: TEST_T2
insert:
columns: "*"
update:
columns: "*"
delete:
columns: "*"
webhook: http://127.0.0.1:5592
- type: delete_event_trigger
args:
name: t1_2
- type: untrack_table
args:
table:
schema: hge_tests
name: TEST_T2
- description: create an event trigger on case sensitive table name on public schema and then drop that event trigger
url: /v1/query
status: 200
query:
type: bulk
args:
- type: track_table
args:
schema: public
name: Test_T3
- type: create_event_trigger
args:
name: t1_3
table:
schema: public
name: Test_T3
insert:
columns: "*"
update:
columns: "*"
delete:
columns: "*"
webhook: http://127.0.0.1:5592
- type: delete_event_trigger
args:
name: t1_3
- type: untrack_table
args:
table:
schema: public
name: Test_T3