graphql-engine/server/tests-py/queries/event_triggers/data_format/setup.yaml
Naveen Naidu 44f6f06e89 server: Add tests for the event trigger big int and geojson format payload bug fix
GitOrigin-RevId: 1e796b16dca54849334381e855b17b19609c8b7a
2021-05-20 12:27:35 +00:00

58 lines
1.0 KiB
YAML

type: bulk
args:
- type: run_sql
args:
sql: |
CREATE EXTENSION IF NOT EXISTS postgis;
create table hge_tests.test_bigint(
id bigint,
name text
);
create table hge_tests.test_geojson(
id SERIAL PRIMARY KEY,
location GEOGRAPHY(Point)
);
INSERT INTO hge_tests.test_geojson (location) VALUES ('POINT(-43.77 45.64)');
- type: track_table
args:
schema: hge_tests
name: test_bigint
- type: track_table
args:
schema: hge_tests
name: test_geojson
- type: create_event_trigger
args:
name: bigint_all
table:
schema: hge_tests
name: test_bigint
insert:
columns: '*'
update:
columns: '*'
delete:
columns: '*'
webhook: http://127.0.0.1:5592
- type: create_event_trigger
args:
name: geojson_all
table:
schema: hge_tests
name: test_geojson
insert:
columns: '*'
update:
columns: '*'
delete:
columns: '*'
webhook: http://127.0.0.1:5592