mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 13:02:11 +03:00
e87433c2bb
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3634 Co-authored-by: Philip Lykke Carlsen <358550+plcplc@users.noreply.github.com> GitOrigin-RevId: 2db62a279496cd7e5dd57bdf02c3efa7b70042c8
33 lines
816 B
YAML
33 lines
816 B
YAML
# As this is a read-only test, we can't create the schema/tables as part of the
|
|
# HGE metadata. This setup assumes the tables are already created.
|
|
# The schema assumed is -
|
|
# CREATE TABLE aves (id SERIAL PRIMARY KEY, name TEXT)
|
|
# And (already existing) data assumed is -
|
|
# - id: 1
|
|
# name: Booted Eagle
|
|
# - id: 2
|
|
# name: Hooded Merganser
|
|
|
|
type: bulk
|
|
args:
|
|
|
|
# if a default source is not added, the teardown doesn't happen for PG backend.
|
|
# That is weird! Why is it always assumed that PG backend tests will always have
|
|
# a default source?
|
|
|
|
- type: pg_add_source
|
|
args:
|
|
name: pg_readonly
|
|
configuration:
|
|
connection_info:
|
|
database_url:
|
|
from_env:
|
|
HASURA_READONLY_DB_URL
|
|
|
|
# track tables
|
|
- type: pg_track_table
|
|
args:
|
|
source: pg_readonly
|
|
table:
|
|
name: aves
|