NDAT-295 Cleanup Tests.Query structure

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6878
GitOrigin-RevId: 521d8366a26ba933ebb7892d243a9ce94b90c8f0
This commit is contained in:
Abby Sassel 2022-11-15 17:28:23 +00:00 committed by hasura-bot
parent 6ac67a5566
commit 3da0e2f1a2
12 changed files with 23 additions and 22 deletions

View File

@ -65,6 +65,7 @@ executable api-tests
main-is: Spec.hs
other-modules:
SpecHook
Test.API.ExplainSpec
Test.BigQuery.Metadata.ComputedFieldSpec
Test.BigQuery.Queries.SpatialTypesSpec
Test.BigQuery.Schema.RunSQLSpec
@ -113,18 +114,10 @@ executable api-tests
Test.Postgres.JsonbSpec
Test.Postgres.TimestampSpec
Test.Postgres.UniqueConstraintsSpec
Test.Queries.AggregationPredicatesSpec
Test.Queries.AggregationSpec
Test.Queries.AliasesSpec
Test.Queries.Directives.IncludeAndSkipSpec
Test.Queries.Directives.IncludeSpec
Test.Queries.Directives.SkipSpec
Test.Queries.DirectivesSpec
Test.Queries.DistinctSpec
Test.Queries.ExplainSpec
Test.Queries.FilterSearchSpec
Test.Queries.FragmentsSpec
Test.Queries.MultiColumnObjectRelationshipsSpec
Test.Queries.FilterSearch.AggregationPredicatesSpec
Test.Queries.FilterSearch.FilterSearchSpec
Test.Queries.NestedObjectSpec
Test.Queries.Paginate.LimitSpec
Test.Queries.Paginate.OffsetSpec
@ -133,13 +126,20 @@ executable api-tests
Test.Queries.Simple.OperationNameSpec
Test.Queries.Simple.PrimaryKeySpec
Test.Queries.SortSpec
Test.Queries.VariablesSpec
Test.Queries.VariablesAliasesFragments.AliasesSpec
Test.Queries.VariablesAliasesFragments.Directives.DirectivesSpec
Test.Queries.VariablesAliasesFragments.Directives.IncludeAndSkipSpec
Test.Queries.VariablesAliasesFragments.Directives.IncludeSpec
Test.Queries.VariablesAliasesFragments.Directives.SkipSpec
Test.Queries.VariablesAliasesFragments.FragmentsSpec
Test.Queries.VariablesAliasesFragments.VariablesSpec
Test.Quoter.YamlSpec
Test.Regression.AggregateBoolExpConflictSpec
Test.Regression.ArrayLiteralTextEncodingSpec
Test.Regression.DoNotTruncateSessionVariables8158Spec
Test.Regression.DropColumnWithPermissions8415Spec
Test.Regression.InsertOnConflict8260Spec
Test.Regression.MultiColumnObjectRelationshipsSpec
Test.Regression.NullRemoteRelationship8345Spec
Test.Regression.NullsOrderParsing8780Spec
Test.Regression.ObjectRelationshipsLimit7936Spec

View File

@ -1,7 +1,8 @@
{-# LANGUAGE QuasiQuotes #-}
-- | Test that backend which support it are able to explain queries.
module Test.Queries.ExplainSpec (spec) where
-- https://hasura.io/docs/latest/api-reference/explain/
module Test.API.ExplainSpec (spec) where
import Data.List.NonEmpty qualified as NE
import Harness.Backend.Citus qualified as Citus

View File

@ -10,7 +10,7 @@
-- https://hasura.io/docs/latest/queries/bigquery/query-filters/
-- https://hasura.io/docs/latest/queries/ms-sql-server/query-filters/
-- https://hasura.io/docs/latest/queries/postgres/query-filters/
module Test.Queries.AggregationPredicatesSpec (spec) where
module Test.Queries.FilterSearch.AggregationPredicatesSpec (spec) where
import Data.Aeson (Value)
import Data.List.NonEmpty qualified as NE

View File

@ -6,7 +6,7 @@
-- https://hasura.io/docs/latest/queries/bigquery/query-filters/
-- https://hasura.io/docs/latest/queries/ms-sql-server/query-filters/
-- https://hasura.io/docs/latest/queries/postgres/query-filters/
module Test.Queries.FilterSearchSpec (spec) where
module Test.Queries.FilterSearch.FilterSearchSpec (spec) where
import Data.Aeson (Value)
import Data.List.NonEmpty qualified as NE

View File

@ -6,7 +6,7 @@
-- https://hasura.io/docs/latest/queries/postgres/variables-aliases-fragments-directives/#using-aliases
-- https://hasura.io/docs/latest/queries/ms-sql-server/variables-aliases-fragments-directives/#using-aliases
-- https://hasura.io/docs/latest/queries/bigquery/variables-aliases-fragments-directives/#using-aliases
module Test.Queries.AliasesSpec (spec) where
module Test.Queries.VariablesAliasesFragments.AliasesSpec (spec) where
import Data.Aeson (Value)
import Data.List.NonEmpty qualified as NE

View File

@ -7,7 +7,7 @@
-- https://hasura.io/docs/latest/queries/postgres/variables-aliases-fragments-directives/
-- https://hasura.io/docs/latest/queries/ms-sql-server/variables-aliases-fragments-directives/
-- https://hasura.io/docs/latest/queries/bigquery/variables-aliases-fragments-directives/
module Test.Queries.DirectivesSpec (spec) where
module Test.Queries.VariablesAliasesFragments.Directives.DirectivesSpec (spec) where
import Data.Aeson (Value)
import Data.List.NonEmpty qualified as NE

View File

@ -7,7 +7,7 @@
-- https://hasura.io/docs/latest/queries/postgres/variables-aliases-fragments-directives/
-- https://hasura.io/docs/latest/queries/ms-sql-server/variables-aliases-fragments-directives/
-- https://hasura.io/docs/latest/queries/bigquery/variables-aliases-fragments-directives/
module Test.Queries.Directives.IncludeAndSkipSpec (spec) where
module Test.Queries.VariablesAliasesFragments.Directives.IncludeAndSkipSpec (spec) where
import Data.Aeson (Value, object, (.=))
import Data.List.NonEmpty qualified as NE

View File

@ -7,7 +7,7 @@
-- https://hasura.io/docs/latest/queries/postgres/variables-aliases-fragments-directives/
-- https://hasura.io/docs/latest/queries/ms-sql-server/variables-aliases-fragments-directives/
-- https://hasura.io/docs/latest/queries/bigquery/variables-aliases-fragments-directives/
module Test.Queries.Directives.IncludeSpec (spec) where
module Test.Queries.VariablesAliasesFragments.Directives.IncludeSpec (spec) where
import Data.Aeson (Value, object, (.=))
import Data.List.NonEmpty qualified as NE

View File

@ -7,7 +7,7 @@
-- https://hasura.io/docs/latest/queries/postgres/variables-aliases-fragments-directives/
-- https://hasura.io/docs/latest/queries/ms-sql-server/variables-aliases-fragments-directives/
-- https://hasura.io/docs/latest/queries/bigquery/variables-aliases-fragments-directives/
module Test.Queries.Directives.SkipSpec (spec) where
module Test.Queries.VariablesAliasesFragments.Directives.SkipSpec (spec) where
import Data.Aeson (Value, object, (.=))
import Data.List.NonEmpty qualified as NE

View File

@ -6,7 +6,7 @@
-- https://hasura.io/docs/latest/queries/postgres/variables-aliases-fragments-directives/#using-fragments
-- https://hasura.io/docs/latest/queries/ms-sql-server/variables-aliases-fragments-directives/#using-fragments
-- https://hasura.io/docs/latest/queries/bigquery/variables-aliases-fragments-directives/#using-fragments
module Test.Queries.FragmentsSpec (spec) where
module Test.Queries.VariablesAliasesFragments.FragmentsSpec (spec) where
import Data.Aeson (Value)
import Data.List.NonEmpty qualified as NE

View File

@ -6,7 +6,7 @@
-- https://hasura.io/docs/latest/queries/postgres/variables-aliases-fragments-directives/#using-variables
-- https://hasura.io/docs/latest/queries/ms-sql-server/variables-aliases-fragments-directives/#using-variables
-- https://hasura.io/docs/latest/queries/bigquery/variables-aliases-fragments-directives/#using-variables
module Test.Queries.VariablesSpec (spec) where
module Test.Queries.VariablesAliasesFragments.VariablesSpec (spec) where
import Data.Aeson (Value (String), object, (.=))
import Data.List.NonEmpty qualified as NE

View File

@ -1,7 +1,7 @@
{-# LANGUAGE QuasiQuotes #-}
-- | Test relationships define using multiple columns.
module Test.Queries.MultiColumnObjectRelationshipsSpec (spec) where
module Test.Regression.MultiColumnObjectRelationshipsSpec (spec) where
import Data.Aeson (Value)
import Data.List.NonEmpty qualified as NE