graphql-engine/server/tests-py/queries/inconsistent_objects/expectation.yaml
Samir Talwar 43779ff0c1 server/tests-py: Fix test_inconsistent_meta.py for split databases.
This test did not work when splitting the metadata and source backends. Fixed mostly by running the relevant SQL using `source_backend.engine`, but I also took the time to clean it up a little, and broke up _test.yaml_ into 3 files.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6957
GitOrigin-RevId: bbca60a8906caba2d0cffd834b3b8595fca058fd
2022-11-23 14:14:01 +00:00

24 lines
660 B
YAML

- definition:
schema: public
name: article
name: table article in source default
reason: 'Inconsistent object: no such table/view exists in source: "article"'
type: table
- definition:
using:
foreign_key_constraint_on:
column: author_id
table:
schema: public
name: article
name: articles
source: default
comment:
table:
schema: public
name: author
name: array_relation articles in table author in source default
reason: >-
Inconsistent object: in table "author": in relationship "articles": table "article" does not exist in source: default
type: array_relation