2020-11-12 12:25:48 +03:00
|
|
|
- description: create an event trigger and then reset metadata
|
|
|
|
url: /v1/query
|
|
|
|
status: 200
|
|
|
|
query:
|
|
|
|
type: bulk
|
2018-12-19 09:34:27 +03:00
|
|
|
args:
|
2020-11-12 12:25:48 +03:00
|
|
|
- type: track_table
|
|
|
|
args:
|
2018-12-19 09:34:27 +03:00
|
|
|
schema: hge_tests
|
|
|
|
name: test_t1
|
2020-11-12 12:25:48 +03:00
|
|
|
- type: create_event_trigger
|
2020-12-08 17:22:31 +03:00
|
|
|
args:
|
2020-11-12 12:25:48 +03:00
|
|
|
name: t1_1
|
|
|
|
table:
|
|
|
|
schema: hge_tests
|
|
|
|
name: test_t1
|
|
|
|
insert:
|
2020-12-08 17:22:31 +03:00
|
|
|
columns: '*'
|
2020-11-12 12:25:48 +03:00
|
|
|
update:
|
2020-12-08 17:22:31 +03:00
|
|
|
columns: '*'
|
2020-11-12 12:25:48 +03:00
|
|
|
delete:
|
2020-12-08 17:22:31 +03:00
|
|
|
columns: '*'
|
2020-11-12 12:25:48 +03:00
|
|
|
webhook: http://127.0.0.1:5592
|
|
|
|
- type: insert
|
|
|
|
args:
|
|
|
|
table:
|
|
|
|
schema: hge_tests
|
|
|
|
name: test_t1
|
|
|
|
objects:
|
|
|
|
- c1: 1
|
|
|
|
c2: world
|
|
|
|
returning: []
|
2020-12-28 15:56:00 +03:00
|
|
|
|
|
|
|
- description: Clear metadata
|
|
|
|
url: /v1/query
|
|
|
|
status: 200
|
|
|
|
query:
|
|
|
|
type: clear_metadata
|
|
|
|
args: {}
|
2018-12-19 09:34:27 +03:00
|
|
|
|
2022-04-11 14:24:11 +03:00
|
|
|
- description: ensure that the event_log table is deleted
|
2020-11-12 12:25:48 +03:00
|
|
|
url: /v1/query
|
|
|
|
status: 200
|
|
|
|
response:
|
2020-12-08 17:22:31 +03:00
|
|
|
result_type: TuplesOk
|
|
|
|
result:
|
2022-04-11 14:24:11 +03:00
|
|
|
- - exists
|
|
|
|
- - f
|
2020-11-12 12:25:48 +03:00
|
|
|
query:
|
2020-12-08 17:22:31 +03:00
|
|
|
type: run_sql
|
2020-11-12 12:25:48 +03:00
|
|
|
args:
|
2022-04-11 14:24:11 +03:00
|
|
|
sql: SELECT EXISTS (SELECT * FROM information_schema.tables WHERE table_schema = 'hdb_catalog' and table_name = 'event_log');
|