mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
1e1a36a192
I'm trying to shore up the Python integration tests to make them more reliable. In doing so, I noticed this. --- Rather than hard-coding hostnames and ports, we can (and already do) inject these into the HGE process using environment variables. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5255 GitOrigin-RevId: 6bb593999ece42cedef6619f31f9d9b2e39f30ef
82 lines
1.5 KiB
YAML
82 lines
1.5 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: "{{EVENT_WEBHOOK_HANDLER}}/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: "{{EVENT_WEBHOOK_HANDLER}}/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: "{{EVENT_WEBHOOK_HANDLER}}/sleep_2s"
|
|
retry_conf:
|
|
num_retries: 0
|
|
interval_sec: 2
|
|
timeout_sec: 10
|