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

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

82 lines
1.4 KiB
YAML
Raw Normal View History

2018-09-18 09:21:57 +03:00
type: bulk
args:
2018-09-18 09:21:57 +03:00
- type: run_sql
args:
sql: |
create table hge_tests.test_t1(
c1 int,
c2 text
);
create table hge_tests.test_t2(
c1 int,
c2 text
);
create table hge_tests.test_t3(
c1 int,
c2 text
);
2018-09-18 09:21:57 +03:00
- type: track_table
args:
schema: hge_tests
name: test_t1
- type: track_table
args:
schema: hge_tests
name: test_t2
- type: track_table
args:
schema: hge_tests
name: test_t3
2018-09-18 09:21:57 +03:00
- type: create_event_trigger
args:
name: t1_retry
2018-09-18 09:21:57 +03:00
table:
schema: hge_tests
name: test_t1
insert:
columns: '*'
update:
columns: '*'
delete:
columns: '*'
webhook: http://127.0.0.1:5592/fail
retry_conf:
num_retries: 4
interval_sec: 1
- type: create_event_trigger
args:
name: t2_timeout_short
table:
schema: hge_tests
name: test_t2
insert:
columns: '*'
update:
columns: '*'
delete:
columns: '*'
webhook: http://127.0.0.1:5592/sleep_2s
retry_conf:
num_retries: 2
interval_sec: 1
timeout_sec: 1
- type: create_event_trigger
args:
name: t3_timeout_long
table:
schema: hge_tests
name: test_t3
insert:
columns: '*'
update:
columns: '*'
delete:
columns: '*'
webhook: http://127.0.0.1:5592/sleep_2s
retry_conf:
num_retries: 0
interval_sec: 2
timeout_sec: 10