NDAT-295 Cleanup Tests.Subscriptions structure

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6882
GitOrigin-RevId: 854d30dc0a1859c08f082df4d3c375325c59cf9c
This commit is contained in:
Abby Sassel 2022-11-16 13:22:42 +00:00 committed by hasura-bot
parent 980813c4c5
commit 7df9dc5832
4 changed files with 15 additions and 12 deletions

View File

@ -62,6 +62,7 @@ Each ✅ below links **directly** to the feature within a particular type of dat
| Data Validations | [✅](/schema/postgres/data-validations.mdx) | [✅](/schema/postgres/data-validations.mdx) | ✅ | [✅](/schema/bigquery/data-validations.mdx) | [✅](/schema/postgres/data-validations.mdx) |
| Relay Schema | [✅](/schema/postgres/relay-schema.mdx) | [✅](/schema/postgres/relay-schema.mdx) | ❌ | ❌ | ❌ |
| Naming Conventions | [✅](/schema/postgres/naming-convention.mdx) | ❌ | ❌ | ❌ | [✅](/schema/postgres/naming-convention.mdx) |
| Custom Fields | [✅](/schema/postgres/custom-field-names.mdx) | [✅](/schema/postgres/custom-field-names.mdx) | [✅](/schema/ms-sql-server/custom-field-names.mdx) | [✅](/schema/bigquery/custom-field-names.mdx) | [✅](/schema/postgres/custom-field-names.mdx) |
#### Queries
@ -91,7 +92,7 @@ Each ✅ below links **directly** to the feature within a particular type of dat
#### Subscriptions
| | Postgres | Citus | SQL Server | BigQuery | CockroachDB |
| ----------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | --------------------------------------------------------------------- | -------- | ----------- |
| ----------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | --------------------------------------------------------------------- | -------- | -------------------------------------------------------------------------- |
| Value of Field | [✅](/subscriptions/postgres/livequery/use-cases.mdx#pg-subscribe-field) | [✅](/subscriptions/postgres/livequery/use-cases.mdx#pg-subscribe-field) | [✅](/subscriptions/ms-sql-server/use-cases.mdx#pg-subscribe-field) | ❌ | [✅](/subscriptions/postgres/livequery/use-cases.mdx#pg-subscribe-field) |
| Updates to Rows | [✅](/subscriptions/postgres/livequery/use-cases.mdx#pg-subscribe-table) | [✅](/subscriptions/postgres/livequery/use-cases.mdx#pg-subscribe-table) | ❌ | ❌ | [✅](/subscriptions/postgres/livequery/use-cases.mdx#pg-subscribe-table) |
| Value of Derived Field | [✅](/subscriptions/postgres/livequery/use-cases.mdx#pg-subscribe-derived) | [✅](/subscriptions/postgres/livequery/use-cases.mdx#pg-subscribe-derived) | [✅](/subscriptions/ms-sql-server/use-cases.mdx#pg-subscribe-derived) | ❌ | [✅](/subscriptions/postgres/livequery/use-cases.mdx#pg-subscribe-derived) |

View File

@ -149,6 +149,7 @@ executable api-tests
Test.Schema.ConflictsSpec
Test.Schema.CustomFieldNames.MutationSpec
Test.Schema.CustomFieldNames.QuerySpec
Test.Schema.CustomFieldsSpec
Test.Schema.DataValidations.Permissions.InsertSpec
Test.Schema.DataValidations.Permissions.SelectSpec
Test.Schema.DefaultValuesSpec
@ -167,9 +168,8 @@ executable api-tests
Test.SQLServer.DefaultValuesSpec
Test.SQLServer.InsertVarcharColumnSpec
Test.SQLServer.VarcharLiteralsSpec
Test.Subscriptions.CustomFieldsSpec
Test.Subscriptions.DerivedDataSpec
Test.Subscriptions.LiveQueriesSpec
Test.Subscriptions.RowUpdatesSpec
Test.Subscriptions.StreamingSubscriptionsSpec
executable render-feature-matrix

View File

@ -1,9 +1,9 @@
{-# LANGUAGE QuasiQuotes #-}
-- | Testing custom root fields for subscriptions.
-- | Testing custom root fields
--
-- https://hasura.io/docs/latest/graphql/core/databases/postgres/schema/custom-field-names/#expose-table-root-fields-with-a-different-name-in-the-graphql-api
module Test.Subscriptions.CustomFieldsSpec (spec) where
-- https://hasura.io/docs/latest/graphql/core/databases/postgres/schema/custom-field-names/
module Test.Schema.CustomFieldsSpec (spec) where
import Data.Aeson (Value)
import Data.Aeson.Key qualified as Key (toString)

View File

@ -2,7 +2,9 @@
-- | Test that each supported backend is able to do a simple live query /
-- subscription.
module Test.Subscriptions.LiveQueriesSpec (spec) where
--
-- https://hasura.io/docs/latest/subscriptions/postgres/livequery/use-cases/#pg-subscribe-table
module Test.Subscriptions.RowUpdatesSpec (spec) where
import Data.Aeson
import Data.List.NonEmpty qualified as NE