graphql-engine/server/tests-py/queries/event_triggers/retry_conf/setup.yaml
kodiakhq[bot] a935746e17 Integration test improvements (for speed/clarity), also increase polling interval for scheduled events
This claws back ~7min from integration tests (run serially, as with `dev.sh test --integration`
Further improvements would do well to focus on optimizing metadata operations, as `setup` dominates

GitOrigin-RevId: 76637d6fa953c2404627c4391447a05bf09355fa
2021-04-27 05:35:26 +00:00

82 lines
1.4 KiB
YAML

type: bulk
args:
- 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
);
- 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
- type: create_event_trigger
args:
name: t1_retry
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